[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: Changing the number of plural forms
From: "Yuri Chornoivan" <yurchor () ukr ! net>
Date: 2010-06-11 19:39:11
Message-ID: op.vd5h7lkhl2zvei () localhost ! localdomain
[Download RAW message or body]
Hi!
The current number of plural forms in Ukrainian leads to very ugly
translations of the following type of messages:
msgid ""
"The following package has not been verified by its author. Downloading "
"untrusted packages has been disallowed by your current configuration."
msgid_plural ""
"The following packages have not been verified by their authors.
Downloading "
"untrusted packages has been disallowed by your current configuration."
The reason is that the plural formula
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
gives plurals (21, 31, 41...) for the first (singular) form in English.
Is there any way to change the plural formula to
nplurals=4; plural=n==1 ? 3 : n%10==1 && n%100!=11 ? 0 : n%10>=2 &&
n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;
like in Serbian?
Thanks for your advices.
Yuri
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic