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

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

wrong information in gettext documentation


From: Viliam Búr
Subject: wrong information in gettext documentation
Date: Fri, 27 Aug 2004 16:45:24 +0200

Hello!



In documentation to "gettext", URL 
http://www.gnu.org/software/gettext/manual/html_chapter/gettext_10.html, part 
"Additional functions for plural forms" I have found the following incorrect 
information:



(original text)

> 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 



The "Slovak" language should not be listen in this group, because in Slovak, 
plural forms are made like this:

0 su'borov   (0 files)
1 su'bor     (1 file)
2 su'bory    (...)
3 su'bory
4 su'bory
5 su'borov
6 su'borov
...
11 su'borov
12 su'borov
13 su'borov
...
21 su'borov
22 su'borov
23 su'borov
...
101 su'borov
102 su'borov
103 su'borov
...etc, forever



Seems to me that "Slovak" language should be moved to a special group, with 
formula like this:

Three forms, special cases for numbers 1 and 2, 3, 4
The header entry would look like this: 
  Plural-Forms: nplurals=3; \
    plural=n==1 ? 0 : ((2<=n)&&(n<=4)) ? 1 : 2;

Languages with this property include: 
 Slavic family 
  Slovak



Please let me know if this information was handled. Thanks!



Viliam Bur





reply via email to

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