Module mo
source code
Module for parsing Gettext .mo files for translation.
The coding of .mo files was produced from documentation in Gettext
0.16 and from observation and testing of existing .mo files in the
wild.
The class does not implement any of the hashing componets of Gettext.
This will probably make the output file slower in some instances.
|
mounit
A class representing a .mo translation message.
|
|
mofile
A class representing a .mo file.
|
|
mounpack(filename=' messages.mo ' )
Helper to unpack Gettext MO files into a Python string |
source code
|
|
|
|
|
|
|
|
|
MO_MAGIC_NUMBER = 2500072158
|