]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix the plural formula for Russian.
authorBruno Haible <bruno@clisp.org>
Mon, 2 Apr 2001 20:02:10 +0000 (20:02 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 2 Apr 2001 20:02:10 +0000 (20:02 +0000)
doc/ChangeLog
doc/gettext.texi

index 47e904cb9a974638f6100eb1e6d53529fc0cbeb8..6fc4157583a280a08ebe274879d9757b567cd8ff 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-02  Bruno Haible  <haible@clisp.cons.org>
+
+       * gettext.texi (Plural forms): Add Estonian. Fix the formula for
+       Russian and add Czech and Slovak to this case.
+
 2001-03-29  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext-0.10.36 released.
index 2a706c32edd825cb017543e027191da78a21fe9e..1a1e8772b6e92e2e325a23fe5eeb865f2ff398d6 100644 (file)
@@ -3738,7 +3738,7 @@ Languages with this property include:
 @item Germanic family
 Danish, Dutch, English, German, Norwegian, Swedish
 @item Finno-Ugric family
-Finnish
+Estonian, Finnish
 @item Latin/Greek family
 Greek
 @item Semitic family
@@ -3779,12 +3779,13 @@ Languages with this property include:
 Gaeilge
 @end table
 
-@item Three forms, special case for one and all numbers ending in 2, 3, or 4
+@item 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:
 
 @smallexample
 Plural-Forms: nplurals=3; \
-              plural=n==1 ? 0 : n%10>=2 && n%10<=4 ? 1 : 2;
+    plural=n%10==1 && n%100!=11 ? 0 : \
+           n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;
 @end smallexample
 
 @noindent
@@ -3792,7 +3793,7 @@ Languages with this property include:
 
 @table @asis
 @item Slavic family
-Russian
+Czech, Russian, Slovak
 @end table
 
 @item Three forms, special case for one and some numbers ending in 2, 3, or 4
@@ -3819,8 +3820,7 @@ The header entry would look like this:
 
 @smallexample
 Plural-Forms: nplurals=4; \
-              plural=n==1 ? 0 : \
-                     n%10==2 ? 1 : n%10==3 || n%10==4 ? 2 : 3;
+    plural=n==1 ? 0 : n%10==2 ? 1 : n%10==3 || n%10==4 ? 2 : 3;
 @end smallexample
 
 @noindent