https://github.com/eevee/cgettext
gettext.py, but with more fast
https://github.com/eevee/cgettext
Last synced: about 1 year ago
JSON representation
gettext.py, but with more fast
- Host: GitHub
- URL: https://github.com/eevee/cgettext
- Owner: eevee
- License: other
- Created: 2014-05-01T21:56:14.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-27T20:03:13.000Z (almost 12 years ago)
- Last Synced: 2025-02-04T17:55:06.208Z (over 1 year ago)
- Language: Python
- Size: 174 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
This is a drop-in C replacement for Python's gettext.GNUTranslations. For our
fairly large set of languages and strings, it makes parsing 10x faster.
Just import GNUTranslations from cgettext instead of gettext.
You can safely install this module on PyPy and other implementations where a C
extension is undesirable, and it will simply re-export the built-in class.
The repository includes a small module, test_cgettext, that runs the built-in
Python gettext tests with GNUTranslations monkeypatched.