|
|
polib
About
A library to parse and manage gettext catalogs.
polib allows you to manipulate, create, modify gettext files (pot, po and mo files). You can load existing files, iterate through it's entries, add, modify entries, comments or metadata, etc... or create new po files from scratch.
polib provides a simple and pythonic API, exporting only three convenience functions 'pofile', 'mofile' and 'detect_encoding', and the 4 core classes: POFile, MOFile, POEntry and MOEntry for creating new files/entries.
Read more | Tutorial | API Documentation | Projects using polib
News
2007/12/13: version 0.3.1 released (bugfix release)
What's new:
- fixed bug #0002: typo: "occurences" instead of "occurrences",
- fixed bug #0003: mismatch in exception instance names,
- removed deprecation warnings,
- removed unused charset() method in POFile/MOFile objects,
- fixed bug in multibytes string length (added regression tests),
- fixed a bug in detect_encoding(),
- added a find() method to PO/MOFile classes,
- proper handling of quoting and unquoting,
- proper handling of multiline strings in metadata
2007/12/10: I created python-polib google group, questions and suggestions are welcome !
2007/11/09: packages for linux distributions published
Various packages for OpenSuse, Suse, Fedora, SLE_10 and Mandriva have been published here, thanks to Nagappan for his time.
I hope I'll have some time to create debian and ubuntu packages soon :)
2007/10/17: version 0.3 is out !
Just download it !
What's new in version 0.3:
- speed improvements,
- polib can compile mo files now,
- full unicode support,
- and many bug fixed !
