> Hello Christian,
> I am not sure about *add information in the file header*?
> What file should I add?


Hmmm, you're asking me to teach you about Plural-Forms. Tricky..:-)

I suggest you have a look at:

http://www.gnu.org/software/gettext/manual/html_node/gettext_150.html

You'll see that, when a software uses the plural forms functionnality
of gettext, PO files must include information about them. Software
like KBabel do this automatically.

Example for French

# French translation of aptitude messages
# Copyright (C) 2001, 2004, 2005 Free Software Foundation, Inc.
# Martin Quinson <[EMAIL PROTECTED]>, 2001.
# Christian Perrier <[EMAIL PROTECTED]>, 2004.
#
msgid ""
msgstr ""
"Project-Id-Version: aptitude 0.4.1\n"
"Report-Msgid-Bugs-To: [EMAIL PROTECTED]"
"POT-Creation-Date: 2006-06-14 20:19-0700\n"
"PO-Revision-Date: 2006-03-15 15:26+0100\n"
"Last-Translator: Jean-Luc Coulon <[EMAIL PROTECTED]>\n"
"Language-Team: French <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-15\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n>1;\n"


This means that, in French, we have two forms:

-the singular, which is used when there is 0 or 1 object(s)

-the plural, which is used when there is more than 1 object


I don't know whether Khmer has different forms or not. For instance,
your Vietnamese neighbours have NO plural forms:

"Plural-Forms: nplurals=1; plural=0\n"

It seems that, actually, many Asian languages have very simple Plural
forms.

In the PO file itself, when a string uses Plural forms, you'll find
this:

(French translation):

#: src/broken_indicator.cc:330
#, c-format
msgid "%d install"
msgid_plural "%d installs"
msgstr[0] " %d à installer"
msgstr[1] " %d à installer"


(Vietnamese translation)

#: src/broken_indicator.cc:330
#, c-format
msgid "%d install"
msgid_plural "%d installs"
msgstr[0] "%d lần cài"


PS: yes, this is complicated when one discovers this..:-)


Attachment: signature.asc
Description: Digital signature

Reply via email to