summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanilo Šegan <danilo@src.gnome.org>2006-03-31 19:33:20 +0000
committerDanilo Šegan <danilo@src.gnome.org>2006-03-31 19:33:20 +0000
commitcbf62f0301aff684755efbf5818f573dc9219dd1 (patch)
tree87cc6730fb1fa2fc6bd232b353e258f5165d4d91
parent6f1c2b711320702e7e1a9f14b3b1639a168e4871 (diff)
downloadgnome-doc-utils-cbf62f0301aff684755efbf5818f573dc9219dd1.tar.gz
Added testcase.
-rw-r--r--xml2po/tests/ChangeLog7
-rw-r--r--xml2po/tests/footnotes.po36
-rw-r--r--xml2po/tests/footnotes.pot36
-rw-r--r--xml2po/tests/footnotes.xml23
-rw-r--r--xml2po/tests/footnotes.xml.out11
-rwxr-xr-xxml2po/tests/test.py2
6 files changed, 114 insertions, 1 deletions
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 <danilo@gnome.org>
+
+ * footnotes.xml, footnotes.xml.out, footnotes.pot, footnotes.po:
+ * test.py (SIMPLETESTS):
+
+ Added 'footnotes.xml' test case.
+
2005-04-02 Danilo Šegan <dsegan@gmx.net>
* 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<placeholder-1/> extraction, since footnotes are not \"final\" (i.e. directly extracted) elements."
+msgstr "Ово је проба извлачења фуснота<placeholder-1/>, пошто фусноте нису „финални“ (тј. директно извучени) елементи."
+
+#: footnotes.xml:15(para)
+msgid "Remember?"
+msgstr "Сећаш се?"
+
+#: footnotes.xml:13(para)
+msgid "That means that if there is some ignorable content inside the footnote<placeholder-1/>, 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 "Ово значи да ако има нешто занемарљивог садржаја унутар фусноте<placeholder-1/>, оне се и даље неће видети у излазу. Ово такође важи и за остале случајеве угњеждених тагова, али је првобитно пријављено за фусноте као грешка #172784."
+
+#. Put one translator per line, in the form of NAME <EMAIL>, 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 <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"
+
+#: 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<placeholder-1/> 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<placeholder-1/>, 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 <EMAIL>, 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 @@
+<?xml version="1.0"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
+<article>
+ <sect1 id="intro">
+ <title>Introduction</title>
+
+ <para>
+ This is a test of footnotes<footnote><para>Those short
+ explanations on the bottom of the page</para></footnote> extraction,
+ since footnotes are not "final" (i.e. directly extracted) elements.
+ </para>
+ <para>
+ That means that if there is some ignorable content inside the footnote<footnote>
+ <para>Remember?</para>
+ <!-- nothing important -->
+ </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.
+ </para>
+ </sect1>
+
+</article>
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 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article lang="footnotes">
+ <sect1 id="intro">
+ <title>Увод</title>
+
+ <para>Ово је проба извлачења фуснота<footnote><para>Она кратка објашњења у дну стране</para></footnote>, пошто фусноте нису „финални“ (тј. директно извучени) елементи.</para>
+ <para>Ово значи да ако има нешто занемарљивог садржаја унутар фусноте<footnote><para>Сећаш се?</para></footnote>, оне се и даље неће видети у излазу. Ово такође важи и за остале случајеве угњеждених тагова, али је првобитно пријављено за фусноте као грешка #172784.</para>
+ </sect1>
+
+</article>
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') ]