[gimp-help/wip/wormnest/validate-po: 2/2] tools: add a test.po file to test validate_po.py




commit d95764e2bd8c9600f8fccab398b75a049dd46c76
Author: Jacob Boerema <jgboerema gmail com>
Date:   Sun Jun 13 12:46:56 2021 -0400

    tools: add a test.po file to test validate_po.py
    
    Note that Gnome's GitLab already has a
    pre-receive hook installed that tests po files
    with msgfmt -c.
    
    Because of that I had to remove one test that
    had:
    msgid ""
    "String with \<tag> and \</tag> characters."
    msgstr ""
    "String with \<tag> and \</tag> characters."
    
    Which gives the following errors:
    remote: <stdin>:66:15: invalid control sequence
    remote: <stdin>:66:26: invalid control sequence
    remote: <stdin>:68:15: invalid control sequence
    remote: <stdin>:68:26: invalid control sequence
    remote: msgfmt: found 4 fatal errors

 tools/test/test.po | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 81 insertions(+)
---
diff --git a/tools/test/test.po b/tools/test/test.po
new file mode 100644
index 000000000..577831281
--- /dev/null
+++ b/tools/test/test.po
@@ -0,0 +1,81 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: GIMP-Help 2.10.0\n"
+"POT-Creation-Date: 2021-06-08 16:41-0500\n"
+"PO-Revision-Date: 2021-06-08 16:42-0500\n"
+"Last-Translator: Jacob Boerema <jgboerema gmail com>\n"
+"Language-Team: none\n"
+"Language: nl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. When image changes, this message will be marked fuzzy or untranslated for you.
+#. It doesn't matter what you translate it to: it's not used at all.
+#: src/menus/colors/desaturate/desaturate.xml:54(None)
+msgid ""
+"@@image: 'images/menus/colors/desaturate/desaturate.png'; "
+"md5=7c93eb531c72f2b7437658e25f6a2c7d"
+msgstr "whatever"
+
+#: src/menus/colors/desaturate/desaturate.xml:10(para)
+# start tag only
+msgid ""
+"String with only a<link>start tag."
+msgstr ""
+"String with only a<link>start tag."
+
+#: src/menus/colors/desaturate/desaturate.xml:20(para)
+# end tag only
+msgid ""
+"String with only an</link>end tag."
+msgstr ""
+"String with only an</link>end tag."
+
+#: src/menus/colors/desaturate/desaturate.xml:30(para)
+# space between / and end tag
+msgid ""
+"String with incorrect space before <link>end tag</ link>."
+msgstr ""
+"String with incorrect space before <link>end tag</ link>."
+
+#: src/menus/colors/desaturate/desaturate.xml:40(para)
+# space before tag
+msgid ""
+"String with incorrect space before < link>tag</link>."
+msgstr ""
+"String with incorrect space before < link>tag</link>."
+
+#: src/menus/colors/desaturate/desaturate.xml:50(para)
+# empty tag
+msgid ""
+"String with empty <>tag</>."
+msgstr ""
+"String with empty <>tag</>."
+
+#: src/menus/colors/desaturate/desaturate.xml:60(para)
+# non lowercase tag
+msgid ""
+"String with empty <Upper>tag</Upper>."
+msgstr ""
+"String with empty <Upper>tag</Upper>."
+
+#: src/menus/colors/desaturate/desaturate.xml:80(para)
+# correct string
+msgid ""
+"10 is < than 20 and > 5"
+msgstr ""
+"10 is < than 20 and > 5"
+
+#: src/menus/colors/desaturate/desaturate.xml:90(para)
+# illegal vertical tab
+msgid ""
+"Using escaped\ttext\vnextline\n\"quote\" literal \\ etc."
+msgstr ""
+"Using escaped\ttext\vnextline\n\"quote\" literal \\ etc."
+
+#. Put one translator per line, in the form of NAME <EMAIL>, YEAR1, YEAR2
+#: src/menus/colors/desaturate/sepia.xml:0(None)
+msgid "translator-credits"
+msgstr "Jacob Boerema <jgboerema gmail com>, 2021"
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]