]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Support Romanian plural forms.
authorBruno Haible <bruno@clisp.org>
Fri, 26 Aug 2005 20:32:38 +0000 (20:32 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:49 +0000 (12:12 +0200)
gettext-tools/doc/ChangeLog
gettext-tools/doc/gettext.texi
gettext-tools/src/ChangeLog
gettext-tools/src/plural-table.c

index 341e0e3f9d5c955cf78de0dd73db44433ff779b7..b53a4b5d60a4fc275299286018a1d03cb4bc2793 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-26  Bruno Haible  <bruno@clisp.org>
+
+       * gettext.texi (Plural forms): Add info about Romanian.
+       Explanations by Eddy Petrişor <eddy.petrisor@gmail.com>.
+
 2005-07-24  Bruno Haible  <bruno@clisp.org>
 
        Tidy up exported symbols.
index a5ac7b1549c39db47f84833693a80c6ce8878178..f897086863a5b3a6dbeebc9ff2ce4c3c0ee75e20 100644 (file)
@@ -5113,6 +5113,22 @@ Languages with this property include:
 Gaeilge (Irish)
 @end table
 
+@item Three forms, special case for numbers ending in 00 or [2-9][0-9]
+The header entry would be:
+
+@smallexample
+Plural-Forms: nplurals=3; \
+    plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2;
+@end smallexample
+
+@noindent
+Languages with this property include:
+
+@table @asis
+@item Romanic family
+Romanian
+@end table
+
 @item Three forms, special case for numbers ending in 1[2-9]
 The header entry would look like this:
 
index eddd89ccd8b5353d5a5218673855ffaa9406d52b..f6be36a3a0bf5f33b6a2515599bf2d28c99a1676 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-26  Bruno Haible  <bruno@clisp.org>
+
+       * plural-table.c (plural_table): Add an entry about Romanian.
+       Explanations by Eddy Petrişor <eddy.petrisor@gmail.com>.
+
 2005-08-23  Bruno Haible  <bruno@clisp.org>
 
        * write-mo.h (byteswap): New variable.
index 085f7af7bcb77f76e58a3b58496a14c069842ad1..3724f37eabd153dc6dde640642b086bb9cce8fe6 100644 (file)
@@ -52,6 +52,7 @@ struct plural_table_entry plural_table[] =
     { "pt_BR", "Brazilian",      "nplurals=2; plural=(n > 1);" },
     { "lv", "Latvian",           "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);" },
     { "ga", "Irish",             "nplurals=3; plural=n==1 ? 0 : n==2 ? 1 : 2;" },
+    { "ro", "Romanian",          "nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2;" },
     { "lt", "Lithuanian",        "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);" },
     { "hr", "Croatian",          "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" },
     { "sr", "Serbian",           "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" },