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

Re: Plural-Forms header



On Wed, Jul 21, 2004 at 05:37:19PM +0200, Christian Perrier wrote:
> Today, I had a long discussion with Abdulazziz about Plural-Forms
> because one Debian file in stage2 uses them for talking about the
> number of packages that may be installed.
> 
> Below is the IRC log
> 
> My conclusion is that the appropriate header for Arabic is:
> 
> Plural-Forms: nplurals=4; plural=n%100==1 || n==0 ? 0 : n%100==2 ? 2 : n%100>=3 && n%100<=10 ? 2 : 3;
> 
> which is supposed to mean than Arabic has 4 plural forms:
> 
> 1st (singular) is used for 0 as well as 1 and 101, 201, etc
> 2nd (double)   is used for 2 as well as 102, 202 and so on
> 3rd (3 to 9)   is used for 3 to 9 as well as 103 to 109, 203 to 209, etc
> 4th is used for the rest
>
> Do you think this is correct? Is the Plural-Forms header above
> correct regarding to this?

Your line makes 2nd and 3rd cases identical, it should be
  Plural-Forms: nplurals=4; plural=n%100==1 || n==0 ? 0 : n%100==2 ? 1 : n%100>=3 && n%100<=10 ? 2 : 3;
It is also not clear whether first case is right or should be n%100<=1

Denis