From 8d97758ac43f2079d252fedf2a9666b33a751fd0 Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Sat, 25 Jun 2011 14:49:53 -0400 Subject: Added itst:context to specify a msgctxt for a node --- tests/Context.ll.po | 35 +++++++++++++++++++++++++++++++++++ tests/Context.ll.xml | 15 +++++++++++++++ tests/Context.pot | 35 +++++++++++++++++++++++++++++++++++ tests/Context.xml | 14 ++++++++++++++ tests/run_tests.py | 3 +++ 5 files changed, 102 insertions(+) create mode 100644 tests/Context.ll.po create mode 100644 tests/Context.ll.xml create mode 100644 tests/Context.pot create mode 100644 tests/Context.xml (limited to 'tests') diff --git a/tests/Context.ll.po b/tests/Context.ll.po new file mode 100644 index 0000000..6ea88ff --- /dev/null +++ b/tests/Context.ll.po @@ -0,0 +1,35 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2011-06-25 14:23-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: tests/Context.xml:8(info/title) +msgctxt "[[sort]]" +msgid "Title" +msgstr "Sort" + +#: tests/Context.xml:9(info/title) +msgctxt "link" +msgid "Link title" +msgstr "Linky" + +#: tests/Context.xml:10(info/title) +msgctxt "link:topic" +msgid "Topic link title" +msgstr "Topics" + +#: tests/Context.xml:12(page/title) +msgid "Title" +msgstr "Main title" + +#: tests/Context.xml:13(page/p) +msgctxt "paragraph" +msgid "Context is paragraph" +msgstr "This is a paragraph" + diff --git a/tests/Context.ll.xml b/tests/Context.ll.xml new file mode 100644 index 0000000..16e122c --- /dev/null +++ b/tests/Context.ll.xml @@ -0,0 +1,15 @@ + + + + + + + + + Sort + Linky + Topics + + Main title +

This is a paragraph

+
diff --git a/tests/Context.pot b/tests/Context.pot new file mode 100644 index 0000000..26e078c --- /dev/null +++ b/tests/Context.pot @@ -0,0 +1,35 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2011-06-25 14:23-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: tests/Context.xml:8(info/title) +msgctxt "[[sort]]" +msgid "Title" +msgstr "" + +#: tests/Context.xml:9(info/title) +msgctxt "link" +msgid "Link title" +msgstr "" + +#: tests/Context.xml:10(info/title) +msgctxt "link:topic" +msgid "Topic link title" +msgstr "" + +#: tests/Context.xml:12(page/title) +msgid "Title" +msgstr "" + +#: tests/Context.xml:13(page/p) +msgctxt "paragraph" +msgid "Context is paragraph" +msgstr "" + diff --git a/tests/Context.xml b/tests/Context.xml new file mode 100644 index 0000000..390ebc8 --- /dev/null +++ b/tests/Context.xml @@ -0,0 +1,14 @@ + + + + + + + + Title + Link title + Topic link title + + Title +

Context is paragraph

+
diff --git a/tests/run_tests.py b/tests/run_tests.py index 21c594f..e8b009e 100644 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -117,6 +117,9 @@ class ItstoolTests(unittest.TestCase): def test_attributes1(self): self._test_translation_process('Attributes1.xml') + def test_context(self): + self._test_translation_process('Context.xml') + class ITSTestRunner(unittest.TextTestRunner): def run(self, test): -- cgit v1.2.1