This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flipmcf
Recipients Michael.Müller, eric.araujo, flipmcf, jwilk
Date 2015-04-13.22:24:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428963860.64.0.0091137325303.issue19907@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2015-04-13 22:24:20flipmcfsetrecipients: + flipmcf, jwilk, eric.araujo, Michael.Müller
2015-04-13 22:24:20flipmcfsetmessageid: <1428963860.64.0.0091137325303.issue19907@psf.upfronthosting.co.za>
2015-04-13 22:24:20flipmcflinkissue19907 messages
2015-04-13 22:24:20flipmcfcreate