Package turbogears :: Package i18n :: Package pygettext :: Module msgfmt

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: [OPTIONS] filename.po

    -o file
        Specify the output file to write to.  If omitted, output will go to a
        file named (based off the input file name).

        Print this message and exit.

        Display version information and exit.

Version: 1.1

usage(code, msg='') source code
add(msgid, msgstr, fuzzy)
Add a non-fuzzy translation to the dictionary.
source code
Return the generated output.
source code
make(filename, outfile)
Generate the binary message catalog.
source code
main() source code
  __package__ = 'turbogears.i18n.pygettext'