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.
Installation
- On unix systems
tar xzfv polib-x.y.z.tar.gz
cd polib-x.y.z
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
What is new in this release:
- 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.
What is new in version 0.7.0:
- This version adds support for Python 3.
What is new in version 0.6.4:
- Better API, autodetected_encoding is no longer required to explicitly set the encoding.
- Fixed issue #24 Support indented PO files.
What is new in version 0.6.3:
- Fixed issue #19 (Disappearing newline characters due to textwrap module).
- Ensure wrapping works as expected.
What is new in version 0.6.2:
- Backported textwrap.TextWrapper._wrap_chunks that has support for the drop_whitespace parameter added in Python 2.6.
What is new in version 0.6.1:
- Fixed regression that prevented POFile initialization from data to work.
Requirements:
- Python 2.4 or higher
Comments not found