summaryrefslogtreecommitdiffstats
path: root/t/cfg/single
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--t/cfg/single-emptypo/_fr.po39
-rw-r--r--t/cfg/single-emptypo/_output3
-rw-r--r--t/cfg/single-emptypo/_single.man.fr.110
-rw-r--r--t/cfg/single-emptypo/fr.po0
-rw-r--r--t/cfg/single-emptypo/po4a.conf5
-rw-r--r--t/cfg/single-emptypo/single.man.15
-rw-r--r--t/cfg/single-emptypo/single.pot39
-rw-r--r--t/cfg/single-fuzzied-noup/_output3
-rw-r--r--t/cfg/single-fuzzied-noup/_single-fuzzied.fr.po40
-rw-r--r--t/cfg/single-fuzzied-noup/po4a.conf5
-rw-r--r--t/cfg/single-fuzzied-noup/single-fuzzied-noup.fr.po39
-rw-r--r--t/cfg/single-fuzzied-noup/single-fuzzied-noup.man.15
-rw-r--r--t/cfg/single-fuzzied-noup/single-fuzzied-noup.pot39
-rw-r--r--t/cfg/single-fuzzied/_output3
-rw-r--r--t/cfg/single-fuzzied/_single-fuzzied.fr.po40
-rw-r--r--t/cfg/single-fuzzied/po4a.conf5
-rw-r--r--t/cfg/single-fuzzied/single-fuzzied.fr.po39
-rw-r--r--t/cfg/single-fuzzied/single-fuzzied.man.15
-rw-r--r--t/cfg/single-fuzzied/single-fuzzied.pot39
-rw-r--r--t/cfg/single-fuzzy/_output3
-rw-r--r--t/cfg/single-fuzzy/po4a.conf5
-rw-r--r--t/cfg/single-fuzzy/single-fuzzy.fr.po39
-rw-r--r--t/cfg/single-fuzzy/single-fuzzy.man.15
-rw-r--r--t/cfg/single-fuzzy/single-fuzzy.pot39
-rw-r--r--t/cfg/single-invalid/_output8
-rw-r--r--t/cfg/single-invalid/po4a.conf5
-rw-r--r--t/cfg/single-invalid/single.fr.po39
-rw-r--r--t/cfg/single-invalid/single.man.15
-rw-r--r--t/cfg/single-invalid/single.man.fr.110
-rw-r--r--t/cfg/single-invalid/single.pot39
-rw-r--r--t/cfg/single-newstr/_output3
-rw-r--r--t/cfg/single-newstr/_single-newstr.fr.po45
-rw-r--r--t/cfg/single-newstr/_single-newstr.man.fr.112
-rw-r--r--t/cfg/single-newstr/_single-newstr.pot45
-rw-r--r--t/cfg/single-newstr/po4a.conf6
-rw-r--r--t/cfg/single-newstr/single-newstr.fr.po39
-rw-r--r--t/cfg/single-newstr/single-newstr.man.17
-rw-r--r--t/cfg/single-newstr/single-newstr.pot39
-rw-r--r--t/cfg/single-nopo/_output3
-rw-r--r--t/cfg/single-nopo/_output-noupdate3
-rw-r--r--t/cfg/single-nopo/_single.fr.po39
-rw-r--r--t/cfg/single-nopo/po4a.conf5
-rw-r--r--t/cfg/single-nopo/single.man.15
-rw-r--r--t/cfg/single-nopo/single.pot39
-rw-r--r--t/cfg/single-nopotpo/_output3
-rw-r--r--t/cfg/single-nopotpo/_single.fr.po39
-rw-r--r--t/cfg/single-nopotpo/_single.pot39
-rw-r--r--t/cfg/single-nopotpo/po4a.conf5
-rw-r--r--t/cfg/single-nopotpo/single.man.15
-rw-r--r--t/cfg/single-podirectory-emptypot-emptypo/_fr.po.expected39
-rw-r--r--t/cfg/single-podirectory-emptypot-emptypo/_output6
-rw-r--r--t/cfg/single-podirectory-emptypot-emptypo/_single.pot.expected39
-rw-r--r--t/cfg/single-podirectory-emptypot-emptypo/fr.po0
-rw-r--r--t/cfg/single-podirectory-emptypot-emptypo/po4a.conf5
-rw-r--r--t/cfg/single-podirectory-emptypot-emptypo/single.man.15
-rw-r--r--t/cfg/single-podirectory-emptypot-emptypo/single.pot0
-rw-r--r--t/cfg/single-podirectory-emptypot/_output6
-rw-r--r--t/cfg/single-podirectory-emptypot/_single.man.fr.110
-rw-r--r--t/cfg/single-podirectory-emptypot/_single.pot39
-rw-r--r--t/cfg/single-podirectory-emptypot/po/fr.po39
-rw-r--r--t/cfg/single-podirectory-emptypot/po/single.pot0
-rw-r--r--t/cfg/single-podirectory-emptypot/po4a.conf5
-rw-r--r--t/cfg/single-podirectory-emptypot/single.man.15
-rw-r--r--t/cfg/single-podirectory/_output6
-rw-r--r--t/cfg/single-podirectory/_single.man.fr.110
-rw-r--r--t/cfg/single-podirectory/po/fr.po39
-rw-r--r--t/cfg/single-podirectory/po/single.pot39
-rw-r--r--t/cfg/single-podirectory/po4a.conf5
-rw-r--r--t/cfg/single-podirectory/single.man.15
-rw-r--r--t/cfg/single-potin/_output3
-rw-r--r--t/cfg/single-potin/_single.man.fr.115
-rw-r--r--t/cfg/single-potin/po4a.conf5
-rw-r--r--t/cfg/single-potin/single-filtered.man.15
-rw-r--r--t/cfg/single-potin/single.fr.po39
-rw-r--r--t/cfg/single-potin/single.man.110
-rw-r--r--t/cfg/single-potin/single.pot39
-rw-r--r--t/cfg/single-uptodate/_output3
-rw-r--r--t/cfg/single-uptodate/single-uptodate.conf5
-rw-r--r--t/cfg/single-uptodate/single-uptodate.fr.po39
-rw-r--r--t/cfg/single-uptodate/single-uptodate.man.15
-rw-r--r--t/cfg/single-uptodate/single-uptodate.man.fr.110
-rw-r--r--t/cfg/single-uptodate/single-uptodate.pot39
-rw-r--r--t/cfg/single/_output3
-rw-r--r--t/cfg/single/_single.man.fr.110
-rw-r--r--t/cfg/single/single-noupdate.output2
-rw-r--r--t/cfg/single/single.conf5
-rw-r--r--t/cfg/single/single.fr.po39
-rw-r--r--t/cfg/single/single.man.15
-rw-r--r--t/cfg/single/single.pot39
89 files changed, 1563 insertions, 0 deletions
diff --git a/t/cfg/single-emptypo/_fr.po b/t/cfg/single-emptypo/_fr.po
new file mode 100644
index 0000000..59bff7e
--- /dev/null
+++ b/t/cfg/single-emptypo/_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
+#: single.man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: single.man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: single.man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: single.man.1:5
+msgid "UTF in msgid is sometimes difficult, but mandatory for some nämes."
+msgstr ""
diff --git a/t/cfg/single-emptypo/_output b/t/cfg/single-emptypo/_output
new file mode 100644
index 0000000..d8fbf51
--- /dev/null
+++ b/t/cfg/single-emptypo/_output
@@ -0,0 +1,3 @@
+Updating single.pot: (4 entries)
+Creating an empty PO file in fr.po.
+single.man.fr.1 is 0% translated (0 of 4 strings).
diff --git a/t/cfg/single-emptypo/_single.man.fr.1 b/t/cfg/single-emptypo/_single.man.fr.1
new file mode 100644
index 0000000..4f33cec
--- /dev/null
+++ b/t/cfg/single-emptypo/_single.man.fr.1
@@ -0,0 +1,10 @@
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH test1 1
+.SH NAME
+test \- just a test
+
+UTF in msgid is sometimes difficult, but mandatory for some nämes.
diff --git a/t/cfg/single-emptypo/fr.po b/t/cfg/single-emptypo/fr.po
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/cfg/single-emptypo/fr.po
diff --git a/t/cfg/single-emptypo/po4a.conf b/t/cfg/single-emptypo/po4a.conf
new file mode 100644
index 0000000..c0f289b
--- /dev/null
+++ b/t/cfg/single-emptypo/po4a.conf
@@ -0,0 +1,5 @@
+[po4a_paths] single.pot fr:fr.po
+
+[options] opt:"--verbose --keep 0 "
+
+[type:man] single.man.1 fr:single.man.fr.1
diff --git a/t/cfg/single-emptypo/single.man.1 b/t/cfg/single-emptypo/single.man.1
new file mode 100644
index 0000000..912f8f0
--- /dev/null
+++ b/t/cfg/single-emptypo/single.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+UTF in msgid is sometimes difficult, but mandatory for some nämes.
diff --git a/t/cfg/single-emptypo/single.pot b/t/cfg/single-emptypo/single.pot
new file mode 100644
index 0000000..b81be08
--- /dev/null
+++ b/t/cfg/single-emptypo/single.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: 2005-04-24 2:54+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
+#: single.man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: single.man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: single.man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: single.man.1:5
+msgid "UTF in msgid is sometimes difficult, but mandatory for some nämes."
+msgstr ""
diff --git a/t/cfg/single-fuzzied-noup/_output b/t/cfg/single-fuzzied-noup/_output
new file mode 100644
index 0000000..9fb696e
--- /dev/null
+++ b/t/cfg/single-fuzzied-noup/_output
@@ -0,0 +1,3 @@
+NOT updating single-fuzzied-noup.pot as requested (--no-update).
+NOT updating the POT file single-fuzzied-noup.pot as requested (--no-update).
+Discard single-fuzzied-noup.man.fr.1 (3 of 4 strings; only 75% translated; need 80%).
diff --git a/t/cfg/single-fuzzied-noup/_single-fuzzied.fr.po b/t/cfg/single-fuzzied-noup/_single-fuzzied.fr.po
new file mode 100644
index 0000000..1018ebb
--- /dev/null
+++ b/t/cfg/single-fuzzied-noup/_single-fuzzied.fr.po
@@ -0,0 +1,40 @@
+# 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
+#, fuzzy, no-wrap
+#| msgid "Test1"
+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/cfg/single-fuzzied-noup/po4a.conf b/t/cfg/single-fuzzied-noup/po4a.conf
new file mode 100644
index 0000000..5fea97e
--- /dev/null
+++ b/t/cfg/single-fuzzied-noup/po4a.conf
@@ -0,0 +1,5 @@
+#comment
+[po4a_paths] single-fuzzied-noup.pot fr:single-fuzzied-noup.fr.po
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] single-fuzzied-noup.man.1 fr:single-fuzzied-noup.man.fr.1
diff --git a/t/cfg/single-fuzzied-noup/single-fuzzied-noup.fr.po b/t/cfg/single-fuzzied-noup/single-fuzzied-noup.fr.po
new file mode 100644
index 0000000..2d9c58f
--- /dev/null
+++ b/t/cfg/single-fuzzied-noup/single-fuzzied-noup.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/cfg/single-fuzzied-noup/single-fuzzied-noup.man.1 b/t/cfg/single-fuzzied-noup/single-fuzzied-noup.man.1
new file mode 100644
index 0000000..2178e17
--- /dev/null
+++ b/t/cfg/single-fuzzied-noup/single-fuzzied-noup.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
diff --git a/t/cfg/single-fuzzied-noup/single-fuzzied-noup.pot b/t/cfg/single-fuzzied-noup/single-fuzzied-noup.pot
new file mode 100644
index 0000000..c6480a4
--- /dev/null
+++ b/t/cfg/single-fuzzied-noup/single-fuzzied-noup.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: 2005-04-24 2:54+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
+#: t-05-config/test00_man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: t-05-config/test00_man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/cfg/single-fuzzied/_output b/t/cfg/single-fuzzied/_output
new file mode 100644
index 0000000..97e1ee0
--- /dev/null
+++ b/t/cfg/single-fuzzied/_output
@@ -0,0 +1,3 @@
+Updating single-fuzzied.pot: (4 entries)
+Updating single-fuzzied.fr.po: 3 translated messages, 1 fuzzy translation.
+Discard single-fuzzied.man.fr.1 (3 of 4 strings; only 75% translated; need 80%).
diff --git a/t/cfg/single-fuzzied/_single-fuzzied.fr.po b/t/cfg/single-fuzzied/_single-fuzzied.fr.po
new file mode 100644
index 0000000..1018ebb
--- /dev/null
+++ b/t/cfg/single-fuzzied/_single-fuzzied.fr.po
@@ -0,0 +1,40 @@
+# 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
+#, fuzzy, no-wrap
+#| msgid "Test1"
+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/cfg/single-fuzzied/po4a.conf b/t/cfg/single-fuzzied/po4a.conf
new file mode 100644
index 0000000..b63cef1
--- /dev/null
+++ b/t/cfg/single-fuzzied/po4a.conf
@@ -0,0 +1,5 @@
+#comment
+[po4a_paths] single-fuzzied.pot fr:single-fuzzied.fr.po
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] single-fuzzied.man.1 fr:single-fuzzied.man.fr.1
diff --git a/t/cfg/single-fuzzied/single-fuzzied.fr.po b/t/cfg/single-fuzzied/single-fuzzied.fr.po
new file mode 100644
index 0000000..2d9c58f
--- /dev/null
+++ b/t/cfg/single-fuzzied/single-fuzzied.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/cfg/single-fuzzied/single-fuzzied.man.1 b/t/cfg/single-fuzzied/single-fuzzied.man.1
new file mode 100644
index 0000000..2178e17
--- /dev/null
+++ b/t/cfg/single-fuzzied/single-fuzzied.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
diff --git a/t/cfg/single-fuzzied/single-fuzzied.pot b/t/cfg/single-fuzzied/single-fuzzied.pot
new file mode 100644
index 0000000..c6480a4
--- /dev/null
+++ b/t/cfg/single-fuzzied/single-fuzzied.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: 2005-04-24 2:54+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
+#: t-05-config/test00_man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: t-05-config/test00_man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/cfg/single-fuzzy/_output b/t/cfg/single-fuzzy/_output
new file mode 100644
index 0000000..707ac64
--- /dev/null
+++ b/t/cfg/single-fuzzy/_output
@@ -0,0 +1,3 @@
+Updating single-fuzzy.pot: (4 entries)
+Updating single-fuzzy.fr.po: 3 translated messages, 1 fuzzy translation.
+Discard single-fuzzy.man.fr.1 (3 of 4 strings; only 75% translated; need 80%).
diff --git a/t/cfg/single-fuzzy/po4a.conf b/t/cfg/single-fuzzy/po4a.conf
new file mode 100644
index 0000000..a80db4d
--- /dev/null
+++ b/t/cfg/single-fuzzy/po4a.conf
@@ -0,0 +1,5 @@
+#comment
+[po4a_paths] single-fuzzy.pot fr:single-fuzzy.fr.po
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] single-fuzzy.man.1 fr:single-fuzzy.man.fr.1
diff --git a/t/cfg/single-fuzzy/single-fuzzy.fr.po b/t/cfg/single-fuzzy/single-fuzzy.fr.po
new file mode 100644
index 0000000..954fb48
--- /dev/null
+++ b/t/cfg/single-fuzzy/single-fuzzy.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
+#, fuzzy, 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/cfg/single-fuzzy/single-fuzzy.man.1 b/t/cfg/single-fuzzy/single-fuzzy.man.1
new file mode 100644
index 0000000..2178e17
--- /dev/null
+++ b/t/cfg/single-fuzzy/single-fuzzy.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
diff --git a/t/cfg/single-fuzzy/single-fuzzy.pot b/t/cfg/single-fuzzy/single-fuzzy.pot
new file mode 100644
index 0000000..c6480a4
--- /dev/null
+++ b/t/cfg/single-fuzzy/single-fuzzy.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: 2005-04-24 2:54+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
+#: t-05-config/test00_man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: t-05-config/test00_man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/cfg/single-invalid/_output b/t/cfg/single-invalid/_output
new file mode 100644
index 0000000..f7ce727
--- /dev/null
+++ b/t/cfg/single-invalid/_output
@@ -0,0 +1,8 @@
+Updating single.pot: (4 entries)
+Updating single.fr.po:39: 'msgid' and 'msgstr' entries do not both end with '\n'
+msgfmt: found 1 fatal error
+single.fr.po: 4 translated messages.
+Invalid po file single.fr.po:
+single.fr.po:39: 'msgid' and 'msgstr' entries do not both end with '\n'
+msgfmt: found 1 fatal error
+
diff --git a/t/cfg/single-invalid/po4a.conf b/t/cfg/single-invalid/po4a.conf
new file mode 100644
index 0000000..da28633
--- /dev/null
+++ b/t/cfg/single-invalid/po4a.conf
@@ -0,0 +1,5 @@
+#comment
+[po4a_paths] single.pot fr:single.fr.po
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] single.man.1 fr:single.man.fr.1
diff --git a/t/cfg/single-invalid/single.fr.po b/t/cfg/single-invalid/single.fr.po
new file mode 100644
index 0000000..ca6039a
--- /dev/null
+++ b/t/cfg/single-invalid/single.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\n"
diff --git a/t/cfg/single-invalid/single.man.1 b/t/cfg/single-invalid/single.man.1
new file mode 100644
index 0000000..2178e17
--- /dev/null
+++ b/t/cfg/single-invalid/single.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
diff --git a/t/cfg/single-invalid/single.man.fr.1 b/t/cfg/single-invalid/single.man.fr.1
new file mode 100644
index 0000000..873acf4
--- /dev/null
+++ b/t/cfg/single-invalid/single.man.fr.1
@@ -0,0 +1,10 @@
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH test1 1
+.SH NOM
+test \- juste un test
+
+Bonjour
diff --git a/t/cfg/single-invalid/single.pot b/t/cfg/single-invalid/single.pot
new file mode 100644
index 0000000..c6480a4
--- /dev/null
+++ b/t/cfg/single-invalid/single.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: 2005-04-24 2:54+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
+#: t-05-config/test00_man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: t-05-config/test00_man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/cfg/single-newstr/_output b/t/cfg/single-newstr/_output
new file mode 100644
index 0000000..3770f93
--- /dev/null
+++ b/t/cfg/single-newstr/_output
@@ -0,0 +1,3 @@
+Updating single-newstr.pot: (5 entries)
+Updating single-newstr.fr.po: 4 translated messages, 1 untranslated message.
+single-newstr.man.fr.1 is 80% translated (4 of 5 strings).
diff --git a/t/cfg/single-newstr/_single-newstr.fr.po b/t/cfg/single-newstr/_single-newstr.fr.po
new file mode 100644
index 0000000..0e99734
--- /dev/null
+++ b/t/cfg/single-newstr/_single-newstr.fr.po
@@ -0,0 +1,45 @@
+# 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-13 00:33+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
+#: cfg/single-newstr/single-newstr.man.1:1
+#, no-wrap
+msgid "test1"
+msgstr "test1"
+
+#. type: SH
+#: cfg/single-newstr/single-newstr.man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr "NOM"
+
+#. type: Plain text
+#: cfg/single-newstr/single-newstr.man.1:4
+msgid "test - just a test"
+msgstr "test - juste un test"
+
+#. type: Plain text
+#: cfg/single-newstr/single-newstr.man.1:6
+msgid "Hello"
+msgstr "Bonjour"
+
+#. type: SH
+#: cfg/single-newstr/single-newstr.man.1:7
+#, no-wrap
+msgid "MORE CONTENT"
+msgstr ""
diff --git a/t/cfg/single-newstr/_single-newstr.man.fr.1 b/t/cfg/single-newstr/_single-newstr.man.fr.1
new file mode 100644
index 0000000..4dea14d
--- /dev/null
+++ b/t/cfg/single-newstr/_single-newstr.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
+
+.SH "MORE CONTENT"
diff --git a/t/cfg/single-newstr/_single-newstr.pot b/t/cfg/single-newstr/_single-newstr.pot
new file mode 100644
index 0000000..8dfa72f
--- /dev/null
+++ b/t/cfg/single-newstr/_single-newstr.pot
@@ -0,0 +1,45 @@
+# 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-12 18:52+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-newstr/single-newstr.man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: cfg/single-newstr/single-newstr.man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: cfg/single-newstr/single-newstr.man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: cfg/single-newstr/single-newstr.man.1:5
+msgid "Hello"
+msgstr ""
+
+#. type: SH
+#: cfg/single-newstr/single-newstr.man.1:7
+#, no-wrap
+msgid "MORE CONTENT"
+msgstr ""
diff --git a/t/cfg/single-newstr/po4a.conf b/t/cfg/single-newstr/po4a.conf
new file mode 100644
index 0000000..cdd9db0
--- /dev/null
+++ b/t/cfg/single-newstr/po4a.conf
@@ -0,0 +1,6 @@
+#comment
+[po4a_langs] fr
+[po4a_paths] single-newstr.pot $lang:single-newstr.$lang.po
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] single-newstr.man.1 $lang:single-newstr.man.$lang.1
diff --git a/t/cfg/single-newstr/single-newstr.fr.po b/t/cfg/single-newstr/single-newstr.fr.po
new file mode 100644
index 0000000..e9d9c5a
--- /dev/null
+++ b/t/cfg/single-newstr/single-newstr.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
+#: cfg/single-newstr/single-newstr.man.1:1
+#, no-wrap
+msgid "test1"
+msgstr "test1"
+
+#. type: SH
+#: cfg/single-newstr/single-newstr.man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr "NOM"
+
+#. type: Plain text
+#: cfg/single-newstr/single-newstr.man.1:4
+msgid "test - just a test"
+msgstr "test - juste un test"
+
+#. type: Plain text
+#: cfg/single-newstr/single-newstr.man.1:6
+msgid "Hello"
+msgstr "Bonjour"
diff --git a/t/cfg/single-newstr/single-newstr.man.1 b/t/cfg/single-newstr/single-newstr.man.1
new file mode 100644
index 0000000..56efd5a
--- /dev/null
+++ b/t/cfg/single-newstr/single-newstr.man.1
@@ -0,0 +1,7 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
+
+.SH MORE CONTENT \ No newline at end of file
diff --git a/t/cfg/single-newstr/single-newstr.pot b/t/cfg/single-newstr/single-newstr.pot
new file mode 100644
index 0000000..9f4a649
--- /dev/null
+++ b/t/cfg/single-newstr/single-newstr.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: 2005-04-24 2:54+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-newstr/single-newstr.man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: cfg/single-newstr/single-newstr.man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: cfg/single-newstr/single-newstr.man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: cfg/single-newstr/single-newstr.man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/cfg/single-nopo/_output b/t/cfg/single-nopo/_output
new file mode 100644
index 0000000..f8bf8c3
--- /dev/null
+++ b/t/cfg/single-nopo/_output
@@ -0,0 +1,3 @@
+Updating single.pot: (4 entries)
+Creating an empty PO file in single.fr.po.
+Discard single.man.fr.1 (0 of 4 strings; only 0% translated; need 80%).
diff --git a/t/cfg/single-nopo/_output-noupdate b/t/cfg/single-nopo/_output-noupdate
new file mode 100644
index 0000000..2237271
--- /dev/null
+++ b/t/cfg/single-nopo/_output-noupdate
@@ -0,0 +1,3 @@
+NOT updating single.pot as requested (--no-update).
+NOT updating the POT file single.pot as requested (--no-update).
+PO file single.fr.po for language fr is missing -- skipping.
diff --git a/t/cfg/single-nopo/_single.fr.po b/t/cfg/single-nopo/_single.fr.po
new file mode 100644
index 0000000..1772779
--- /dev/null
+++ b/t/cfg/single-nopo/_single.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 ""
+
+#. type: SH
+#: t-05-config/test00_man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/cfg/single-nopo/po4a.conf b/t/cfg/single-nopo/po4a.conf
new file mode 100644
index 0000000..da28633
--- /dev/null
+++ b/t/cfg/single-nopo/po4a.conf
@@ -0,0 +1,5 @@
+#comment
+[po4a_paths] single.pot fr:single.fr.po
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] single.man.1 fr:single.man.fr.1
diff --git a/t/cfg/single-nopo/single.man.1 b/t/cfg/single-nopo/single.man.1
new file mode 100644
index 0000000..2178e17
--- /dev/null
+++ b/t/cfg/single-nopo/single.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
diff --git a/t/cfg/single-nopo/single.pot b/t/cfg/single-nopo/single.pot
new file mode 100644
index 0000000..c6480a4
--- /dev/null
+++ b/t/cfg/single-nopo/single.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: 2005-04-24 2:54+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
+#: t-05-config/test00_man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: t-05-config/test00_man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/cfg/single-nopotpo/_output b/t/cfg/single-nopotpo/_output
new file mode 100644
index 0000000..d3e3bd4
--- /dev/null
+++ b/t/cfg/single-nopotpo/_output
@@ -0,0 +1,3 @@
+Creating single.pot: (4 entries)
+Creating an empty PO file in single.fr.po.
+Discard single.man.fr.1 (0 of 4 strings; only 0% translated; need 80%).
diff --git a/t/cfg/single-nopotpo/_single.fr.po b/t/cfg/single-nopotpo/_single.fr.po
new file mode 100644
index 0000000..1772779
--- /dev/null
+++ b/t/cfg/single-nopotpo/_single.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 ""
+
+#. type: SH
+#: t-05-config/test00_man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/cfg/single-nopotpo/_single.pot b/t/cfg/single-nopotpo/_single.pot
new file mode 100644
index 0000000..430a879
--- /dev/null
+++ b/t/cfg/single-nopotpo/_single.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/cfg/single-nopotpo/po4a.conf b/t/cfg/single-nopotpo/po4a.conf
new file mode 100644
index 0000000..da28633
--- /dev/null
+++ b/t/cfg/single-nopotpo/po4a.conf
@@ -0,0 +1,5 @@
+#comment
+[po4a_paths] single.pot fr:single.fr.po
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] single.man.1 fr:single.man.fr.1
diff --git a/t/cfg/single-nopotpo/single.man.1 b/t/cfg/single-nopotpo/single.man.1
new file mode 100644
index 0000000..2178e17
--- /dev/null
+++ b/t/cfg/single-nopotpo/single.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
diff --git a/t/cfg/single-podirectory-emptypot-emptypo/_fr.po.expected b/t/cfg/single-podirectory-emptypot-emptypo/_fr.po.expected
new file mode 100644
index 0000000..3d5100f
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot-emptypo/_fr.po.expected
@@ -0,0 +1,39 @@
+# French translations for po package
+# Copyright (C) 2024 Free Software Foundation, Inc.
+# This file is distributed under the same license as the po package.
+# Automatically generated, 2024.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: po 4a\n"
+"POT-Creation-Date: 2024-01-04 22:50+0100\n"
+"PO-Revision-Date: 2024-01-04 22:50+0100\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
+#: single.man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: single.man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: single.man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: single.man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/cfg/single-podirectory-emptypot-emptypo/_output b/t/cfg/single-podirectory-emptypot-emptypo/_output
new file mode 100644
index 0000000..53b4fa7
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot-emptypo/_output
@@ -0,0 +1,6 @@
+Using '.' as a po_directory.
+Found language 'fr' in the provided po_directory: ./fr.po
+Found POT file './single.pot' in the provided po_directory.
+Updating ./single.pot: (4 entries)
+Creating an empty PO file in fr.po.
+Discard single.man.fr.1 (0 of 4 strings; only 0% translated; need 80%).
diff --git a/t/cfg/single-podirectory-emptypot-emptypo/_single.pot.expected b/t/cfg/single-podirectory-emptypot-emptypo/_single.pot.expected
new file mode 100644
index 0000000..430a879
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot-emptypo/_single.pot.expected
@@ -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/cfg/single-podirectory-emptypot-emptypo/fr.po b/t/cfg/single-podirectory-emptypot-emptypo/fr.po
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot-emptypo/fr.po
diff --git a/t/cfg/single-podirectory-emptypot-emptypo/po4a.conf b/t/cfg/single-podirectory-emptypot-emptypo/po4a.conf
new file mode 100644
index 0000000..a34f60a
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot-emptypo/po4a.conf
@@ -0,0 +1,5 @@
+#comment
+[po_directory] .
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] single.man.1 fr:single.man.fr.1
diff --git a/t/cfg/single-podirectory-emptypot-emptypo/single.man.1 b/t/cfg/single-podirectory-emptypot-emptypo/single.man.1
new file mode 100644
index 0000000..2178e17
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot-emptypo/single.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
diff --git a/t/cfg/single-podirectory-emptypot-emptypo/single.pot b/t/cfg/single-podirectory-emptypot-emptypo/single.pot
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot-emptypo/single.pot
diff --git a/t/cfg/single-podirectory-emptypot/_output b/t/cfg/single-podirectory-emptypot/_output
new file mode 100644
index 0000000..0a9d135
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot/_output
@@ -0,0 +1,6 @@
+Using 'po' as a po_directory.
+Found language 'fr' in the provided po_directory: po/fr.po
+Found POT file 'po/single.pot' in the provided po_directory.
+Updating po/single.pot: (4 entries)
+Updating po/fr.po: 4 translated messages.
+single.man.fr.1 is 100% translated (4 strings).
diff --git a/t/cfg/single-podirectory-emptypot/_single.man.fr.1 b/t/cfg/single-podirectory-emptypot/_single.man.fr.1
new file mode 100644
index 0000000..873acf4
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot/_single.man.fr.1
@@ -0,0 +1,10 @@
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH test1 1
+.SH NOM
+test \- juste un test
+
+Bonjour
diff --git a/t/cfg/single-podirectory-emptypot/_single.pot b/t/cfg/single-podirectory-emptypot/_single.pot
new file mode 100644
index 0000000..c6480a4
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot/_single.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: 2005-04-24 2:54+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
+#: t-05-config/test00_man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: t-05-config/test00_man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/cfg/single-podirectory-emptypot/po/fr.po b/t/cfg/single-podirectory-emptypot/po/fr.po
new file mode 100644
index 0000000..c1e3251
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot/po/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/cfg/single-podirectory-emptypot/po/single.pot b/t/cfg/single-podirectory-emptypot/po/single.pot
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot/po/single.pot
diff --git a/t/cfg/single-podirectory-emptypot/po4a.conf b/t/cfg/single-podirectory-emptypot/po4a.conf
new file mode 100644
index 0000000..732d6c5
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot/po4a.conf
@@ -0,0 +1,5 @@
+[po_directory] po
+
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] single.man.1 $lang:single.man.$lang.1
diff --git a/t/cfg/single-podirectory-emptypot/single.man.1 b/t/cfg/single-podirectory-emptypot/single.man.1
new file mode 100644
index 0000000..2178e17
--- /dev/null
+++ b/t/cfg/single-podirectory-emptypot/single.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
diff --git a/t/cfg/single-podirectory/_output b/t/cfg/single-podirectory/_output
new file mode 100644
index 0000000..0a9d135
--- /dev/null
+++ b/t/cfg/single-podirectory/_output
@@ -0,0 +1,6 @@
+Using 'po' as a po_directory.
+Found language 'fr' in the provided po_directory: po/fr.po
+Found POT file 'po/single.pot' in the provided po_directory.
+Updating po/single.pot: (4 entries)
+Updating po/fr.po: 4 translated messages.
+single.man.fr.1 is 100% translated (4 strings).
diff --git a/t/cfg/single-podirectory/_single.man.fr.1 b/t/cfg/single-podirectory/_single.man.fr.1
new file mode 100644
index 0000000..873acf4
--- /dev/null
+++ b/t/cfg/single-podirectory/_single.man.fr.1
@@ -0,0 +1,10 @@
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH test1 1
+.SH NOM
+test \- juste un test
+
+Bonjour
diff --git a/t/cfg/single-podirectory/po/fr.po b/t/cfg/single-podirectory/po/fr.po
new file mode 100644
index 0000000..c1e3251
--- /dev/null
+++ b/t/cfg/single-podirectory/po/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/cfg/single-podirectory/po/single.pot b/t/cfg/single-podirectory/po/single.pot
new file mode 100644
index 0000000..c6480a4
--- /dev/null
+++ b/t/cfg/single-podirectory/po/single.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: 2005-04-24 2:54+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
+#: t-05-config/test00_man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: t-05-config/test00_man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/cfg/single-podirectory/po4a.conf b/t/cfg/single-podirectory/po4a.conf
new file mode 100644
index 0000000..732d6c5
--- /dev/null
+++ b/t/cfg/single-podirectory/po4a.conf
@@ -0,0 +1,5 @@
+[po_directory] po
+
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] single.man.1 $lang:single.man.$lang.1
diff --git a/t/cfg/single-podirectory/single.man.1 b/t/cfg/single-podirectory/single.man.1
new file mode 100644
index 0000000..2178e17
--- /dev/null
+++ b/t/cfg/single-podirectory/single.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
diff --git a/t/cfg/single-potin/_output b/t/cfg/single-potin/_output
new file mode 100644
index 0000000..ed431cd
--- /dev/null
+++ b/t/cfg/single-potin/_output
@@ -0,0 +1,3 @@
+Updating single.pot: (4 entries)
+Updating single.fr.po: 4 translated messages.
+single.man.fr.1 is 66.66% translated (4 of 6 strings).
diff --git a/t/cfg/single-potin/_single.man.fr.1 b/t/cfg/single-potin/_single.man.fr.1
new file mode 100644
index 0000000..f710e2f
--- /dev/null
+++ b/t/cfg/single-potin/_single.man.fr.1
@@ -0,0 +1,15 @@
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH test1 1
+.SH NOM
+test \- juste un test
+
+Bonjour
+
+.SH "NOT TRANSLATED"
+
+The content of this section is not to be translated (not part of the
+filtered page).
diff --git a/t/cfg/single-potin/po4a.conf b/t/cfg/single-potin/po4a.conf
new file mode 100644
index 0000000..7117090
--- /dev/null
+++ b/t/cfg/single-potin/po4a.conf
@@ -0,0 +1,5 @@
+#comment
+[po4a_paths] single.pot fr:single.fr.po
+[options] --msgmerge-opt --silent --keep 0
+
+[type:man] single.man.1 fr:single.man.fr.1 pot_in:single-filtered.man.1
diff --git a/t/cfg/single-potin/single-filtered.man.1 b/t/cfg/single-potin/single-filtered.man.1
new file mode 100644
index 0000000..2178e17
--- /dev/null
+++ b/t/cfg/single-potin/single-filtered.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
diff --git a/t/cfg/single-potin/single.fr.po b/t/cfg/single-potin/single.fr.po
new file mode 100644
index 0000000..c1e3251
--- /dev/null
+++ b/t/cfg/single-potin/single.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/cfg/single-potin/single.man.1 b/t/cfg/single-potin/single.man.1
new file mode 100644
index 0000000..2dbd733
--- /dev/null
+++ b/t/cfg/single-potin/single.man.1
@@ -0,0 +1,10 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
+
+.SH "NOT TRANSLATED"
+
+The content of this section is not to be translated (not part of the
+filtered page).
diff --git a/t/cfg/single-potin/single.pot b/t/cfg/single-potin/single.pot
new file mode 100644
index 0000000..c6480a4
--- /dev/null
+++ b/t/cfg/single-potin/single.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: 2005-04-24 2:54+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
+#: t-05-config/test00_man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: t-05-config/test00_man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/cfg/single-uptodate/_output b/t/cfg/single-uptodate/_output
new file mode 100644
index 0000000..1ccbbe0
--- /dev/null
+++ b/t/cfg/single-uptodate/_output
@@ -0,0 +1,3 @@
+Updating single-uptodate.pot: (4 entries)
+Updating single-uptodate.fr.po: 4 translated messages.
+single-uptodate.man.fr.1 is 100% translated (4 strings).
diff --git a/t/cfg/single-uptodate/single-uptodate.conf b/t/cfg/single-uptodate/single-uptodate.conf
new file mode 100644
index 0000000..91213e2
--- /dev/null
+++ b/t/cfg/single-uptodate/single-uptodate.conf
@@ -0,0 +1,5 @@
+#comment
+[po4a_paths] single-uptodate.pot fr:single-uptodate.fr.po
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] single-uptodate.man.1 fr:single-uptodate.man.fr.1
diff --git a/t/cfg/single-uptodate/single-uptodate.fr.po b/t/cfg/single-uptodate/single-uptodate.fr.po
new file mode 100644
index 0000000..c1e3251
--- /dev/null
+++ b/t/cfg/single-uptodate/single-uptodate.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/cfg/single-uptodate/single-uptodate.man.1 b/t/cfg/single-uptodate/single-uptodate.man.1
new file mode 100644
index 0000000..2178e17
--- /dev/null
+++ b/t/cfg/single-uptodate/single-uptodate.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
diff --git a/t/cfg/single-uptodate/single-uptodate.man.fr.1 b/t/cfg/single-uptodate/single-uptodate.man.fr.1
new file mode 100644
index 0000000..873acf4
--- /dev/null
+++ b/t/cfg/single-uptodate/single-uptodate.man.fr.1
@@ -0,0 +1,10 @@
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH test1 1
+.SH NOM
+test \- juste un test
+
+Bonjour
diff --git a/t/cfg/single-uptodate/single-uptodate.pot b/t/cfg/single-uptodate/single-uptodate.pot
new file mode 100644
index 0000000..c6480a4
--- /dev/null
+++ b/t/cfg/single-uptodate/single-uptodate.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: 2005-04-24 2:54+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
+#: t-05-config/test00_man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: t-05-config/test00_man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:5
+msgid "Hello"
+msgstr ""
diff --git a/t/cfg/single/_output b/t/cfg/single/_output
new file mode 100644
index 0000000..c63e3db
--- /dev/null
+++ b/t/cfg/single/_output
@@ -0,0 +1,3 @@
+Updating single.pot: (4 entries)
+Updating single.fr.po: 4 translated messages.
+single.man.fr.1 is 100% translated (4 strings).
diff --git a/t/cfg/single/_single.man.fr.1 b/t/cfg/single/_single.man.fr.1
new file mode 100644
index 0000000..873acf4
--- /dev/null
+++ b/t/cfg/single/_single.man.fr.1
@@ -0,0 +1,10 @@
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH test1 1
+.SH NOM
+test \- juste un test
+
+Bonjour
diff --git a/t/cfg/single/single-noupdate.output b/t/cfg/single/single-noupdate.output
new file mode 100644
index 0000000..7661d8c
--- /dev/null
+++ b/t/cfg/single/single-noupdate.output
@@ -0,0 +1,2 @@
+Updating cfg/single-nopo/single.pot:
+ (4 entries)
diff --git a/t/cfg/single/single.conf b/t/cfg/single/single.conf
new file mode 100644
index 0000000..da28633
--- /dev/null
+++ b/t/cfg/single/single.conf
@@ -0,0 +1,5 @@
+#comment
+[po4a_paths] single.pot fr:single.fr.po
+[options] opt:"--msgmerge-opt --silent"
+
+[type:man] single.man.1 fr:single.man.fr.1
diff --git a/t/cfg/single/single.fr.po b/t/cfg/single/single.fr.po
new file mode 100644
index 0000000..c1e3251
--- /dev/null
+++ b/t/cfg/single/single.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/cfg/single/single.man.1 b/t/cfg/single/single.man.1
new file mode 100644
index 0000000..2178e17
--- /dev/null
+++ b/t/cfg/single/single.man.1
@@ -0,0 +1,5 @@
+.TH test1 1
+.SH NAME
+test \- just a test
+
+Hello
diff --git a/t/cfg/single/single.pot b/t/cfg/single/single.pot
new file mode 100644
index 0000000..c6480a4
--- /dev/null
+++ b/t/cfg/single/single.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: 2005-04-24 2:54+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
+#: t-05-config/test00_man.1:1
+#, no-wrap
+msgid "test1"
+msgstr ""
+
+#. type: SH
+#: t-05-config/test00_man.1:2
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:4
+msgid "test - just a test"
+msgstr ""
+
+#. type: Plain text
+#: t-05-config/test00_man.1:5
+msgid "Hello"
+msgstr ""