diff options
Diffstat (limited to 'gettext-tools/tests/xgettext-its-1')
-rwxr-xr-x | gettext-tools/tests/xgettext-its-1 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gettext-tools/tests/xgettext-its-1 b/gettext-tools/tests/xgettext-its-1 index 26a149c..9e3cac5 100755 --- a/gettext-tools/tests/xgettext-its-1 +++ b/gettext-tools/tests/xgettext-its-1 @@ -99,6 +99,11 @@ cat <<\EOF > its/messages.its <gt:contextRule selector="//msg:p[@context = 'yes']" contextPointer="substring-before(., '|')" textPointer="substring-after(., '|')"/> + + <gt:escapeRule selector="//msg:message/*[@unescape = 'yes']" escape="no"/> + + <its:translateRule selector="//msg:message/@unescaped" translate="yes"/> + <gt:escapeRule selector="//msg:message/@unescaped" escape="no"/> </its:rules> EOF @@ -160,6 +165,12 @@ cat <<\EOF >messages.xml but not middle </p> </message> + <message> + <p unescape="yes">This is an unescaped element <>&"</p> + </message> + <message unescaped="This is an unescaped attribute <>&""> + <p></p> + </message> </messages> EOF @@ -226,6 +237,16 @@ msgid "" "Leading/trailing whitespaces are removed,\n" " but not middle" msgstr "" + +#. (itstool) path: message/p +#: messages.xml:59 +msgid "This is an unescaped element <>&\"" +msgstr "" + +#. (itstool) path: messages/message@unescaped +#: messages.xml:61 +msgid "This is an unescaped attribute <>&\"" +msgstr "" EOF : ${DIFF=diff} |