From: Daiki Ueno Date: Wed, 23 Mar 2016 01:20:12 +0000 (+0900) Subject: doc: Fix ngettext usage example X-Git-Tag: v0.19.8~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=009c1218593a5f5a6d132b3694e4e679572eff9f;p=thirdparty%2Fgettext.git doc: Fix ngettext usage example * gettext-tools/doc/gettext.texi (Plural forms): Fix positional argument syntax in the C example. Reported by Jonathan Leffler in: http://lists.gnu.org/archive/html/bug-gettext/2016-03/msg00002.html --- diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi index e5d2aec31..1e332beaf 100644 --- a/gettext-tools/doc/gettext.texi +++ b/gettext-tools/doc/gettext.texi @@ -6133,8 +6133,8 @@ argument. Instead, you have to reorder the arguments so that @samp{n} comes last: @smallexample -printf (ngettext ("%$2d file removed from directory %$1s", - "%$2d files removed from directory %$1s", +printf (ngettext ("%2$d file removed from directory %1$s", + "%2$d files removed from directory %1$s", n), dir, n); @end smallexample