]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Hungarian has two plural forms.
authorBruno Haible <bruno@clisp.org>
Thu, 17 Aug 2006 11:52:36 +0000 (11:52 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:54 +0000 (12:13 +0200)
gettext-tools/doc/ChangeLog
gettext-tools/doc/gettext.texi
gettext-tools/src/ChangeLog
gettext-tools/src/plural-table.c
gettext-tools/tests/ChangeLog
gettext-tools/tests/plural-2

index 17aa8dce5a6c05d67794d1af01331662c8064d2b..e40624c3325236f437e385851c1ee24198ef9400 100644 (file)
@@ -1,3 +1,10 @@
+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
index cf7bec1a1a64e193fc29e3a33b469254f69b74a7..f95e10be15e779ca772dc8f3c021f885e6e34fc9 100644 (file)
@@ -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:
 
index 410e970628bf81ca356d781965f99ce876e48ff3..195b130a9befe3d53f6146f22b02c0beaca8ad51 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 3724f37eabd153dc6dde640642b086bb9cce8fe6..c7839e05c91c6a9e21386ef6165b02c93909e815 100644 (file)
@@ -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);" },
index 69e4e468a4c96db28a65f0414fe0e4ae3c2c30eb..fc97192894cd8fdf2f99af1ba5cbf999ab8025dd 100644 (file)
@@ -1,3 +1,7 @@
+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.
index e3c624fe729490980ffd553e5346f556c12bd3d5..dff148b59432a32c7fa72a1a87b8b8dcb4d92249 100755 (executable)
@@ -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