]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
doc: Mention the behavior stripping *.in
authorDaiki Ueno <ueno@gnu.org>
Wed, 10 Feb 2016 06:50:39 +0000 (15:50 +0900)
committerDaiki Ueno <ueno@gnu.org>
Wed, 10 Feb 2016 06:50:39 +0000 (15:50 +0900)
* gettext-tools/doc/gettext.texi (Preparing ITS Rules): Add footnote
explaining the matching behavior if the input file name has the .in
suffix.  Suggested by Jan Synacek.

gettext-tools/doc/gettext.texi

index c87fb72156e4cc0e90f04f016ff5a4a362828d0d..e5d2aec3186c74bcb2a29d0156eef2c3f5e8731d 100644 (file)
@@ -12351,7 +12351,12 @@ an ITS rule with an XML file.  If the above ITS file is saved as
 
 The @code{locatingRule} element must have a @code{pattern} attribute,
 which denotes either a literal file name or a wildcard pattern of the
-XML file.  The @code{locatingRule} element can have child
+XML file@footnote{Note that the file name matching is done after
+removing any @code{.in} suffix from the input file name.  Thus the
+@code{pattern} attribute must not include a pattern matching @code{.in}.
+For example, if the input file name is @file{foo.msg.in}, the pattern
+should be either @code{*.msg} or just @code{*}, rather than
+@code{*.in}.}.  The @code{locatingRule} element can have child
 @code{documentRule} element, which adds checks on the content of the XML
 file.