Translation Team/Language Setup: Difference between revisions

Dupuy (talk | contribs)
add note on extraneous complexity of arabic plural equation
Dupuy (talk | contribs)
m further note on arabic
Line 41: Line 41:
Another common plural equation is:
Another common plural equation is:


plural=(n > 1)
:plural=(n > 1)




Line 48: Line 48:
Arabic:
Arabic:


nplurals=6
: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;  
: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;  


:''note that this is more complex than necessary as ''"&& n%100<=99"'' could be omitted without effect)''
::''note that this is more complex than necessary as ''"&& n%100<=99"'' could be omitted without effect (this is due to conversion from CLDR format which uses "in 11..99")''


Russian:
Russian:


nplurals=3
:nplurals=3


plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10< =4 && (n%100<10 or n%100>=20) ? 1 : 2)  
:plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10< =4 && (n%100<10 or n%100>=20) ? 1 : 2)  


== Special Characters ==
== Special Characters ==