polib is a Python library to manipulate gettext files (po and mo files).
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.
Product's homepage
Requirements:
· Python
What's New in This Release: [ read full changelog ]
· speed up POFile.merge method (thanks @encukou)
· allow comments starting with two '#' characters (thanks @goibhniu)