summaryrefslogtreecommitdiffstats
path: root/t/cfg/split-nopo
diff options
context:
space:
mode:
Diffstat (limited to 't/cfg/split-nopo')
-rw-r--r--t/cfg/split-nopo/_first.man.de.po44
-rw-r--r--t/cfg/split-nopo/_first.man.fr.po44
-rw-r--r--t/cfg/split-nopo/_output11
-rw-r--r--t/cfg/split-nopo/_output-noupdate7
-rw-r--r--t/cfg/split-nopo/_second.man.de.po44
-rw-r--r--t/cfg/split-nopo/_second.man.fr.po44
-rw-r--r--t/cfg/split-nopo/diff_output11
-rw-r--r--t/cfg/split-nopo/first.man7
-rw-r--r--t/cfg/split-nopo/first.man.pot44
-rw-r--r--t/cfg/split-nopo/po4a.conf6
-rw-r--r--t/cfg/split-nopo/second.man8
-rw-r--r--t/cfg/split-nopo/second.man.pot44
12 files changed, 314 insertions, 0 deletions
diff --git a/t/cfg/split-nopo/_first.man.de.po b/t/cfg/split-nopo/_first.man.de.po
new file mode 100644
index 0000000..0a3499f
--- /dev/null
+++ b/t/cfg/split-nopo/_first.man.de.po
@@ -0,0 +1,44 @@
+# 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-17 16:59+0200\n"
+"PO-Revision-Date: 2020-04-17 16:59+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
+#: first.man:1
+#, no-wrap
+msgid "first"
+msgstr ""
+
+#. type: SH
+#: first.man:2 second.man:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: first.man:4
+msgid "first - a first test file"
+msgstr ""
+
+#. type: Plain text
+#: first.man:6
+msgid "Some random text."
+msgstr ""
+
+#. type: Plain text
+#: first.man:7
+msgid "More random text that does not make sense."
+msgstr ""
diff --git a/t/cfg/split-nopo/_first.man.fr.po b/t/cfg/split-nopo/_first.man.fr.po
new file mode 100644
index 0000000..0c18419
--- /dev/null
+++ b/t/cfg/split-nopo/_first.man.fr.po
@@ -0,0 +1,44 @@
+# 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-17 16:59+0200\n"
+"PO-Revision-Date: 2020-04-17 16:59+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
+#: first.man:1
+#, no-wrap
+msgid "first"
+msgstr ""
+
+#. type: SH
+#: first.man:2 second.man:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: first.man:4
+msgid "first - a first test file"
+msgstr ""
+
+#. type: Plain text
+#: first.man:6
+msgid "Some random text."
+msgstr ""
+
+#. type: Plain text
+#: first.man:7
+msgid "More random text that does not make sense."
+msgstr ""
diff --git a/t/cfg/split-nopo/_output b/t/cfg/split-nopo/_output
new file mode 100644
index 0000000..391f776
--- /dev/null
+++ b/t/cfg/split-nopo/_output
@@ -0,0 +1,11 @@
+Split mode, creating a temporary POT: (9 entries)
+The translation of master file 'first.man' in language 'de' is missing (file: first.man.de.po) -- skipping.
+The translation of master file 'second.man' in language 'de' is missing (file: second.man.de.po) -- skipping.
+The translation of master file 'first.man' in language 'fr' is missing (file: first.man.fr.po) -- skipping.
+The translation of master file 'second.man' in language 'fr' is missing (file: second.man.fr.po) -- skipping.
+Creating an empty PO file for the language de.
+Creating an empty PO file for the language fr.
+Discard first.man.de (0 of 5 strings; only 0% translated; need 80%).
+Discard second.man.de (0 of 5 strings; only 0% translated; need 80%).
+Discard first.man.fr (0 of 5 strings; only 0% translated; need 80%).
+Discard second.man.fr (0 of 5 strings; only 0% translated; need 80%).
diff --git a/t/cfg/split-nopo/_output-noupdate b/t/cfg/split-nopo/_output-noupdate
new file mode 100644
index 0000000..0f5f083
--- /dev/null
+++ b/t/cfg/split-nopo/_output-noupdate
@@ -0,0 +1,7 @@
+Split mode, creating a temporary POT: (9 entries)
+The translation of master file 'first.man' in language 'de' is missing (file: first.man.de.po) -- skipping.
+The translation of master file 'second.man' in language 'de' is missing (file: second.man.de.po) -- skipping.
+The translation of master file 'first.man' in language 'fr' is missing (file: first.man.fr.po) -- skipping.
+The translation of master file 'second.man' in language 'fr' is missing (file: second.man.fr.po) -- skipping.
+PO file for language de is missing -- skipping.
+PO file for language fr is missing -- skipping.
diff --git a/t/cfg/split-nopo/_second.man.de.po b/t/cfg/split-nopo/_second.man.de.po
new file mode 100644
index 0000000..74b0235
--- /dev/null
+++ b/t/cfg/split-nopo/_second.man.de.po
@@ -0,0 +1,44 @@
+# 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-17 16:59+0200\n"
+"PO-Revision-Date: 2020-04-17 16:59+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: SH
+#: first.man:2 second.man:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: TH
+#: second.man:1
+#, no-wrap
+msgid "second"
+msgstr ""
+
+#. type: Plain text
+#: second.man:4
+msgid "second - a second test file"
+msgstr ""
+
+#. type: Plain text
+#: second.man:7
+msgid "This is a test paragraph. A short one."
+msgstr ""
+
+#. type: Plain text
+#: second.man:8
+msgid "Another entry."
+msgstr ""
diff --git a/t/cfg/split-nopo/_second.man.fr.po b/t/cfg/split-nopo/_second.man.fr.po
new file mode 100644
index 0000000..539e8a2
--- /dev/null
+++ b/t/cfg/split-nopo/_second.man.fr.po
@@ -0,0 +1,44 @@
+# 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-17 16:59+0200\n"
+"PO-Revision-Date: 2020-04-17 16:59+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: SH
+#: first.man:2 second.man:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: TH
+#: second.man:1
+#, no-wrap
+msgid "second"
+msgstr ""
+
+#. type: Plain text
+#: second.man:4
+msgid "second - a second test file"
+msgstr ""
+
+#. type: Plain text
+#: second.man:7
+msgid "This is a test paragraph. A short one."
+msgstr ""
+
+#. type: Plain text
+#: second.man:8
+msgid "Another entry."
+msgstr ""
diff --git a/t/cfg/split-nopo/diff_output b/t/cfg/split-nopo/diff_output
new file mode 100644
index 0000000..53b5855
--- /dev/null
+++ b/t/cfg/split-nopo/diff_output
@@ -0,0 +1,11 @@
+--- cfg/split-nopo/_output-noupdate 2020-04-17 17:20:05.150242241 +0200
++++ - 2020-04-17 17:24:16.593316616 +0200
+@@ -0,0 +1,8 @@
++Split mode, creating a temporary POT.
++ (9 entries)
++The translation of master file 'first.man' in language 'de' is missing (file: first.man.de.po) -- skipping.
++The translation of master file 'second.man' in language 'de' is missing (file: second.man.de.po) -- skipping.
++The translation of master file 'first.man' in language 'fr' is missing (file: first.man.fr.po) -- skipping.
++The translation of master file 'second.man' in language 'fr' is missing (file: second.man.fr.po) -- skipping.
++PO file for language de is missing -- skipping.
++PO file for language fr is missing -- skipping.
diff --git a/t/cfg/split-nopo/first.man b/t/cfg/split-nopo/first.man
new file mode 100644
index 0000000..7283dc8
--- /dev/null
+++ b/t/cfg/split-nopo/first.man
@@ -0,0 +1,7 @@
+.TH first 1
+.SH NAME
+first \- a first test file
+
+Some random text.
+
+More random text that does not make sense.
diff --git a/t/cfg/split-nopo/first.man.pot b/t/cfg/split-nopo/first.man.pot
new file mode 100644
index 0000000..ab025af
--- /dev/null
+++ b/t/cfg/split-nopo/first.man.pot
@@ -0,0 +1,44 @@
+# 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-17 16:59+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
+#: first.man:1
+#, no-wrap
+msgid "first"
+msgstr ""
+
+#. type: SH
+#: first.man:2 second.man:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: first.man:4
+msgid "first - a first test file"
+msgstr ""
+
+#. type: Plain text
+#: first.man:6
+msgid "Some random text."
+msgstr ""
+
+#. type: Plain text
+#: first.man:7
+msgid "More random text that does not make sense."
+msgstr ""
diff --git a/t/cfg/split-nopo/po4a.conf b/t/cfg/split-nopo/po4a.conf
new file mode 100644
index 0000000..c8f3393
--- /dev/null
+++ b/t/cfg/split-nopo/po4a.conf
@@ -0,0 +1,6 @@
+[po4a_langs] fr de
+[po4a_paths] $master.pot $lang:$master.$lang.po
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] first.man $lang:first.man.$lang
+[type:man] second.man $lang:second.man.$lang
diff --git a/t/cfg/split-nopo/second.man b/t/cfg/split-nopo/second.man
new file mode 100644
index 0000000..966b73a
--- /dev/null
+++ b/t/cfg/split-nopo/second.man
@@ -0,0 +1,8 @@
+.TH second 1
+.SH NAME
+second \- a second test file
+
+This is a test paragraph.
+A short one.
+
+Another entry.
diff --git a/t/cfg/split-nopo/second.man.pot b/t/cfg/split-nopo/second.man.pot
new file mode 100644
index 0000000..1e6995b
--- /dev/null
+++ b/t/cfg/split-nopo/second.man.pot
@@ -0,0 +1,44 @@
+# 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-17 16:59+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: SH
+#: first.man:2 second.man:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: TH
+#: second.man:1
+#, no-wrap
+msgid "second"
+msgstr ""
+
+#. type: Plain text
+#: second.man:4
+msgid "second - a second test file"
+msgstr ""
+
+#. type: Plain text
+#: second.man:7
+msgid "This is a test paragraph. A short one."
+msgstr ""
+
+#. type: Plain text
+#: second.man:8
+msgid "Another entry."
+msgstr ""