From: Bruno Haible Date: Mon, 3 Apr 2006 11:26:01 +0000 (+0000) Subject: More details about the plural expression syntax. X-Git-Tag: v0.15~257 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0813e57437ea73d7a11144b92cac189c914f0c5;p=thirdparty%2Fgettext.git More details about the plural expression syntax. --- diff --git a/gettext-tools/doc/ChangeLog b/gettext-tools/doc/ChangeLog index 342d6299b..a6432b1ba 100644 --- a/gettext-tools/doc/ChangeLog +++ b/gettext-tools/doc/ChangeLog @@ -1,3 +1,9 @@ +2006-04-02 Bruno Haible + + * gettext.texi (Plural Forms): More details about the expression + syntax. + Reported by Martin von Löwis . + 2006-04-01 Bruno Haible * texi2html: Add option -expandtex. Expand @ifhtml by default, not diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi index 233c515ca..fb8ed36ba 100644 --- a/gettext-tools/doc/gettext.texi +++ b/gettext-tools/doc/gettext.texi @@ -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