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: 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.


Version: 1.1

Functions
 
usage(code, msg='') source code
 
add(msgid, msgstr, fuzzy)
Add a non-fuzzy translation to the dictionary.
source code
 
generate()
Return the generated output.
source code
 
make(filename, outfile)
Generate the binary message catalog.
source code
 
main() source code
Variables
  MESSAGES = {}