Message240785
I'm having no luck reproducing this issue.
Regarding pygettext.py generating .po files:
I've used the messages.po file provided by the OP, and also using a generated .po file from pygettext.py with the offending header PO-Revision-Date:
As a side note, I'm not quite sure how you can get pygettext.py to generate anything but "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE" in python 3.3+, because it's a static line.
Regarding gettext.py
1: Tools/msgfmt.py -o locales/testlang/LC_MESSAGES/messages.mo locales/testlang/LC_MESSAGES/messages.po
(all is good)
2: Run this simple script:
import gettext
t = gettext.translation('messages',
localedir='mytests/locales',
languages=['testlang'], )
_ = t.gettext
print('------------')
print(_('TestMe'))
print('------------')
Works without exceptions.
The only way I can recreate this issue is by saving my po file in a non-utf8 format (latin-1) and running the above code. It fails perfectly.
Can you help me recreate your issue? |
|
Date |
User |
Action |
Args |
2015-04-13 22:24:20 | flipmcf | set | recipients:
+ flipmcf, jwilk, eric.araujo, Michael.Müller |
2015-04-13 22:24:20 | flipmcf | set | messageid: <1428963860.64.0.0091137325303.issue19907@psf.upfronthosting.co.za> |
2015-04-13 22:24:20 | flipmcf | link | issue19907 messages |
2015-04-13 22:24:20 | flipmcf | create | |
|