The user 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.
- On unix systems
tar xzfv polib-x.y.z.tar.gz
python setup build
sudo python setup.py install
- If your system support the rpm format you can alternatively download the binary rpm (polib-x.y.z-k.rpm) and install it as usual.
- On windows systems we recommend you download and install the binary package provided
· Python 2.4 or higher
What's New in This Release: [ read full changelog ]
· polib is now fully PEP8 compliant.
· Small improvements: remove unused "typ" var (thanks Rodrigo Silva), mproved Makefile, Make sure _BaseFile.__contains__ returns a boolean value.