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

  • Michael Howitz

  • Steffen Allner

Changelog

4.1 (2022-08-26)

  • 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]

4.0 (2018-11-27)

  • Add support for Python 3.6 and 3.7. [sallner]

  • Drop support for Python 2.6. [sallner]

3.0 - 2016-01-04

  • 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]

2.1 - 2013-02-10

  • 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]

2.0 - 2011-12-22

  • 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]

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-4.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

python_gettext-4.1-py2.py3-none-any.whl (13.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file python-gettext-4.1.tar.gz.

File metadata

  • Download URL: python-gettext-4.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.13

File hashes

Hashes for python-gettext-4.1.tar.gz
Algorithm Hash digest
SHA256 bd06f141d585db3258390e2381678cb0efde586a36bf3ab6aee5ced7dc8d6ffb
MD5 ef5b15ee450b582ccf2ac27ead712903
BLAKE2b-256 566e070738732089781256d7bb35d945f29afa2c4a0dc19968ec74372e1bc379

See more details on using hashes here.

File details

Details for the file python_gettext-4.1-py2.py3-none-any.whl.

File metadata

  • Download URL: python_gettext-4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.13

File hashes

Hashes for python_gettext-4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3438a24961dc5fa4feb441655da3d1070b1db3fd40ee7092a0cb06b0e6d03f16
MD5 e8332f4732da768376b7e238ae67de7d
BLAKE2b-256 32545942dad25b56a57dfd88150493e61fa763966d42a1d4d7fae7f1846a5953

See more details on using hashes here.

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