bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Forma plural


From: Eddy Petrişor
Subject: Re: Forma plural
Date: Mon, 29 Aug 2005 13:20:16 +0300

On 8/26/05, Bruno Haible <address@hidden> wrote:
> Eddy Petrişor wrote:
> > We are currently in the stage of confirming the exact form with a
> > grammar manual or at the Romanian Academy. (Romanians any contacts are
> > welcome).
> 
> Actually the section 3.5.2 of the "Very detailed Romanian grammar"
> link at http://en.wikipedia.org/wiki/Romanian_grammar
> confirms what you are saying. See especially the first paragraph on
> page 106.

Ok, thanks

Also thanks for the link ;-)

> The resulting formula is, as you said:
> 
> nplurals=3;
> plural=(n==1 ? 0 : (((n%100 > 19) || ((n%100 == 0) && (n!=0))) ? 2 : 1))
> or
> plural=(n==1 ? 0 : (n==0 || ((n%100) > 0 && (n%100) < 20)) ? 1 : 2)

your formula is more compact, probably I should advocate to use yours
as it is more clear...

> I'm adding this to the GNU gettext documentation:

Doesn't gettext also have a set of suggested formulas that is incuded
in the code?
Is that in your domain, also?

> + @item Three forms, special case for numbers ending in 00 or [2-9][0-9]

What about:

+ @item Three forms, special case for numbers ending in 00 or
[2-9][0-9] (0 itslef is also an exception)

When will online documentation be updated?

-- 
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein

reply via email to

[Prev in Thread] Current Thread [Next in Thread]