bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug report: msgfmt -c doesn't fail for some incorrect C format plural fo


From: Farzaneh Sarafraz
Subject: Bug report: msgfmt -c doesn't fail for some incorrect C format plural forms
Date: Sat, 01 Oct 2005 17:14:58 +0330

Consider the following (incorrect) translation from fa.po:

#: ../same-gnome/ui.c:73
#, c-format
msgid "%d point"
msgid_plural "%d points"
msgstr[0] "امتیاز"

in Persian translation of gnome-games, where we have"Plural-Forms: nplurals=1; 
plural=0;\n" for Persian.
Notice that %d is missing in the translation string, so the C format 
specification of msgid and msgstr do not match.

How to reproduce the bug:
msgfmt -cv fa.po

What was expected:
gnome-games.gnome-2-12.fa.po:4597: number of format specifications in 'msgid' 
and 'msgstr[0]' does not match
msgfmt: found 1 fatal error

What happened:  
1160 translated messages, 5 fuzzy translations, 50 untranslated messages.

In general, at least one of the plural forms must contain the C format 
specifier; otherwise msgfmt -c should fail.

For more information, this is the correct translation of the above string:
msgstr[0] "%Id امتیاز"








reply via email to

[Prev in Thread] Current Thread [Next in Thread]