diff options
Diffstat (limited to 't/add/modifiers')
-rw-r--r-- | t/add/modifiers/_output | 10 | ||||
-rw-r--r-- | t/add/modifiers/_with-1 | 8 | ||||
-rw-r--r-- | t/add/modifiers/_with-7 | 8 | ||||
-rw-r--r-- | t/add/modifiers/_without-2 | 6 | ||||
-rw-r--r-- | t/add/modifiers/_without-3 | 6 | ||||
-rw-r--r-- | t/add/modifiers/_without-4 | 6 | ||||
-rw-r--r-- | t/add/modifiers/_without-5 | 6 | ||||
-rw-r--r-- | t/add/modifiers/_without-6 | 6 | ||||
-rw-r--r-- | t/add/modifiers/_without-8 | 6 | ||||
-rw-r--r-- | t/add/modifiers/addendum | 3 | ||||
-rw-r--r-- | t/add/modifiers/addendum.list | 3 | ||||
-rw-r--r-- | t/add/modifiers/input-1 | 6 | ||||
-rw-r--r-- | t/add/modifiers/input-2 | 6 | ||||
-rw-r--r-- | t/add/modifiers/input-3 | 6 | ||||
-rw-r--r-- | t/add/modifiers/input-4 | 6 | ||||
-rw-r--r-- | t/add/modifiers/input-5 | 6 | ||||
-rw-r--r-- | t/add/modifiers/input-6 | 6 | ||||
-rw-r--r-- | t/add/modifiers/input-7 | 6 | ||||
-rw-r--r-- | t/add/modifiers/input-8 | 6 | ||||
-rw-r--r-- | t/add/modifiers/list.pot | 29 | ||||
-rw-r--r-- | t/add/modifiers/po4a.conf | 26 | ||||
-rw-r--r-- | t/add/modifiers/up.po | 29 |
22 files changed, 200 insertions, 0 deletions
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" |