Module msgfmt
source code
Generate binary message catalog from textual translation description.
This program converts a textual Uniforum-style message catalog (.po file) into
a binary GNU catalog (.mo file). This is essentially the same function as the
GNU msgfmt program, however, it is a simpler implementation.
Usage: msgfmt.py [OPTIONS] filename.po
Options:
-o file
--output-file=file
Specify the output file to write to. If omitted, output will go to a
file named filename.mo (based off the input file name).
-h
--help
Print this message and exit.
-V
--version
Display version information and exit.
|
|
|
add(msgid,
msgstr,
fuzzy)
Add a non-fuzzy translation to the dictionary. |
source code
|
|
|
|
|
make(filename,
outfile)
Generate the binary message catalog. |
source code
|
|
|
|
|
MESSAGES = { }
|
|
__package__ = ' turbogears.i18n.pygettext '
|