[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: msgfmt problem
From: |
Bruno Haible |
Subject: |
Re: msgfmt problem |
Date: |
Thu, 3 May 2007 23:59:54 +0200 |
User-agent: |
KMail/1.5.4 |
Hello,
Jens A. Tkotz wrote:
> i am having a problem with msfmt
>
> file../locale/cs_CZ.iso-8859-2/cs_CZ.iso-8859-2-gallery_common.po:1442:
> a format specification for argument 1 doesn't exist in 'msgstr[0]'
>
> The lines around are these:
>
> #: ../lib/voting.php:372
> #, php-format
> msgid "one vote"
> msgid_plural "%d votes"
> msgstr[0] "XXdnX hlasy"
> msgstr[1] "%d hlasy"
> msgstr[2] "%d hlasX"
>
>
> The command is:
>
> msgfmt --check $po_file --output-file=../locale/$lang/LC_MESSAGES/$filename
>
> Version of msgfmt is 0.16 from a SuSE 10.3-factory
The error message means that 'msgstr[0] "XXdnX hlasy"' is not suitable, since
it makes no reference to the numeric value - and according to the plural
formula (at the top of the PO file) msgstr[0] stands for more than one
numeric value.
Probably this PO file is using the "old" Czech plural formula?
Plural-Forms: nplurals=3; \
plural=n%10==1 && n%100!=11 ? 0 : \
n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;
This problem would not occur with the "new" Czech plural formula:
Plural-Forms: nplurals=3; \
plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;
Of course, only the translator can judge which plural formula she finds
more correct.
Bruno
- msgfmt problem, Jens A. Tkotz, 2007/05/03
- Re: msgfmt problem,
Bruno Haible <=