summaryrefslogtreecommitdiffstats
path: root/t/add
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 11:26:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 11:26:17 +0000
commit5df6c2aefebe3d2abcc939a88e294876d59f03ca (patch)
tree63fb332a0f21ddb91cb789c80cf64e134d373463 /t/add
parentInitial commit. (diff)
downloadpo4a-5df6c2aefebe3d2abcc939a88e294876d59f03ca.tar.xz
po4a-5df6c2aefebe3d2abcc939a88e294876d59f03ca.zip
Adding upstream version 0.72.upstream/0.72
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/add')
-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
-rw-r--r--t/add/modifiers/_output10
-rw-r--r--t/add/modifiers/_with-18
-rw-r--r--t/add/modifiers/_with-78
-rw-r--r--t/add/modifiers/_without-26
-rw-r--r--t/add/modifiers/_without-36
-rw-r--r--t/add/modifiers/_without-46
-rw-r--r--t/add/modifiers/_without-56
-rw-r--r--t/add/modifiers/_without-66
-rw-r--r--t/add/modifiers/_without-86
-rw-r--r--t/add/modifiers/addendum3
-rw-r--r--t/add/modifiers/addendum.list3
-rw-r--r--t/add/modifiers/input-16
-rw-r--r--t/add/modifiers/input-26
-rw-r--r--t/add/modifiers/input-36
-rw-r--r--t/add/modifiers/input-46
-rw-r--r--t/add/modifiers/input-56
-rw-r--r--t/add/modifiers/input-66
-rw-r--r--t/add/modifiers/input-76
-rw-r--r--t/add/modifiers/input-86
-rw-r--r--t/add/modifiers/list.pot29
-rw-r--r--t/add/modifiers/po4a.conf26
-rw-r--r--t/add/modifiers/up.po29
-rw-r--r--t/add/path/_multiple.man.de.112
-rw-r--r--t/add/path/_multiple.man.es.110
-rw-r--r--t/add/path/_multiple.man.fr.112
-rw-r--r--t/add/path/_multiple.man.it.110
-rw-r--r--t/add/path/_output9
-rw-r--r--t/add/path/add.de3
-rw-r--r--t/add/path/add.fr3
-rw-r--r--t/add/path/multiple.de.po39
-rw-r--r--t/add/path/multiple.es.po39
-rw-r--r--t/add/path/multiple.fr.po39
-rw-r--r--t/add/path/multiple.it.po39
-rw-r--r--t/add/path/multiple.man.15
-rw-r--r--t/add/path/multiple.pot39
-rw-r--r--t/add/path/po4a.conf5
-rw-r--r--t/add/positioning/_file-after.pod.fr26
-rw-r--r--t/add/positioning/_file-before.pod.fr26
-rw-r--r--t/add/positioning/_file-eof.pod.fr26
-rw-r--r--t/add/positioning/_file-eofmode.pod.fr26
-rw-r--r--t/add/positioning/_output6
-rw-r--r--t/add/positioning/add-after.fr5
-rw-r--r--t/add/positioning/add-before.fr5
-rw-r--r--t/add/positioning/add-eof.fr5
-rw-r--r--t/add/positioning/add-eofmode.fr5
-rw-r--r--t/add/positioning/fr.po37
-rw-r--r--t/add/positioning/input1.pod7
-rw-r--r--t/add/positioning/input2.pod7
-rw-r--r--t/add/positioning/input3.pod7
-rw-r--r--t/add/positioning/input4.pod7
-rw-r--r--t/add/positioning/positioning.conf9
-rw-r--r--t/add/positioning/positioning.pot37
70 files changed, 870 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"
diff --git a/t/add/modifiers/_output b/t/add/modifiers/_output
new file mode 100644
index 0000000..a6fcb40
--- /dev/null
+++ b/t/add/modifiers/_output
@@ -0,0 +1,10 @@
+NOT creating modifiers.pot as requested (--no-update).
+NOT updating the POT file modifiers.pot as requested (--no-update).
+with-1 is 100% translated (2 strings).
+without-2 is 100% translated (2 strings).
+without-3 is 100% translated (2 strings).
+without-4 is 100% translated (2 strings).
+without-5 is 100% translated (2 strings).
+without-6 is 100% translated (2 strings).
+with-7 is 100% translated (2 strings).
+without-8 is 100% translated (2 strings).
diff --git a/t/add/modifiers/_with-1 b/t/add/modifiers/_with-1
new file mode 100644
index 0000000..7ec9b9f
--- /dev/null
+++ b/t/add/modifiers/_with-1
@@ -0,0 +1,8 @@
+TRANSLATED TITLE 0
+==================
+
+TRANSLATED TITLE 1
+------------------
+
+= Appendix 1 =
+
diff --git a/t/add/modifiers/_with-7 b/t/add/modifiers/_with-7
new file mode 100644
index 0000000..7ec9b9f
--- /dev/null
+++ b/t/add/modifiers/_with-7
@@ -0,0 +1,8 @@
+TRANSLATED TITLE 0
+==================
+
+TRANSLATED TITLE 1
+------------------
+
+= Appendix 1 =
+
diff --git a/t/add/modifiers/_without-2 b/t/add/modifiers/_without-2
new file mode 100644
index 0000000..8f18f19
--- /dev/null
+++ b/t/add/modifiers/_without-2
@@ -0,0 +1,6 @@
+TRANSLATED TITLE 0
+==================
+
+TRANSLATED TITLE 1
+------------------
+
diff --git a/t/add/modifiers/_without-3 b/t/add/modifiers/_without-3
new file mode 100644
index 0000000..8f18f19
--- /dev/null
+++ b/t/add/modifiers/_without-3
@@ -0,0 +1,6 @@
+TRANSLATED TITLE 0
+==================
+
+TRANSLATED TITLE 1
+------------------
+
diff --git a/t/add/modifiers/_without-4 b/t/add/modifiers/_without-4
new file mode 100644
index 0000000..8f18f19
--- /dev/null
+++ b/t/add/modifiers/_without-4
@@ -0,0 +1,6 @@
+TRANSLATED TITLE 0
+==================
+
+TRANSLATED TITLE 1
+------------------
+
diff --git a/t/add/modifiers/_without-5 b/t/add/modifiers/_without-5
new file mode 100644
index 0000000..8f18f19
--- /dev/null
+++ b/t/add/modifiers/_without-5
@@ -0,0 +1,6 @@
+TRANSLATED TITLE 0
+==================
+
+TRANSLATED TITLE 1
+------------------
+
diff --git a/t/add/modifiers/_without-6 b/t/add/modifiers/_without-6
new file mode 100644
index 0000000..8f18f19
--- /dev/null
+++ b/t/add/modifiers/_without-6
@@ -0,0 +1,6 @@
+TRANSLATED TITLE 0
+==================
+
+TRANSLATED TITLE 1
+------------------
+
diff --git a/t/add/modifiers/_without-8 b/t/add/modifiers/_without-8
new file mode 100644
index 0000000..8f18f19
--- /dev/null
+++ b/t/add/modifiers/_without-8
@@ -0,0 +1,6 @@
+TRANSLATED TITLE 0
+==================
+
+TRANSLATED TITLE 1
+------------------
+
diff --git a/t/add/modifiers/addendum b/t/add/modifiers/addendum
new file mode 100644
index 0000000..5702cca
--- /dev/null
+++ b/t/add/modifiers/addendum
@@ -0,0 +1,3 @@
+PO4A-HEADER:mode=after;position=^TRANSLATED TITLE 1;beginboundary=^FakePo4aBoundary
+= Appendix 1 =
+
diff --git a/t/add/modifiers/addendum.list b/t/add/modifiers/addendum.list
new file mode 100644
index 0000000..ac5f3b5
--- /dev/null
+++ b/t/add/modifiers/addendum.list
@@ -0,0 +1,3 @@
+?addendum
+?not-existing
+!ignored \ No newline at end of file
diff --git a/t/add/modifiers/input-1 b/t/add/modifiers/input-1
new file mode 100644
index 0000000..65893ca
--- /dev/null
+++ b/t/add/modifiers/input-1
@@ -0,0 +1,6 @@
+original title 0
+================
+
+original title 1
+----------------
+
diff --git a/t/add/modifiers/input-2 b/t/add/modifiers/input-2
new file mode 100644
index 0000000..65893ca
--- /dev/null
+++ b/t/add/modifiers/input-2
@@ -0,0 +1,6 @@
+original title 0
+================
+
+original title 1
+----------------
+
diff --git a/t/add/modifiers/input-3 b/t/add/modifiers/input-3
new file mode 100644
index 0000000..65893ca
--- /dev/null
+++ b/t/add/modifiers/input-3
@@ -0,0 +1,6 @@
+original title 0
+================
+
+original title 1
+----------------
+
diff --git a/t/add/modifiers/input-4 b/t/add/modifiers/input-4
new file mode 100644
index 0000000..65893ca
--- /dev/null
+++ b/t/add/modifiers/input-4
@@ -0,0 +1,6 @@
+original title 0
+================
+
+original title 1
+----------------
+
diff --git a/t/add/modifiers/input-5 b/t/add/modifiers/input-5
new file mode 100644
index 0000000..65893ca
--- /dev/null
+++ b/t/add/modifiers/input-5
@@ -0,0 +1,6 @@
+original title 0
+================
+
+original title 1
+----------------
+
diff --git a/t/add/modifiers/input-6 b/t/add/modifiers/input-6
new file mode 100644
index 0000000..65893ca
--- /dev/null
+++ b/t/add/modifiers/input-6
@@ -0,0 +1,6 @@
+original title 0
+================
+
+original title 1
+----------------
+
diff --git a/t/add/modifiers/input-7 b/t/add/modifiers/input-7
new file mode 100644
index 0000000..65893ca
--- /dev/null
+++ b/t/add/modifiers/input-7
@@ -0,0 +1,6 @@
+original title 0
+================
+
+original title 1
+----------------
+
diff --git a/t/add/modifiers/input-8 b/t/add/modifiers/input-8
new file mode 100644
index 0000000..65893ca
--- /dev/null
+++ b/t/add/modifiers/input-8
@@ -0,0 +1,6 @@
+original title 0
+================
+
+original title 1
+----------------
+
diff --git a/t/add/modifiers/list.pot b/t/add/modifiers/list.pot
new file mode 100644
index 0000000..c0a2f7a
--- /dev/null
+++ b/t/add/modifiers/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/modifiers/po4a.conf b/t/add/modifiers/po4a.conf
new file mode 100644
index 0000000..bf6ec75
--- /dev/null
+++ b/t/add/modifiers/po4a.conf
@@ -0,0 +1,26 @@
+[po4a_langs] up
+
+[po4a_paths] modifiers.pot $lang:$lang.po
+[options] opt:"--msgmerge-opt --silent"
+
+# ? with existing file
+[type:asciidoc] input-1 up:with-1 add_up:?addendum
+# ? with non-existing file
+[type:asciidoc] input-2 up:without-2 add_up:?add-not-existing
+
+# ! with existing file
+[type:asciidoc] input-3 up:without-3 add_up:!addendum
+# ! with non-existing file
+[type:asciidoc] input-4 up:without-4 add_up:!add-not-existing
+
+# ?! with existing file
+[type:asciidoc] input-5 up:without-5 add_up:?!addendum
+# ?! with non-existing file
+[type:asciidoc] input-6 up:without-6 add_up:?!add-not-existing
+
+# @? with existing file
+[type:asciidoc] input-7 up:with-7 add_up:@?addendum.list
+# @? with non-existing file
+[type:asciidoc] input-8 up:without-8 add_up:@?add-not-existing
+
+
diff --git a/t/add/modifiers/up.po b/t/add/modifiers/up.po
new file mode 100644
index 0000000..d98e0b9
--- /dev/null
+++ b/t/add/modifiers/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"
diff --git a/t/add/path/_multiple.man.de.1 b/t/add/path/_multiple.man.de.1
new file mode 100644
index 0000000..0450364
--- /dev/null
+++ b/t/add/path/_multiple.man.de.1
@@ -0,0 +1,12 @@
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH prüfung1 1
+.SH NAME
+prüfung \- nur ein Prüfung
+
+Hallo
+
+This content was added by the addendum.
diff --git a/t/add/path/_multiple.man.es.1 b/t/add/path/_multiple.man.es.1
new file mode 100644
index 0000000..091ad34
--- /dev/null
+++ b/t/add/path/_multiple.man.es.1
@@ -0,0 +1,10 @@
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH prueba1 1
+.SH NOMBRE
+prueba \- solo una prueba
+
+Hola
diff --git a/t/add/path/_multiple.man.fr.1 b/t/add/path/_multiple.man.fr.1
new file mode 100644
index 0000000..d12af00
--- /dev/null
+++ b/t/add/path/_multiple.man.fr.1
@@ -0,0 +1,12 @@
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH test1 1
+.SH NOM
+test \- juste un test
+
+Bonjour
+
+This content was added by the addendum.
diff --git a/t/add/path/_multiple.man.it.1 b/t/add/path/_multiple.man.it.1
new file mode 100644
index 0000000..b2cbe40
--- /dev/null
+++ b/t/add/path/_multiple.man.it.1
@@ -0,0 +1,10 @@
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH test1 1
+.SH NOME
+test \- solo un test
+
+Ciao
diff --git a/t/add/path/_output b/t/add/path/_output
new file mode 100644
index 0000000..dd735f8
--- /dev/null
+++ b/t/add/path/_output
@@ -0,0 +1,9 @@
+Updating multiple.pot: (4 entries)
+Updating multiple.de.po: 4 translated messages.
+Updating multiple.es.po: 4 translated messages.
+Updating multiple.fr.po: 4 translated messages.
+Updating multiple.it.po: 4 translated messages.
+multiple.man.de.1 is 100% translated (4 strings).
+multiple.man.es.1 is 100% translated (4 strings).
+multiple.man.fr.1 is 100% translated (4 strings).
+multiple.man.it.1 is 100% translated (4 strings).
diff --git a/t/add/path/add.de b/t/add/path/add.de
new file mode 100644
index 0000000..5bc9bd1
--- /dev/null
+++ b/t/add/path/add.de
@@ -0,0 +1,3 @@
+PO4A-HEADER:mode=after;position=Hallo;beginboundary=FakePo4aBoundary
+
+This content was added by the addendum.
diff --git a/t/add/path/add.fr b/t/add/path/add.fr
new file mode 100644
index 0000000..f1b6dbb
--- /dev/null
+++ b/t/add/path/add.fr
@@ -0,0 +1,3 @@
+PO4A-HEADER:mode=after;position=Bonjour;beginboundary=FakePo4aBoundary
+
+This content was added by the addendum.
diff --git a/t/add/path/multiple.de.po b/t/add/path/multiple.de.po
new file mode 100644
index 0000000..5198b30
--- /dev/null
+++ b/t/add/path/multiple.de.po
@@ -0,0 +1,39 @@
+# German 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-13 01:07+0200\n"
+"PO-Revision-Date: 2020-04-13 01:07+0200\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: none\n"
+"Language: de\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: TH
+#: cfg/multiple-nopotpo/multiple.man.1:1
+#, no-wrap
+msgid "test1"
+msgstr "prüfung1"
+
+#. type: SH
+#: cfg/multiple-nopotpo/multiple.man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr "NAME"
+
+#. type: Plain text
+#: cfg/multiple-nopotpo/multiple.man.1:4
+msgid "test - just a test"
+msgstr "prüfung - nur ein Prüfung"
+
+#. type: Plain text
+#: cfg/multiple-nopotpo/multiple.man.1:5
+msgid "Hello"
+msgstr "Hallo"
diff --git a/t/add/path/multiple.es.po b/t/add/path/multiple.es.po
new file mode 100644
index 0000000..19a3bcc
--- /dev/null
+++ b/t/add/path/multiple.es.po
@@ -0,0 +1,39 @@
+# Spanish 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-13 01:08+0200\n"
+"PO-Revision-Date: 2020-04-13 01:08+0200\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: none\n"
+"Language: es\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: TH
+#: cfg/multiple-nopotpo/multiple.man.1:1
+#, no-wrap
+msgid "test1"
+msgstr "prueba1"
+
+#. type: SH
+#: cfg/multiple-nopotpo/multiple.man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr "NOMBRE"
+
+#. type: Plain text
+#: cfg/multiple-nopotpo/multiple.man.1:4
+msgid "test - just a test"
+msgstr "prueba - solo una prueba"
+
+#. type: Plain text
+#: cfg/multiple-nopotpo/multiple.man.1:5
+msgid "Hello"
+msgstr "Hola"
diff --git a/t/add/path/multiple.fr.po b/t/add/path/multiple.fr.po
new file mode 100644
index 0000000..c1e3251
--- /dev/null
+++ b/t/add/path/multiple.fr.po
@@ -0,0 +1,39 @@
+# 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: 2005-04-24 2:54+0200\n"
+"PO-Revision-Date: 2005-04-24 2:54+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: TH
+#: t-05-config/test00_man.1:1
+#, no-wrap
+msgid "test1"
+msgstr "test1"
+
+#. type: SH
+#: t-05-config/test00_man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr "NOM"
+
+#. type: Plain text
+#: t-05-config/test00_man.1:4
+msgid "test - just a test"
+msgstr "test - juste un test"
+
+#. type: Plain text
+#: t-05-config/test00_man.1:5
+msgid "Hello"
+msgstr "Bonjour"
diff --git a/t/add/path/multiple.it.po b/t/add/path/multiple.it.po
new file mode 100644
index 0000000..f45e1db
--- /dev/null
+++ b/t/add/path/multiple.it.po
@@ -0,0 +1,39 @@
+# Italian 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-13 01:08+0200\n"
+"PO-Revision-Date: 2020-04-13 01:08+0200\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: none\n"
+"Language: it\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: TH
+#: cfg/multiple-nopotpo/multiple.man.1:1
+#, no-wrap
+msgid "test1"
+msgstr "test1"
+
+#. type: SH
+#: cfg/multiple-nopotpo/multiple.man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr "NOME"
+
+#. type: Plain text
+#: cfg/multiple-nopotpo/multiple.man.1:4
+msgid "test - just a test"
+msgstr "test - solo un test"
+
+#. type: Plain text
+#: cfg/multiple-nopotpo/multiple.man.1:5
+msgid "Hello"
+msgstr "Ciao"
diff --git a/t/add/path/multiple.man.1 b/t/add/path/multiple.man.1
new file mode 100644
index 0000000..2178e17
--- /dev/null
+++ b/t/add/path/multiple.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
diff --git a/t/add/path/multiple.pot b/t/add/path/multiple.pot
new file mode 100644
index 0000000..430a879
--- /dev/null
+++ b/t/add/path/multiple.pot
@@ -0,0 +1,39 @@
+# 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 02:01+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: TH
+#: cfg/single-nopotpo/single.man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: cfg/single-nopotpo/single.man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: cfg/single-nopotpo/single.man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: cfg/single-nopotpo/single.man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/add/path/po4a.conf b/t/add/path/po4a.conf
new file mode 100644
index 0000000..c086bb7
--- /dev/null
+++ b/t/add/path/po4a.conf
@@ -0,0 +1,5 @@
+[po4a_langs] fr de es it
+[po4a_paths] multiple.pot $lang:multiple.$lang.po add_$lang:?add.$lang
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] multiple.man.1 $lang:multiple.man.$lang.1
diff --git a/t/add/positioning/_file-after.pod.fr b/t/add/positioning/_file-after.pod.fr
new file mode 100644
index 0000000..5cb5fc3
--- /dev/null
+++ b/t/add/positioning/_file-after.pod.fr
@@ -0,0 +1,26 @@
+
+ *****************************************************
+ * GENERATED FILE, DO NOT EDIT *
+ * THIS IS NO SOURCE FILE, BUT RESULT OF COMPILATION *
+ *****************************************************
+
+This file was generated by po4a(7). Do not store it (in VCS, for example),
+but store the PO file used as source file by po4a-translate.
+
+In fact, consider this as a binary, and the PO file as a regular .c file:
+If the PO get lost, keeping this translation up-to-date will be harder.
+
+=encoding UTF-8
+
+=head1 NOM
+
+bébête - un programme bébête
+
+=head1 AUTEUR
+
+moi
+
+=head1 TRADUCTEUR
+
+moi
+ \ No newline at end of file
diff --git a/t/add/positioning/_file-before.pod.fr b/t/add/positioning/_file-before.pod.fr
new file mode 100644
index 0000000..2e208f5
--- /dev/null
+++ b/t/add/positioning/_file-before.pod.fr
@@ -0,0 +1,26 @@
+
+ *****************************************************
+ * GENERATED FILE, DO NOT EDIT *
+ * THIS IS NO SOURCE FILE, BUT RESULT OF COMPILATION *
+ *****************************************************
+
+This file was generated by po4a(7). Do not store it (in VCS, for example),
+but store the PO file used as source file by po4a-translate.
+
+In fact, consider this as a binary, and the PO file as a regular .c file:
+If the PO get lost, keeping this translation up-to-date will be harder.
+
+=encoding UTF-8
+
+=head1 NOM
+
+bébête - un programme bébête
+
+=head1 TRADUCTEUR
+
+moi
+
+=head1 AUTEUR
+
+moi
+
diff --git a/t/add/positioning/_file-eof.pod.fr b/t/add/positioning/_file-eof.pod.fr
new file mode 100644
index 0000000..163ae1d
--- /dev/null
+++ b/t/add/positioning/_file-eof.pod.fr
@@ -0,0 +1,26 @@
+
+ *****************************************************
+ * GENERATED FILE, DO NOT EDIT *
+ * THIS IS NO SOURCE FILE, BUT RESULT OF COMPILATION *
+ *****************************************************
+
+This file was generated by po4a(7). Do not store it (in VCS, for example),
+but store the PO file used as source file by po4a-translate.
+
+In fact, consider this as a binary, and the PO file as a regular .c file:
+If the PO get lost, keeping this translation up-to-date will be harder.
+
+=encoding UTF-8
+
+=head1 NOM
+
+bébête - un programme bébête
+
+=head1 AUTEUR
+
+moi
+
+=head1 TRADUCTEUR2
+
+me again
+ \ No newline at end of file
diff --git a/t/add/positioning/_file-eofmode.pod.fr b/t/add/positioning/_file-eofmode.pod.fr
new file mode 100644
index 0000000..163ae1d
--- /dev/null
+++ b/t/add/positioning/_file-eofmode.pod.fr
@@ -0,0 +1,26 @@
+
+ *****************************************************
+ * GENERATED FILE, DO NOT EDIT *
+ * THIS IS NO SOURCE FILE, BUT RESULT OF COMPILATION *
+ *****************************************************
+
+This file was generated by po4a(7). Do not store it (in VCS, for example),
+but store the PO file used as source file by po4a-translate.
+
+In fact, consider this as a binary, and the PO file as a regular .c file:
+If the PO get lost, keeping this translation up-to-date will be harder.
+
+=encoding UTF-8
+
+=head1 NOM
+
+bébête - un programme bébête
+
+=head1 AUTEUR
+
+moi
+
+=head1 TRADUCTEUR2
+
+me again
+ \ No newline at end of file
diff --git a/t/add/positioning/_output b/t/add/positioning/_output
new file mode 100644
index 0000000..669e6a0
--- /dev/null
+++ b/t/add/positioning/_output
@@ -0,0 +1,6 @@
+Updating positioning.pot: (4 entries)
+Updating fr.po: 4 translated messages.
+file-before.pod.fr is 100% translated (4 strings).
+file-after.pod.fr is 100% translated (4 strings).
+file-eof.pod.fr is 100% translated (4 strings).
+file-eofmode.pod.fr is 100% translated (4 strings).
diff --git a/t/add/positioning/add-after.fr b/t/add/positioning/add-after.fr
new file mode 100644
index 0000000..328ee1d
--- /dev/null
+++ b/t/add/positioning/add-after.fr
@@ -0,0 +1,5 @@
+PO4A-HEADER:mode=after;position=AUTEUR;beginboundary=^=head
+=head1 TRADUCTEUR
+
+moi
+ \ No newline at end of file
diff --git a/t/add/positioning/add-before.fr b/t/add/positioning/add-before.fr
new file mode 100644
index 0000000..e08ed03
--- /dev/null
+++ b/t/add/positioning/add-before.fr
@@ -0,0 +1,5 @@
+PO4A-HEADER:mode=before;position=AUTEUR;beginboundary=^=head
+=head1 TRADUCTEUR
+
+moi
+
diff --git a/t/add/positioning/add-eof.fr b/t/add/positioning/add-eof.fr
new file mode 100644
index 0000000..e6f7b2b
--- /dev/null
+++ b/t/add/positioning/add-eof.fr
@@ -0,0 +1,5 @@
+PO4A-HEADER:mode=after;position=AUTEUR;beginboundary=AStringThatDoesNotExistInTheDoc
+=head1 TRADUCTEUR2
+
+me again
+ \ No newline at end of file
diff --git a/t/add/positioning/add-eofmode.fr b/t/add/positioning/add-eofmode.fr
new file mode 100644
index 0000000..4ae2d13
--- /dev/null
+++ b/t/add/positioning/add-eofmode.fr
@@ -0,0 +1,5 @@
+PO4A-HEADER:mode=eof
+=head1 TRADUCTEUR2
+
+me again
+ \ No newline at end of file
diff --git a/t/add/positioning/fr.po b/t/add/positioning/fr.po
new file mode 100644
index 0000000..fc41440
--- /dev/null
+++ b/t/add/positioning/fr.po
@@ -0,0 +1,37 @@
+# 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-05 23:34+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: =head1
+#: add/positioning/input.pod:1
+msgid "NAME"
+msgstr "NOM"
+
+#. type: textblock
+#: add/positioning/input.pod:3
+msgid "dummy - a dummy program"
+msgstr "bébête - un programme bébête"
+
+#. type: =head1
+#: add/positioning/input.pod:5
+msgid "AUTHOR"
+msgstr "AUTEUR"
+
+#. type: textblock
+#: add/positioning/input.pod:7
+msgid "me"
+msgstr "moi"
diff --git a/t/add/positioning/input1.pod b/t/add/positioning/input1.pod
new file mode 100644
index 0000000..e8ff67a
--- /dev/null
+++ b/t/add/positioning/input1.pod
@@ -0,0 +1,7 @@
+=head1 NAME
+
+dummy - a dummy program
+
+=head1 AUTHOR
+
+me
diff --git a/t/add/positioning/input2.pod b/t/add/positioning/input2.pod
new file mode 100644
index 0000000..e8ff67a
--- /dev/null
+++ b/t/add/positioning/input2.pod
@@ -0,0 +1,7 @@
+=head1 NAME
+
+dummy - a dummy program
+
+=head1 AUTHOR
+
+me
diff --git a/t/add/positioning/input3.pod b/t/add/positioning/input3.pod
new file mode 100644
index 0000000..e8ff67a
--- /dev/null
+++ b/t/add/positioning/input3.pod
@@ -0,0 +1,7 @@
+=head1 NAME
+
+dummy - a dummy program
+
+=head1 AUTHOR
+
+me
diff --git a/t/add/positioning/input4.pod b/t/add/positioning/input4.pod
new file mode 100644
index 0000000..e8ff67a
--- /dev/null
+++ b/t/add/positioning/input4.pod
@@ -0,0 +1,7 @@
+=head1 NAME
+
+dummy - a dummy program
+
+=head1 AUTHOR
+
+me
diff --git a/t/add/positioning/positioning.conf b/t/add/positioning/positioning.conf
new file mode 100644
index 0000000..6936640
--- /dev/null
+++ b/t/add/positioning/positioning.conf
@@ -0,0 +1,9 @@
+[po4a_langs] fr
+
+[po4a_paths] positioning.pot $lang:$lang.po
+[options] opt:"--msgmerge-opt --silent"
+
+[type:pod] input1.pod fr:file-before.pod.fr add_fr:add-before.fr
+[type:pod] input2.pod fr:file-after.pod.fr add_fr:add-after.fr
+[type:pod] input3.pod fr:file-eof.pod.fr add_fr:add-eof.fr
+[type:pod] input4.pod fr:file-eofmode.pod.fr add_fr:add-eofmode.fr
diff --git a/t/add/positioning/positioning.pot b/t/add/positioning/positioning.pot
new file mode 100644
index 0000000..76a0c71
--- /dev/null
+++ b/t/add/positioning/positioning.pot
@@ -0,0 +1,37 @@
+# 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-05 23:34+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: =head1
+#: add/positioning/input.pod:1
+msgid "NAME"
+msgstr ""
+
+#. type: textblock
+#: add/positioning/input.pod:3
+msgid "dummy - a dummy program"
+msgstr ""
+
+#. type: =head1
+#: add/positioning/input.pod:5
+msgid "AUTHOR"
+msgstr ""
+
+#. type: textblock
+#: add/positioning/input.pod:7
+msgid "me"
+msgstr ""