Package translate :: Package storage :: Module mo

[hide private]
[frames] | no frames]

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

Classes | [hide private]

| mounit A class representing a .mo translation message.
| mofile A class representing a .mo file.

Functions | [hide private]

mounpack(filename=`'``messages.mo``'`) Helper to unpack Gettext MO files into a Python string | source code

my_swap4(result) | source code

hashpjw(str_param) | source code

get_next_prime_number(start) | source code

Variables | [hide private]

| MO_MAGIC_NUMBER = `2500072158`