[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: Kpat.po plural issue
From:       Marta Rybczynska <kde-i18n () rybczynska ! net>
Date:       2008-08-24 10:58:14
Message-ID: 48B143F8.20201 () rybczynska ! net
[Download RAW message or body]

Najmi wrote:
>
>
> This the file that was translated :
> http://staff.iiu.edu.my/najmi/kpat.po
>
>   
I can't get the file (error), but I think I can see the problem without 
the file
(but will not be able to modify it for you).
> The error prompt:
>
> msgfmt --statistics kpat.po -o /dev/null  -vc
> kpat.po:7: invalid nplurals value
> msgfmt: found 2 fatal errors
> 5 translated messages, 41 fuzzy translations, 36 untranslated messages.
>
>
> I think this error was originated from 
>
>
> msgid "1 loss"
> msgid_plural "%1 losses"
> msgstr[0] "1 kalah"
> msgstr[1] "%1 kalah"
>
> #: gamestatsimpl.cpp:73
> #, kde-format
> msgid "1 win"
> msgid_plural "%1 wins"
> msgstr[0] "1 menang"
> msgstr[1] "%1 menang"
>
>
> If I left them untranslated,it still error.
>
> msgfmt --statistics kpat.pot -o /dev/null  -vc
> msgfmt: (null): warning: PO file header fuzzy
>                 warning: older versions of msgfmt will give an error on this
> kpat.pot:8: invalid nplurals value
> kpat.pot:8: some header fields still have the initial default value
> msgfmt: found 2 fatal errors
> 0 translated messages, 82 untranslated messages.
>
>
> Is is the template file itself contains bug?
>
>
>   
No. When creating .po from .pot you (your editor) should fill the header 
and,
among other things, include correct plural forms string.
Please compare your header with one from other files (already commited) for
your language. From the messages before I see the language code is ms,
so I took something from your kdebase:
http://websvn.kde.org/trunk/l10n-kde4/ms/messages/kdebase/kcm_emoticons.po?view=markup

Here we have:

"Project-Id-Version: kcm_emoticons\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-06-23 11:01+0200\n"
"PO-Revision-Date: 2008-03-29 21:19+0800\n"
"Last-Translator: Sharuzzaman Ahmat Raslan <sharuzzaman@myrealbox.com>\n"
"Language-Team: Malay <kedidiemas@yahoogroups.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
"Plural-Forms: nplurals=2; plural=1;\n"

My good guess is that the line "Plural-Forms" is filled incorrectly or not filled at all.
If you can't get it in your editor, you may simply open it in Kwrite and copy the field manually.


Regards,
Marta RybczyƄska
Polish team

>       
>
>   

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic