summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gettext-tools/doc/ChangeLog7
-rw-r--r--gettext-tools/doc/gettext.texi17
-rw-r--r--gettext-tools/src/ChangeLog6
-rw-r--r--gettext-tools/src/plural-table.c4
-rw-r--r--gettext-tools/tests/ChangeLog4
-rwxr-xr-xgettext-tools/tests/plural-22
6 files changed, 35 insertions, 5 deletions
diff --git a/gettext-tools/doc/ChangeLog b/gettext-tools/doc/ChangeLog
index 17aa8dc..e40624c 100644
--- a/gettext-tools/doc/ChangeLog
+++ b/gettext-tools/doc/ChangeLog
@@ -1,5 +1,12 @@
2006-08-16 Bruno Haible <bruno@clisp.org>
+ * gettext.texi (Plural Forms): Put Hungarian under nplurals=2, and
+ explain why.
+ Reported by Arpad Biro <biro_arpad@yahoo.com> and
+ Gabor Kelemen <kelemeng@gnome.hu>.
+
+2006-08-16 Bruno Haible <bruno@clisp.org>
+
* gettext.texi (Plural Forms): Mention the use of ngettext without
cardinal numbers.
Reported by Arpad Biro <biro_arpad@yahoo.com>.
diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi
index cf7bec1..f95e10b 100644
--- a/gettext-tools/doc/gettext.texi
+++ b/gettext-tools/doc/gettext.texi
@@ -5284,8 +5284,6 @@ Plural-Forms: nplurals=1; plural=0;
Languages with this property include:
@table @asis
-@item Finno-Ugric family
-Hungarian
@item Asian family
Japanese, Korean, Vietnamese
@item Turkic/Altaic family
@@ -5321,6 +5319,21 @@ Italian, Portuguese, Spanish
Esperanto
@end table
+@noindent
+Another language using the same header entry is:
+
+@table @asis
+@item Finno-Ugric family
+Hungarian
+@end table
+
+Hungarian does not appear to have a plural if you look at sentences involving
+ordinal numbers. For example, ``1 apple'' is ``1 alma'', and ``123 apples'' is
+``123 apples''. But when the number is not explicit, the distinction between
+singular and plural exists: ``the apple'' is ``az alma'', and ``the apples'' is
+``az alm@'{a}k''. Since @code{ngettext} has to support both types of sentences,
+it is classified here, under ``two forms''.
+
@item Two forms, singular used for zero and one
Exceptional case in the language family. The header entry would be:
diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog
index 410e970..195b130 100644
--- a/gettext-tools/src/ChangeLog
+++ b/gettext-tools/src/ChangeLog
@@ -1,5 +1,11 @@
2006-08-16 Bruno Haible <bruno@clisp.org>
+ * plural-table.c (plural_table): Put Hungarian under nplurals=2.
+ Reported by Arpad Biro <biro_arpad@yahoo.com> and
+ Gabor Kelemen <kelemeng@gnome.hu>.
+
+2006-08-16 Bruno Haible <bruno@clisp.org>
+
* read-mo.c: Include stdbool.h, stdlib.h, format.h.
(read_mo_file): Mark messages with system-dependent segments as
"#, c-format" or "#, objc-format", as appropriate.
diff --git a/gettext-tools/src/plural-table.c b/gettext-tools/src/plural-table.c
index 3724f37..c7839e0 100644
--- a/gettext-tools/src/plural-table.c
+++ b/gettext-tools/src/plural-table.c
@@ -1,5 +1,5 @@
/* Table of known plural form expressions.
- Copyright (C) 2001-2005 Free Software Foundation, Inc.
+ Copyright (C) 2001-2006 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2002.
This program is free software; you can redistribute it and/or modify
@@ -26,7 +26,6 @@
/* Formulas taken from the documentation, node "Plural forms". */
struct plural_table_entry plural_table[] =
{
- { "hu", "Hungarian", "nplurals=1; plural=0;" },
{ "ja", "Japanese", "nplurals=1; plural=0;" },
{ "ko", "Korean", "nplurals=1; plural=0;" },
{ "vi", "Vietnamese", "nplurals=1; plural=0;" },
@@ -48,6 +47,7 @@ struct plural_table_entry plural_table[] =
{ "pt", "Portuguese", "nplurals=2; plural=(n != 1);" },
{ "es", "Spanish", "nplurals=2; plural=(n != 1);" },
{ "eo", "Esperanto", "nplurals=2; plural=(n != 1);" },
+ { "hu", "Hungarian", "nplurals=2; plural=(n != 1);" },
{ "fr", "French", "nplurals=2; plural=(n > 1);" },
{ "pt_BR", "Brazilian", "nplurals=2; plural=(n > 1);" },
{ "lv", "Latvian", "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);" },
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog
index 69e4e46..fc97192 100644
--- a/gettext-tools/tests/ChangeLog
+++ b/gettext-tools/tests/ChangeLog
@@ -1,5 +1,9 @@
2006-08-16 Bruno Haible <bruno@clisp.org>
+ * plural-2: Use Japanese, not Hungarian, as a test case for nplurals=1.
+
+2006-08-16 Bruno Haible <bruno@clisp.org>
+
* msgunfmt-2: New file.
* Makefile.am (TESTS): Add it.
diff --git a/gettext-tools/tests/plural-2 b/gettext-tools/tests/plural-2
index e3c624f..dff148b 100755
--- a/gettext-tools/tests/plural-2
+++ b/gettext-tools/tests/plural-2
@@ -10,7 +10,7 @@ test -d ll/LC_MESSAGES || mkdir ll/LC_MESSAGES
tmpfiles="$tmpfiles plural-2.data"
cat <<EOF > plural-2.data
-hu
+ja
0
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
de