From cbf62f0301aff684755efbf5818f573dc9219dd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danilo=20=C5=A0egan?= Date: Fri, 31 Mar 2006 19:33:20 +0000 Subject: Added testcase. --- xml2po/tests/ChangeLog | 7 +++++++ xml2po/tests/footnotes.po | 36 ++++++++++++++++++++++++++++++++++++ xml2po/tests/footnotes.pot | 36 ++++++++++++++++++++++++++++++++++++ xml2po/tests/footnotes.xml | 23 +++++++++++++++++++++++ xml2po/tests/footnotes.xml.out | 11 +++++++++++ xml2po/tests/test.py | 2 +- 6 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 xml2po/tests/footnotes.po create mode 100644 xml2po/tests/footnotes.pot create mode 100644 xml2po/tests/footnotes.xml create mode 100644 xml2po/tests/footnotes.xml.out diff --git a/xml2po/tests/ChangeLog b/xml2po/tests/ChangeLog index c7a4f8f..d21b85d 100644 --- a/xml2po/tests/ChangeLog +++ b/xml2po/tests/ChangeLog @@ -1,3 +1,10 @@ +2006-03-31 Danilo Šegan + + * footnotes.xml, footnotes.xml.out, footnotes.pot, footnotes.po: + * test.py (SIMPLETESTS): + + Added 'footnotes.xml' test case. + 2005-04-02 Danilo Šegan * test.py (SIMPLETESTS): Add utf8-original.xml. diff --git a/xml2po/tests/footnotes.po b/xml2po/tests/footnotes.po new file mode 100644 index 0000000..446cf8d --- /dev/null +++ b/xml2po/tests/footnotes.po @@ -0,0 +1,36 @@ +msgid "" +msgstr "" +"Project-Id-Version: footnotes test\n" +"POT-Creation-Date: 2006-03-31 21:30+0200\n" +"PO-Revision-Date: 2006-03-31 21:33+0200\n" +"Last-Translator: Данило\n" +"Language-Team: Serbian\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: footnotes.xml:6(title) +msgid "Introduction" +msgstr "Увод" + +#: footnotes.xml:9(para) +msgid "Those short explanations on the bottom of the page" +msgstr "Она кратка објашњења у дну стране" + +#: footnotes.xml:8(para) +msgid "This is a test of footnotes extraction, since footnotes are not \"final\" (i.e. directly extracted) elements." +msgstr "Ово је проба извлачења фуснота, пошто фусноте нису „финални“ (тј. директно извучени) елементи." + +#: footnotes.xml:15(para) +msgid "Remember?" +msgstr "Сећаш се?" + +#: footnotes.xml:13(para) +msgid "That means that if there is some ignorable content inside the footnote, they would still not be shown in the output. This also applies to other cases of nested tags, but it was originally reported against footnotes as bug #172784." +msgstr "Ово значи да ако има нешто занемарљивог садржаја унутар фусноте, оне се и даље неће видети у излазу. Ово такође важи и за остале случајеве угњеждених тагова, али је првобитно пријављено за фусноте као грешка #172784." + +#. Put one translator per line, in the form of NAME , YEAR1, YEAR2. +#: footnotes.xml:0(None) +msgid "translator-credits" +msgstr "" + diff --git a/xml2po/tests/footnotes.pot b/xml2po/tests/footnotes.pot new file mode 100644 index 0000000..5f0e656 --- /dev/null +++ b/xml2po/tests/footnotes.pot @@ -0,0 +1,36 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: \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" + +#: footnotes.xml:6(title) +msgid "Introduction" +msgstr "" + +#: footnotes.xml:9(para) +msgid "Those short explanations on the bottom of the page" +msgstr "" + +#: footnotes.xml:8(para) +msgid "This is a test of footnotes extraction, since footnotes are not \"final\" (i.e. directly extracted) elements." +msgstr "" + +#: footnotes.xml:15(para) +msgid "Remember?" +msgstr "" + +#: footnotes.xml:13(para) +msgid "That means that if there is some ignorable content inside the footnote, they would still not be shown in the output. This also applies to other cases of nested tags, but it was originally reported against footnotes as bug #172784." +msgstr "" + +#. Put one translator per line, in the form of NAME , YEAR1, YEAR2. +#: footnotes.xml:0(None) +msgid "translator-credits" +msgstr "" + diff --git a/xml2po/tests/footnotes.xml b/xml2po/tests/footnotes.xml new file mode 100644 index 0000000..9178d64 --- /dev/null +++ b/xml2po/tests/footnotes.xml @@ -0,0 +1,23 @@ + + +
+ + Introduction + + + This is a test of footnotesThose short + explanations on the bottom of the page extraction, + since footnotes are not "final" (i.e. directly extracted) elements. + + + That means that if there is some ignorable content inside the footnote + Remember? + + , they would still not be shown in the output. + This also applies to other cases of nested tags, but it was + originally reported against footnotes as bug #172784. + + + +
diff --git a/xml2po/tests/footnotes.xml.out b/xml2po/tests/footnotes.xml.out new file mode 100644 index 0000000..050647c --- /dev/null +++ b/xml2po/tests/footnotes.xml.out @@ -0,0 +1,11 @@ + + +
+ + Увод + + Ово је проба извлачења фуснотаОна кратка објашњења у дну стране, пошто фусноте нису „финални“ (тј. директно извучени) елементи. + Ово значи да ако има нешто занемарљивог садржаја унутар фуснотеСећаш се?, оне се и даље неће видети у излазу. Ово такође важи и за остале случајеве угњеждених тагова, али је првобитно пријављено за фусноте као грешка #172784. + + +
diff --git a/xml2po/tests/test.py b/xml2po/tests/test.py index 6edd56e..082faf1 100755 --- a/xml2po/tests/test.py +++ b/xml2po/tests/test.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys, os -SIMPLETESTS = ['deep-finals.xml', 'deep-nonfinals.xml', 'attribute-entities.xml', 'docbook.xml', 'utf8-original.xml' ] +SIMPLETESTS = ['deep-finals.xml', 'deep-nonfinals.xml', 'attribute-entities.xml', 'docbook.xml', 'utf8-original.xml', 'footnotes.xml' ] OTHERTESTS = [ ('relnotes', 'test.sh') ] -- cgit v1.2.1