Questions, Answers, HInts, Tips
Submitted by margie, updated on 10 Nov 2009 - 0 comments
There have been some questions about Transifex rejecting a PO file, with the following the most common error message displayed.
"Your file does not pass by the check for correctness (msgfmt -c). Please run this command on your system to see the errors."
The most common reason for this error is the "plurals" issue.
When I did a msgfmt -c, as suggested by the error message, the offending lines were displayed (as shown below for Dalston component)
#: ../dalston/dalston-power-applet.c:159
#, c-format
msgid "%d hour"
msgid_plural "%d hours"
msgstr[0] "%d tunti"
msgstr[1] "%d tuntia"
The best way to fix this is in PO Edit. Go to Settings (under the Catalog menu) find the label "Plural Forms" at the bottom of the dialog box, and add the line nplurals=2; plural=n!=1;
Another reason for rejection might be that your po file is not UTF-8.
- Printer-friendly version
- Login or register to post comments