-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
Looks like possible and should improve performance. See https://launchpad.net/pygettextpo
- How to know if
libgettextpois available? Runctypes.util.find_library("gettextpo")insetup.py. If returnsNoneis not available.
To read PO files without defined charset "MIME-Version: 1.0\\n"\n"Content-Type: text/plain; charset=utf-8\\n" must be added to the headers or the next error will be raised:
Error
>>> gettextpo.PoFile('example.po')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
gettextpo.error: Charset missing in header.
Message conversion to user's charset will not work.dingyifei