summaryrefslogtreecommitdiffstats
path: root/gettext-tools
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2005-08-26 20:32:38 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:12:49 +0200
commitba038fe481c27508303a056b0c7b6a1480dab077 (patch)
tree126edaf1ec90c8f439eab025b7f014ed56313854 /gettext-tools
parent2f98fec89f3af6d52ba27238389161355f48c5c9 (diff)
downloadexternal_gettext-ba038fe481c27508303a056b0c7b6a1480dab077.zip
external_gettext-ba038fe481c27508303a056b0c7b6a1480dab077.tar.gz
external_gettext-ba038fe481c27508303a056b0c7b6a1480dab077.tar.bz2
Support Romanian plural forms.
Diffstat (limited to 'gettext-tools')
-rw-r--r--gettext-tools/doc/ChangeLog5
-rw-r--r--gettext-tools/doc/gettext.texi16
-rw-r--r--gettext-tools/src/ChangeLog5
-rw-r--r--gettext-tools/src/plural-table.c1
4 files changed, 27 insertions, 0 deletions
diff --git a/gettext-tools/doc/ChangeLog b/gettext-tools/doc/ChangeLog
index 341e0e3..b53a4b5 100644
--- a/gettext-tools/doc/ChangeLog
+++ b/gettext-tools/doc/ChangeLog
@@ -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.
diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi
index a5ac7b1..f897086 100644
--- a/gettext-tools/doc/gettext.texi
+++ b/gettext-tools/doc/gettext.texi
@@ -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:
diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog
index eddd89c..f6be36a 100644
--- a/gettext-tools/src/ChangeLog
+++ b/gettext-tools/src/ChangeLog
@@ -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.
diff --git a/gettext-tools/src/plural-table.c b/gettext-tools/src/plural-table.c
index 085f7af..3724f37 100644
--- a/gettext-tools/src/plural-table.c
+++ b/gettext-tools/src/plural-table.c
@@ -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);" },