[zanata-users] po file's that don't compile

Adrian Likins alikins at redhat.com
Thu Dec 13 15:19:28 UTC 2012


Often with po files from zanata, they will not "compile" with:
     msgfmt -c --statistics -o rhsm po/ko.po

I usually end up editing them by hand to fix them when I
can, and try to push those po changes back up.

Do I need a newer msgfmt? This is with msgfmt from
gettext-0.17-16.el6.x86_64 from rhel6.

Is this the wrong options for msgfmt? Is there
some preprocessing step I'm missing?

Are the po's generated incorrectly?

Example output from latest version of
strings from subscription-manager 1.1 branch:


for lang in as bn_IN de_DE es_ES fr gu hi it ja kn ko ml mr or pa pt_BR 
ru ta_IN te zh_CN zh_TW ; do \
         echo $lang ; \
         mkdir -p po/build/$lang/LC_MESSAGES/ ; \
         msgfmt -c --statistics -o po/build/$lang/LC_MESSAGES/rhsm.mo 
po/$lang.po ; \
     done
as
po/as.po:4: field `Project-Id-Version' still has initial default value
711 translated messages.
bn_IN
po/bn_IN.po:3: field `Project-Id-Version' still has initial default value
711 translated messages.
de_DE
po/de_DE.po:3: field `Project-Id-Version' still has initial default value
711 translated messages.
es_ES
po/es_ES.po:5: field `Project-Id-Version' still has initial default value
711 translated messages.
fr
po/fr.po:4: field `Project-Id-Version' still has initial default value
711 translated messages.
gu
po/gu.po:5: field `Project-Id-Version' still has initial default value
711 translated messages.
hi
po/hi.po:3: field `Project-Id-Version' still has initial default value
711 translated messages.
it
po/it.po:3: field `Project-Id-Version' still has initial default value
711 translated messages.
ja
po/ja.po:303:32: syntax error
msgfmt: found 1 fatal error
kn
po/kn.po:4: field `Project-Id-Version' still has initial default value
711 translated messages.
ko
po/ko.po:302:30: syntax error
msgfmt: found 1 fatal error
ml
po/ml.po:4: field `Project-Id-Version' still has initial default value
711 translated messages.
mr
po/mr.po:5: field `Project-Id-Version' still has initial default value
711 translated messages.
or
po/or.po:4: field `Project-Id-Version' still has initial default value
711 translated messages.
pa
po/pa.po:5: field `Project-Id-Version' still has initial default value
711 translated messages.
pt_BR
po/pt_BR.po:4: field `Project-Id-Version' still has initial default value
po/pt_BR.po:547: format specifications in 'msgid' and 'msgstr' for 
argument 2 are not the same
po/pt_BR.po:3877: `msgid' and `msgstr' entries do not both begin with '\n'
msgfmt: found 2 fatal errors
711 translated messages.
ru
po/ru.po:3: field `Project-Id-Version' still has initial default value
711 translated messages.
ta_IN
po/ta_IN.po:6: field `Project-Id-Version' still has initial default value
po/ta_IN.po:2289: 'msgstr' is not a valid Python format string, unlike 
'msgid'. Reason: The character that terminates the directive number 1 is 
not a valid conversion specifier.
msgfmt: found 1 fatal error
711 translated messages.
te
po/te.po:4: field `Project-Id-Version' still has initial default value
711 translated messages.
zh_CN
po/zh_CN.po:301:30: syntax error
msgfmt: found 1 fatal error
zh_TW
po/zh_TW.po:302:33: syntax error
msgfmt: found 1 fatal error


Adrian




More information about the zanata-users mailing list