polib
polib copied to clipboard
Pure python library to manipulate, create, modify gettext files (pot, po and mo files).
polib 1.2.0 on Python 3.7 installed via pip. It either generates the error `TypeError: list indices must be integers or slices, not str` on `POFile.save` or results in a corrupt...
Although _BaseFile shouldn't be instanciated, it contains several members which should be document in the API reference.
Repro: ```python # File: a.py import polib po_filepath = 'test_po_file.po' # Create a new PO file po = polib.POFile() # Add a fuzzy entry fuzzy_entry = polib.POEntry( msgid='fuzzy_message', msgstr='ασαφής_εικόνα', previous_msgid='fuzzy_image',...
This one also needs to be escaped according to https://github.com/izimobil/polib/issues/120#issuecomment-1638886627