نقاش:Plural Forms

من ويكي عربآيز
اذهب إلى: تصفح، ابحث

Plural form simplification

My apologies for not writing this in Arabic, but I am not fluent in this language.

The plural forms which you use include an unnecessary term, && n%100 <= 99 -- this is unnecessary as n%100 can only have a value from 0 to 99. While in CLDR form the fourth plural case is expressed as "in 11..99" there is no need for the extra term in gettext form.

So instead of:

nplurals= 6;
plural= n == 0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;

Arabic could use the simpler equation:

nplurals= 6;
plural= n == 0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5;

--Dupuy 19:22، 11 فبراير 2010 (UTC)

Thanks Dupuy for pointing this out, I fixed the page and lets hope that the fixed formula will propagate to applications using it. --خالد حسني 07:54، 12 فبراير 2010 (UTC)