From 6fabdc10e3fe51d660517c42da6217d63071f32b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 16 Mar 2023 00:11:20 +0100 Subject: 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. --- gettext-tools/doc/gettext.texi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1