]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
More details about the plural expression syntax.
authorBruno Haible <bruno@clisp.org>
Mon, 3 Apr 2006 11:26:01 +0000 (11:26 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:06 +0000 (12:13 +0200)
gettext-tools/doc/ChangeLog
gettext-tools/doc/gettext.texi

index 342d6299b17dcdc770577f4a67c587be79686f66..a6432b1bafbc525dc98f12da746f166713264678 100644 (file)
@@ -1,3 +1,9 @@
+2006-04-02  Bruno Haible  <bruno@clisp.org>
+
+       * gettext.texi (Plural Forms): More details about the expression
+       syntax.
+       Reported by Martin von Löwis <martin@v.loewis.de>.
+
 2006-04-01  Bruno Haible  <bruno@clisp.org>
 
        * texi2html: Add option -expandtex. Expand @ifhtml by default, not
index 233c515ca82801a557730a40a8050e6f75a7bd01..fb8ed36ba984be2c8c29db24344be65d7be6bfb9 100644 (file)
@@ -5204,8 +5204,10 @@ The @code{nplurals} value must be a decimal number which specifies how
 many different plural forms exist for this language.  The string
 following @code{plural} is an expression which is using the C language
 syntax.  Exceptions are that no negative numbers are allowed, numbers
-must be decimal, and the only variable allowed is @code{n}.  This
-expression will be evaluated whenever one of the functions
+must be decimal, and the only variable allowed is @code{n}.  Spaces are
+allowed in the expression, but backslash-newlines are not; in the
+examples below the backslash-newlines are present for formatting purposes
+only.  This expression will be evaluated whenever one of the functions
 @code{ngettext}, @code{dngettext}, or @code{dcngettext} is called.  The
 numeric value passed to these functions is then substituted for all uses
 of the variable @code{n} in the expression.  The resulting value then