[zanata-users] broken po files after adding msgid_plurals to pot files

Sean Flanigan sflaniga at redhat.com
Wed Nov 21 04:37:27 UTC 2012


You're right, it looks like the Python client is using msgstr instead of
msgstr[0] for any plural strings which haven't been translated yet.

Try github commit 26108dafb0a702c87acdd3b307de51d59c3adbcc or later, and
let me know how it goes.


On 2012-11-21 00:28, Adrian Likins wrote:
> On 11/19/2012 07:33 PM, Sean Flanigan wrote:
>> Hi Adrian,
>>
>> Which client are you using?
>>
>> Sean.
> 
> zanata-python-client, from github 152170421690ae8b203f2f5636df548044bbc290
> 
> Adrian
> 
>>
>> On 2012-11-20 01:59, Adrian Likins wrote:
>>> I added a usage of ngettext, and the resulting msgid_plural field to my
>>> pot files. After I
>>> uploaded the pot files, the po files are not populating the field
>>> correctly.
>>> If I upload a pot with content like:
>>>
>>> #: ../src/subscription_manager/gui/installedtab.py:215
>>> #, python-format
>>> msgid "Covered by contract %s through %s"
>>> msgid_plural "Covered by contracts %s through %s"
>>> msgstr[0] ""
>>> msgstr[1] ""
>>>
>>> The po files that I pull are populated like:
>>>
>>>    "Covered by contract %s through %s"
>>> msgid_plural "Covered by contracts %s through %s"
>>> msgstr ""
>>>
>>>
>>> Which cause msgfmt to give errors like:
>>>
>>> po/ja.po:293:10: syntax error
>>> msgfmt: found 1 fatal error
>>>
>>>
>>> It seems like this is happening for po's that
>>> haven't had any changes made to them since uploading
>>> the pot file. Files that have had changes (as.po, for
>>> example) seem to be okay.
>>>
>>> Adrian
>>>
> 


-- 
Sean Flanigan

Senior Software Engineer
Engineering - Internationalisation
Red Hat

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/zanata-users/attachments/20121121/50d1f756/attachment.sig>


More information about the zanata-users mailing list