Python Gettext po to mo file compiler.
This implementation of Gettext for Python includes a Msgfmt class which can be used to generate compiled mo files from Gettext po files and includes support for the newer msgctxt keyword.
The idea for this project had been rather ambitious, but never lived up to what is was supposed to do. Look at Babel (http://pypi.python.org/pypi/Babel) for a project more worthy of this projects name.
Development takes place at https://github.com/hannosch/python-gettext
Add support for Python 3.11.
Drop support for Python 2.7, 3.5, 3.6.
Add support for Python 3.8, 3.9, 3.10. [icemac]
Drop support for Python 3.4. [icemac]
Drop support for running the tests using python setup.py test
. [icemac]
Add support for Python 3.6 and 3.7. [sallner]
Drop support for Python 2.6. [sallner]
Use u''
strings again for easier cross Python 2/3 code.
[hannosch]
#5: Fix plural form support under Python 3.x. [hannosch]
Break dependency on unittest2
for Python 2.7.
[icemac]
Prefer ast.literal_eval
over eval
under Python 2, instead of just under
Python 3. We only support Python 2.6+ where the function is available.
[hannosch]
Tested successfully under Python 3.3. [hannosch]
Tested successfully under PyPy 1.7. [hannosch]
Handle non-latin-1 characters in the header correctly. [hannosch]
Python 2 and 3 compatibility in the same codebase. [hannosch]
Make sure empty po
files don't break.
[Alexandru Plugaru]
Add support for messages with plural forms. [Andrei Polushin]
Handle Unicode Byte Order Mark at the beginning of files. This closes http://dev.plone.org/plone/ticket/10813. [hannosch, kleist]
Fixed potential UnicodeError in exception handling. This closes http://dev.plone.org/plone/ticket/11058. [hannosch, vincentfretin]