[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ngettext plural forms for arabic



On Tuesday 15 August 2006 07:40, moayyad sadi wrote:
> I have deduced the plural forms for ngettext
> Plural-Forms: nplurals=2; plural=(n>9)?(n % 100 >2 && n % 100 < 11):(n % 10
> >2) to be used with
> char * ngettext (const char *MSGID1, const char *MSGID2,unsigned long int
> N) the translation of MSGID1 is singular and MSGID2 is plural, no MUTHANNA
> is needed because we don't say 2 namlatan, NASKH 2 MALAFFAN
> this note is importent for translators 
. The arabic plural forms formula was discussed before. See a thread "Araic 
Plural Forms Issues".
http://lists.arabeyes.org/archives/doc/2006/July/msg00217.html

We don't say "2 namlatan" but we say "namlatan" we can ommit the variable.

The new plural form is:
nplurals=6; plural=n == 0 ? 0 : n == 1 ? 1 : n == 2 ? 2 : n >= 3 && n <= 10 ? 
3 : n >= 11 && n <= 99 ? 4 : 5;