]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Mention the use of ngettext without cardinal numbers.
authorBruno Haible <bruno@clisp.org>
Thu, 17 Aug 2006 11:51:00 +0000 (11:51 +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

index 5ebe3b983cc15d5638e464e697fceb26d6363cca..17aa8dce5a6c05d67794d1af01331662c8064d2b 100644 (file)
@@ -1,3 +1,9 @@
+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>.
+
 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * gettext.texi: Fix 2 typos.
index b49a05d55f61864c83a7589edaf01168dfb8caa7..cf7bec1a1a64e193fc29e3a33b469254f69b74a7 100644 (file)
@@ -5198,6 +5198,17 @@ printf (ngettext ("%d file removed", "%d files removed", n), n);
 Please note that the numeric value @var{n} has to be passed to the
 @code{printf} function as well.  It is not sufficient to pass it only to
 @code{ngettext}.
+
+It is also possible to use this function when the strings don't contain a
+cardinal number:
+
+@smallexample
+puts (ngettext ("Delete the selected file?",
+                "Delete the selected files?",
+                n));
+@end smallexample
+
+In this case the number @var{n} is only used to choose the plural form.
 @end deftypefun
 
 @deftypefun {char *} dngettext (const char *@var{domain}, const char *@var{msgid1}, const char *@var{msgid2}, unsigned long int @var{n})
@@ -5257,7 +5268,7 @@ The following rules are known at this point.  The language with families
 are listed.  But this does not necessarily mean the information can be
 generalized for the whole family (as can be easily seen in the table
 below).@footnote{Additions are welcome.  Send appropriate information to
-@email{bug-glibc-manual@@gnu.org}.}
+@email{bug-gnu-gettext@@gnu.org} and @email{bug-glibc-manual@@gnu.org}.}
 
 @table @asis
 @item Only one form: