[Mageia-i18n] List of pot files not passing msgfmt -c

Yuri Chornoivan yurchor at ukr.net
Sat Jun 30 08:37:13 CEST 2012

> True. But conclusion for some is "msgfmt: found 2 fatal errors". See example: $ LC_ALL=C msgfmt -c urpmi_mga2/urpmi.pot msgfmt: urpmi_mga2/urpmi.pot: warning: PO file header fuzzy                               warning: older versions of msgfmt will give an error on this urpmi_mga2/urpmi.pot:7: invalid nplurals value urpmi_mga2/urpmi.pot:7: some header fields still have the initial default value msgfmt: found 2 fatal errors
> Same message for: drakx-kbd-mouse-x11.pot libDrakX.pot mga2 DrakX.pot drakconf.pot mdkonline.pot urpmi.pot drakconf.pot mga2 DrakX.pot mga2 libDrakX.pot
> I don't test files from branch mga1 in that script! And much of pot files are not branched to mga2 yet.

This is due to the nature of intltool-update. It adds 

"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"

Handling of such POT files seems well documented [1] and can be made automatically by most PO editors.

This problem can be "fixed" by adding corresponding nplurals removal command to Makefile in /po folder. Something like

perl -i -p -e "s/\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\\n\"\n//;" $(PGOAL).pot

After the removal, there will be no critical errors.

[1] https://mail.gnome.org/archives/gnome-i18n/2004-May/msg00019.html

> On 29 June 2012 15:52, Yuri Chornoivan <yurchor at ukr.net> wrote:
> > написане Fri, 29 Jun 2012 13:38:38 +0300, Filip Komar <filip.komar at gmail.com>: 
> > 
> > 
> > > It's true that some of them only reports about default values in headers but some also reports critical errors. I don't have list of them right now. If needed I can supply that. 
> > 
> > find -name "*.pot" -exec msgfmt -vc {} \; -print
> > shows nothing but header problems in /soft. Did I miss something? 
> > 
> > 
> > 
> > > Oliver, is the list for mga1 also needed?
> > > It wasn't explicitly clear to me but I assume that you and R?mi will fix them? Sooner or later we'll need "nonboken" ones for pootle or other system.
> > > On 29 June 2012 12:15, Oliver Burger <oliver.bgr at googlemail.com> wrote:
> > > 
> > > > Am 29.06.2012 12:05, schrieb Yuri Chornoivan:
> > > > msgfmt reports about default values in headers of these files. IMHO it
> > > > > is not crucial for correctness of the derived translations, but I might be wrong.Imho you are right. Those values don't harm in the pot files, but they should be set to correct ones in the po files, at least the encoding stuff. But it would be better, if the values were set correctly in the pot files as well.
> > > > Oliver
> > > > -- Oliver Burger aka obgr_seneca
> > > > Mageia contributor    

More information about the Mageia-i18n mailing list