diff options
author | Shaun McCance <shaunm@gnome.org> | 2012-09-21 09:39:42 -0400 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2012-09-21 09:39:42 -0400 |
commit | 1440e3b495ae502658e5e5ede6c09babce4bc4f9 (patch) | |
tree | aa6f455241af161d5f08f5fd2cb335b12ad975f9 /tests | |
parent | 2bca336117edee032ad956994d2ef3650f25e322 (diff) | |
download | itstool-1440e3b495ae502658e5e5ede6c09babce4bc4f9.tar.gz |
Support for local withinText
Diffstat (limited to 'tests')
-rw-r--r-- | tests/elementwithintextLocalXml.ll.po | 16 | ||||
-rw-r--r-- | tests/elementwithintextLocalXml.ll.xml | 6 | ||||
-rw-r--r-- | tests/elementwithintextLocalXml.pot | 16 | ||||
-rw-r--r-- | tests/elementwithintextLocalXml.xml | 8 | ||||
-rw-r--r-- | tests/elementwithintextlocalitsSpanXml.ll.po | 16 | ||||
-rw-r--r-- | tests/elementwithintextlocalitsSpanXml.ll.xml | 6 | ||||
-rw-r--r-- | tests/elementwithintextlocalitsSpanXml.pot | 16 | ||||
-rw-r--r-- | tests/elementwithintextlocalitsSpanXml.xml | 7 | ||||
-rw-r--r-- | tests/run_tests.py | 6 |
9 files changed, 97 insertions, 0 deletions
diff --git a/tests/elementwithintextLocalXml.ll.po b/tests/elementwithintextLocalXml.ll.po new file mode 100644 index 0000000..7413773 --- /dev/null +++ b/tests/elementwithintextLocalXml.ll.po @@ -0,0 +1,16 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2012-09-21 09:34-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. (itstool) path: body/par +#: tests/elementwithintextLocalXml.xml:5 +msgid "Text with <bold its:withinText=\"yes\">bold</bold>." +msgstr "Texte en <bold its:withinText=\"yes\">gras</bold>." + diff --git a/tests/elementwithintextLocalXml.ll.xml b/tests/elementwithintextLocalXml.ll.xml new file mode 100644 index 0000000..fb950c0 --- /dev/null +++ b/tests/elementwithintextLocalXml.ll.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <body> + <par>Texte en <bold its:withinText="yes">gras</bold>.</par> + </body> +</text> diff --git a/tests/elementwithintextLocalXml.pot b/tests/elementwithintextLocalXml.pot new file mode 100644 index 0000000..2f9ff2a --- /dev/null +++ b/tests/elementwithintextLocalXml.pot @@ -0,0 +1,16 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2012-09-21 09:34-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. (itstool) path: body/par +#: tests/elementwithintextLocalXml.xml:5 +msgid "Text with <bold its:withinText=\"yes\">bold</bold>." +msgstr "" + diff --git a/tests/elementwithintextLocalXml.xml b/tests/elementwithintextLocalXml.xml new file mode 100644 index 0000000..fd15d6d --- /dev/null +++ b/tests/elementwithintextLocalXml.xml @@ -0,0 +1,8 @@ +<text + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> + <body> + <par>Text with <bold + its:withinText="yes">bold</bold>.</par> + </body> +</text> diff --git a/tests/elementwithintextlocalitsSpanXml.ll.po b/tests/elementwithintextlocalitsSpanXml.ll.po new file mode 100644 index 0000000..e668a5a --- /dev/null +++ b/tests/elementwithintextlocalitsSpanXml.ll.po @@ -0,0 +1,16 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2012-09-20 08:51-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. (itstool) path: body/par +#: tests/elementwithintextlocalitsSpanXml.xml:5 +msgid "Text with <its:span withinText=\"yes\">bold</its:span>." +msgstr "Texte en <its:span withinText=\"yes\">gras</its:span>." + diff --git a/tests/elementwithintextlocalitsSpanXml.ll.xml b/tests/elementwithintextlocalitsSpanXml.ll.xml new file mode 100644 index 0000000..72d0670 --- /dev/null +++ b/tests/elementwithintextlocalitsSpanXml.ll.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <body> + <par>Texte en <its:span withinText="yes">gras</its:span>.</par> + </body> +</text> diff --git a/tests/elementwithintextlocalitsSpanXml.pot b/tests/elementwithintextlocalitsSpanXml.pot new file mode 100644 index 0000000..6995416 --- /dev/null +++ b/tests/elementwithintextlocalitsSpanXml.pot @@ -0,0 +1,16 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2012-09-20 08:51-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. (itstool) path: body/par +#: tests/elementwithintextlocalitsSpanXml.xml:5 +msgid "Text with <its:span withinText=\"yes\">bold</its:span>." +msgstr "" + diff --git a/tests/elementwithintextlocalitsSpanXml.xml b/tests/elementwithintextlocalitsSpanXml.xml new file mode 100644 index 0000000..d9927ee --- /dev/null +++ b/tests/elementwithintextlocalitsSpanXml.xml @@ -0,0 +1,7 @@ +<text + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> + <body> + <par>Text with <its:span withinText="yes">bold</its:span>.</par> + </body> +</text> diff --git a/tests/run_tests.py b/tests/run_tests.py index 83d3d21..e32c874 100644 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -254,6 +254,12 @@ class ItstoolTests(unittest.TestCase): self._test_translation_join('LocaleFilter/Locale5Xml.xml', ('fr_FR', 'fr_CA', 'fr_CH')) + def test_elementwithintextlocalitsSpanXml(self): + self._test_translation_process('elementwithintextlocalitsSpanXml.xml') + + def test_elementwithintextLocalXml(self): + self._test_translation_process('elementwithintextLocalXml.xml') + def test_WithinText1(self): self._test_translation_process('WithinText1.xml') |