[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: Plural Handling
From: "Prof. Dr. Eduard Werner / Edward Wornar" <e.werner () rz ! uni-leipzig ! de>
Date: 2003-05-12 12:23:08
[Download RAW message or body]
Hello,
I guess there are a few errors in the description of plural handling:
Four forms, special case for one and all numbers ending in 2, 3, or 4
The header entry would look like this:
Plural-Forms: nplurals=4; \
plural=n==1 ? 0 : \
n%10==2 ? 1 : n%10==3 || n%10==4 ? 2 : 3;
Languages with this property include:
Slavic family
Slovenian
The above rule would result in numbers like 12, 22 taking the dual
and numbers like 13, 24 taking the nom pl which is wrong. On
the other hand, 101 would take the genetive pl, which is wrong either.
So I guess this should read
Plural-Forms: nplurals=4; \
plural=n%100==1 ? 0 : \
n%100==2 ? 1 : n%100==3 || n%100 == 4 ? 2 : 3;
Languages with this property include:
Slavic family
Slovenian
Upper Sorbian
Lower Sorbian
A similar correction
plural=n%10==1 && %n != 11 ? 0
instead of
plural=n==1 ? 0
is necessary for other Slavic languages like Polish or Russian
(with numbers like 21, 71, 101, but not 11 the nom sg is used).
Cheers
Edi
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic