From: Bruno Haible Date: Wed, 15 Mar 2023 23:11:20 +0000 (+0100) Subject: doc: Add a clarification. X-Git-Tag: v0.22~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fabdc10e3fe51d660517c42da6217d63071f32b;p=thirdparty%2Fgettext.git doc: Add a clarification. Reported by Christian Ohm in . * gettext-tools/doc/gettext.texi (c-format Flag): Clarify that an xgettext:... comment applies only to the next string. --- diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi index d50b96969..610b3960e 100644 --- a/gettext-tools/doc/gettext.texi +++ b/gettext-tools/doc/gettext.texi @@ -2648,7 +2648,9 @@ the @code{c-format} flag. This kind of comment should be used when @code{xgettext} does not recognize the string as a format string but it really is one and it should be tested. Please note that when the comment is in the same line as the @code{gettext} keyword, it must be -before the string to be translated. +before the string to be translated. Also note that a comment such as +@code{xgettext:c-format} applies only to the first string in the same +or the next line, not to multiple strings. This situation happens quite often. The @code{printf} function is often called with strings which do not contain a format specifier. Of course