Re: msgfmt plural error in gnome-applets



субота, 06. септембар 2003. 15:10:21 CEST — pclouds написа:
> header entry lacks a "plural=EXPRESSION" attribute
> /home/pclouds/downloads/new/n/gnome-applets.HEAD.vi.po:5323: message
> catalog has plural form translations...
> /home/pclouds/downloads/new/n/gnome-applets.HEAD.vi.po:6: ...but
> header entry lacks a "nplurals=INTEGER" attribute
> 

Try (from "info gettext"):
     Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;
in case your language distinguishes only two plural forms.

You need to add this to your PO header field (a "translation" of msgid 
""). For example, Serbian one looks like this:

msgid ""
msgstr ""
"Project-Id-Version: gnome-applets 2.4\n"
"POT-Creation-Date: 2003-08-12 03:23+0200\n"
"PO-Revision-Date: 2003-08-12 03:21+0200\n"
"Last-Translator: Данило Шеган <danilo@prevod.org>\n"
"Language-Team: Serbian (sr) <serbiangnome-lista@nongnu.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"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;\n"

Hope this helps

Cheers,
Danilo



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