Package: python-polib
Version: 1.0.4-1
Tags: upstream
Hola Ángel.
I have this file called cobaya.po
#: disk-utils/cfdisk.c:1825
#| msgid ""
#| "\n"
#| "Partition table entries are not in disk order\n"
msgid "Note that partition table entries are not in disk order now."
msgstr ""
and this simple parsing script:
#!/usr/bin/python
import polib
po = polib.pofile('cobaya.po')
for entrada in po:
print entrada
When I run the parser on the test file I get this:
#: disk-utils/cfdisk.c:1825
#| msgid "tition table entries are not in disk order\n"
msgid "Note that partition table entries are not in disk order now."
msgstr ""
Note that the first four characters in the "previous msgid" have been trimmed.
(BTW: This is a real example from the util-linux .po file).
I'm not using any severity here, but this certainly makes polib
useless for me, as I was trying to write a simple script to show the
entries where the msgid and the previous msgid differ only in the
trailing "\n".
Thanks.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]