[kde-i18n-ro] Forma plural

Eddy Petrişor eddy.petrisor at gmail.com
Mon Aug 29 12:20:16 CEST 2005


On 8/26/05, Bruno Haible <bruno at clisp.org> 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


More information about the kde-i18n-ro mailing list