From kde-i18n-doc Mon May 12 12:23:08 2003 From: "Prof. Dr. Eduard Werner / Edward Wornar" Date: Mon, 12 May 2003 12:23:08 +0000 To: kde-i18n-doc Subject: Plural Handling X-MARC-Message: https://marc.info/?l=kde-i18n-doc&m=105274223323905 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