[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Plural forms for Slovak (SK) language
From: |
Bruno Haible |
Subject: |
Re: Plural forms for Slovak (SK) language |
Date: |
Wed, 14 Jun 2006 19:40:59 +0200 |
User-agent: |
KMail/1.9.1 |
Hello,
Peter Slacik wrote:
> the definition of the plural forms field (10.2.5 Additional
> functions for plural forms
> <http://www.gnu.org/software/gettext/manual/html_chapter/gettext_10.html#SEC150>).
>
> I represent the Slovak language population and I'd like to suggest
> different form of the "Plural-Forms:" definition for Slovak language.
> ...
>
> Three forms, special case for numbers one and 2, 3, 4
> The header entry would look like this:
>
> Plural-Forms: nplurals=3; \
> plural=n==1 ? 0 : \
> n>=2 && n<=4 ? 1 : 2;
>
> Languages with this property include:
>
> Slavic family
> Slovak
Thank you for your correction. This has been reported already and corrected
since gettext-0.13. Tools like msginit automatically insert the corrected
plural formula. The doc on www.gnu.org that you cite is unfortunately
somewhat older.
> I'm reading that:
>
> Three forms, special cases for numbers ending in 1 and 2, 3, 4,
> except those ending in 1[1-4]
> The header entry would look like this:
>
> Plural-Forms: nplurals=3; \
> plural=n%10==1 && n%100!=11 ? 0 : \
> n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;
>
> Languages with this property include:
>
> Slavic family
> Croatian, Czech, Russian, Slovak, Ukrainian
>
> I know that it's correct for e.g. the Czech language, but Slovak
> language behaves differently.
Actually it has been reported that Czech now also has the same rule as
the simplified Slovak rule.
Thanks for your contribution!
Bruno