Skip to main content

Python Gettext po to mo file compiler.

Project description

Overview

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

Contributors

  • Hanno Schlichting

  • Christian Heimes

  • Andrei Polushin

Changelog

1.2 - 2011-11-01

  • Make sure empty po files don’t break. [Alexandru Plugaru]

  • Add support for messages with plural forms. [Andrei Polushin]

1.1.1 - 2011-03-21

  • Simplify test folder discovery. [hannosch]

1.1 - 2011-03-20

1.0 - 2009-05-23

  • Updated package description and metadata, relicense from GPL to BSD. Note about Babel which supersedes this package in all possible ways. [hannosch]

0.6 - 2007-11-02

  • Fixed header parsing. [hannosch]

0.5 - 2007-11-01

  • Optimized file parsing by using more elif clauses and avoiding an insane number of startswith and isinstance calls. [hannosch]

0.4 - 2007-10-13

  • Added header_only argument to the read method, that allows to only parse the header of a file without reading and parsing all the messages. [hannosch]

0.3 - 2007-08-25

  • Added an explicit read method, which only parses the po file and stores it in the messages dict, but does not compile it. [hannosch]

0.2 - 2007-08-23

  • Bumped version number to accommodate the number in the egg info. [hannosch]

0.1 - 2007-06-19

  • Initial implementation of a Msgfmt class which supports the generation of Gettext mo files including support for the new msgctxt keyword. [hannosch]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-gettext-1.2.zip (20.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page