summaryrefslogtreecommitdiffstats
path: root/t/add/list
diff options
context:
space:
mode:
Diffstat (limited to 't/add/list')
-rw-r--r--t/add/list/_output7
-rw-r--r--t/add/list/_output-18
-rw-r--r--t/add/list/_output-12312
-rw-r--r--t/add/list/_output-28
-rw-r--r--t/add/list/_output-38
-rw-r--r--t/add/list/_output-list12
-rw-r--r--t/add/list/add-13
-rw-r--r--t/add/list/add-23
-rw-r--r--t/add/list/add-33
-rw-r--r--t/add/list/add.list3
-rw-r--r--t/add/list/input-16
-rw-r--r--t/add/list/input-26
-rw-r--r--t/add/list/input-36
-rw-r--r--t/add/list/input-46
-rw-r--r--t/add/list/input-56
-rw-r--r--t/add/list/list.pot29
-rw-r--r--t/add/list/po4a.conf10
-rw-r--r--t/add/list/up.po29
18 files changed, 165 insertions, 0 deletions
diff --git a/t/add/list/_output b/t/add/list/_output
new file mode 100644
index 0000000..8c11a61
--- /dev/null
+++ b/t/add/list/_output
@@ -0,0 +1,7 @@
+Updating list.pot: (2 entries)
+Updating up.po: 2 translated messages.
+output-1 is 100% translated (2 strings).
+output-2 is 100% translated (2 strings).
+output-3 is 100% translated (2 strings).
+output-123 is 100% translated (2 strings).
+output-list is 100% translated (2 strings).
diff --git a/t/add/list/_output-1 b/t/add/list/_output-1
new file mode 100644
index 0000000..7ec9b9f
--- /dev/null
+++ b/t/add/list/_output-1
@@ -0,0 +1,8 @@
+TRANSLATED TITLE 0
+==================
+
+TRANSLATED TITLE 1
+------------------
+
+= Appendix 1 =
+
diff --git a/t/add/list/_output-123 b/t/add/list/_output-123
new file mode 100644
index 0000000..b364fff
--- /dev/null
+++ b/t/add/list/_output-123
@@ -0,0 +1,12 @@
+TRANSLATED TITLE 0
+==================
+
+TRANSLATED TITLE 1
+------------------
+
+= Appendix 1 =
+
+= Appendix 2 =
+
+= Appendix 3 =
+
diff --git a/t/add/list/_output-2 b/t/add/list/_output-2
new file mode 100644
index 0000000..720b7c6
--- /dev/null
+++ b/t/add/list/_output-2
@@ -0,0 +1,8 @@
+TRANSLATED TITLE 0
+==================
+
+TRANSLATED TITLE 1
+------------------
+
+= Appendix 2 =
+
diff --git a/t/add/list/_output-3 b/t/add/list/_output-3
new file mode 100644
index 0000000..c15e159
--- /dev/null
+++ b/t/add/list/_output-3
@@ -0,0 +1,8 @@
+TRANSLATED TITLE 0
+==================
+
+TRANSLATED TITLE 1
+------------------
+
+= Appendix 3 =
+
diff --git a/t/add/list/_output-list b/t/add/list/_output-list
new file mode 100644
index 0000000..b364fff
--- /dev/null
+++ b/t/add/list/_output-list
@@ -0,0 +1,12 @@
+TRANSLATED TITLE 0
+==================
+
+TRANSLATED TITLE 1
+------------------
+
+= Appendix 1 =
+
+= Appendix 2 =
+
+= Appendix 3 =
+
diff --git a/t/add/list/add-1 b/t/add/list/add-1
new file mode 100644
index 0000000..5702cca
--- /dev/null
+++ b/t/add/list/add-1
@@ -0,0 +1,3 @@
+PO4A-HEADER:mode=after;position=^TRANSLATED TITLE 1;beginboundary=^FakePo4aBoundary
+= Appendix 1 =
+
diff --git a/t/add/list/add-2 b/t/add/list/add-2
new file mode 100644
index 0000000..d9e1cfb
--- /dev/null
+++ b/t/add/list/add-2
@@ -0,0 +1,3 @@
+PO4A-HEADER:mode=after;position=^TRANSLATED TITLE 1;beginboundary=^FakePo4aBoundary
+= Appendix 2 =
+
diff --git a/t/add/list/add-3 b/t/add/list/add-3
new file mode 100644
index 0000000..fddb49e
--- /dev/null
+++ b/t/add/list/add-3
@@ -0,0 +1,3 @@
+PO4A-HEADER:mode=after;position=^TRANSLATED TITLE 1;beginboundary=^FakePo4aBoundary
+= Appendix 3 =
+
diff --git a/t/add/list/add.list b/t/add/list/add.list
new file mode 100644
index 0000000..e81bf78
--- /dev/null
+++ b/t/add/list/add.list
@@ -0,0 +1,3 @@
+add-1
+add-2
+add-3
diff --git a/t/add/list/input-1 b/t/add/list/input-1
new file mode 100644
index 0000000..65893ca
--- /dev/null
+++ b/t/add/list/input-1
@@ -0,0 +1,6 @@
+original title 0
+================
+
+original title 1
+----------------
+
diff --git a/t/add/list/input-2 b/t/add/list/input-2
new file mode 100644
index 0000000..65893ca
--- /dev/null
+++ b/t/add/list/input-2
@@ -0,0 +1,6 @@
+original title 0
+================
+
+original title 1
+----------------
+
diff --git a/t/add/list/input-3 b/t/add/list/input-3
new file mode 100644
index 0000000..65893ca
--- /dev/null
+++ b/t/add/list/input-3
@@ -0,0 +1,6 @@
+original title 0
+================
+
+original title 1
+----------------
+
diff --git a/t/add/list/input-4 b/t/add/list/input-4
new file mode 100644
index 0000000..65893ca
--- /dev/null
+++ b/t/add/list/input-4
@@ -0,0 +1,6 @@
+original title 0
+================
+
+original title 1
+----------------
+
diff --git a/t/add/list/input-5 b/t/add/list/input-5
new file mode 100644
index 0000000..65893ca
--- /dev/null
+++ b/t/add/list/input-5
@@ -0,0 +1,6 @@
+original title 0
+================
+
+original title 1
+----------------
+
diff --git a/t/add/list/list.pot b/t/add/list/list.pot
new file mode 100644
index 0000000..c0a2f7a
--- /dev/null
+++ b/t/add/list/list.pot
@@ -0,0 +1,29 @@
+# SOME DESCRIPTIVE TITLE
+# Copyright (C) YEAR Free Software Foundation, Inc.
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2020-04-06 01:08+0200\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"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. type: Title =
+#: add/list/input-1.xml:2
+#, no-wrap
+msgid "original title 0"
+msgstr ""
+
+#. type: Title -
+#: add/list/input-1.xml:3
+#, no-wrap
+msgid "original title 1"
+msgstr ""
diff --git a/t/add/list/po4a.conf b/t/add/list/po4a.conf
new file mode 100644
index 0000000..2d4f120
--- /dev/null
+++ b/t/add/list/po4a.conf
@@ -0,0 +1,10 @@
+[po4a_langs] up
+
+[po4a_paths] list.pot $lang:$lang.po
+[options] opt:"--msgmerge-opt --silent"
+
+[type:asciidoc] input-1 up:output-1 add_up:add-1
+[type:asciidoc] input-2 up:output-2 add_up:add-2
+[type:asciidoc] input-3 up:output-3 add_up:add-3
+[type:asciidoc] input-4 up:output-123 add_up:add-1 add_up:add-2 add_up:add-3
+[type:asciidoc] input-5 up:output-list add_up:@add.list
diff --git a/t/add/list/up.po b/t/add/list/up.po
new file mode 100644
index 0000000..d98e0b9
--- /dev/null
+++ b/t/add/list/up.po
@@ -0,0 +1,29 @@
+# French translations for po package
+# Copyright (C) 2020 Free Software Foundation, Inc.
+# This file is distributed under the same license as the po package.
+# Automatically generated, 2020.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: po 4a\n"
+"POT-Creation-Date: 2020-04-18 22:15+0200\n"
+"PO-Revision-Date: 2020-04-06 00:39+0200\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: none\n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+#. type: Title =
+#: input-1:2 input-2:2 input-3:2
+#, no-wrap
+msgid "original title 0"
+msgstr "TRANSLATED TITLE 0"
+
+#. type: Title -
+#: input-1:5 input-2:5 input-3:5
+#, no-wrap
+msgid "original title 1"
+msgstr "TRANSLATED TITLE 1"