diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2022-04-29 13:16:30 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2022-04-29 13:16:30 +0200 |
| commit | 957ef8e8fe885fed32b62d532e642be5e756ea67 (patch) | |
| tree | 5c3096b08d6a078d165d00c8a8fcf3fd6d0a97f6 /tests | |
| parent | 2e11a8da5b3d0031f99a7534b029f08dc0fe5a36 (diff) | |
[i18n/xml] Move I18N XML files to their own assets directory.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/core/assets/I18N/messages.pot | 30 | ||||
| -rw-r--r-- | tests/core/assets/I18N/nl_NL-qt-ts.ts (renamed from tests/core/assets/XML/nl_NL-qt-ts.ts) | 0 | ||||
| -rw-r--r-- | tests/core/assets/I18N/nl_NL-xliff-1.2.xliff (renamed from tests/core/assets/XML/nl_NL-xliff-1.2.xliff) | 0 | ||||
| -rw-r--r-- | tests/core/assets/I18N/nl_NL-xliff-2.0.xliff (renamed from tests/core/assets/XML/nl_NL-xliff-2.0.xliff) | 0 | ||||
| -rw-r--r-- | tests/core/assets/I18N/nl_NL.mo | bin | 0 -> 672 bytes | |||
| -rw-r--r-- | tests/core/assets/I18N/nl_NL.po | 33 | ||||
| -rw-r--r-- | tests/core/encoding/xml/test_core_xml.odin | 33 |
7 files changed, 74 insertions, 22 deletions
diff --git a/tests/core/assets/I18N/messages.pot b/tests/core/assets/I18N/messages.pot new file mode 100644 index 000000000..53d521b6b --- /dev/null +++ b/tests/core/assets/I18N/messages.pot @@ -0,0 +1,30 @@ +# Odin i18n Example +# Copyright (C) 2021 Jeroen van Rijn +# This file is distributed under the same license as the PACKAGE package. +# Jeroen van Rijn <Kelimion@users.noreply.github.com>, 2021. +# +#, fuzzy +msgid "" +msgstr "Project-Id-Version: Example 0.0.1\n" + "Report-Msgid-Bugs-To: Jeroen van Rijn <Kelimion@users.noreply.github.com>\n" + "POT-Creation-Date: 2021-11-27 19:23+0100\n" + "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" + "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" + "Language: en-GB\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" + +#: i18n_example.odin:28 +msgid "There are 69,105 leaves here." +msgstr "Er zijn hier 69.105 bladeren." + +#: i18n_example.odin:30 +msgid "Hellope, World!" +msgstr "Hallo, Wereld!" + +#: i18n_example.odin:36 +msgid "There is %d leaf.\n" +msgid_plural "There are %d leaves.\n" +msgstr[0] "Er is %d blad.\n" +msgstr[1] "Er zijn %d bladeren.\n"
\ No newline at end of file diff --git a/tests/core/assets/XML/nl_NL-qt-ts.ts b/tests/core/assets/I18N/nl_NL-qt-ts.ts index 36c95ce2e..36c95ce2e 100644 --- a/tests/core/assets/XML/nl_NL-qt-ts.ts +++ b/tests/core/assets/I18N/nl_NL-qt-ts.ts diff --git a/tests/core/assets/XML/nl_NL-xliff-1.2.xliff b/tests/core/assets/I18N/nl_NL-xliff-1.2.xliff index 7a1abcd66..7a1abcd66 100644 --- a/tests/core/assets/XML/nl_NL-xliff-1.2.xliff +++ b/tests/core/assets/I18N/nl_NL-xliff-1.2.xliff diff --git a/tests/core/assets/XML/nl_NL-xliff-2.0.xliff b/tests/core/assets/I18N/nl_NL-xliff-2.0.xliff index 611ac80c4..611ac80c4 100644 --- a/tests/core/assets/XML/nl_NL-xliff-2.0.xliff +++ b/tests/core/assets/I18N/nl_NL-xliff-2.0.xliff diff --git a/tests/core/assets/I18N/nl_NL.mo b/tests/core/assets/I18N/nl_NL.mo Binary files differnew file mode 100644 index 000000000..0b1a668f4 --- /dev/null +++ b/tests/core/assets/I18N/nl_NL.mo diff --git a/tests/core/assets/I18N/nl_NL.po b/tests/core/assets/I18N/nl_NL.po new file mode 100644 index 000000000..1b8acbcc1 --- /dev/null +++ b/tests/core/assets/I18N/nl_NL.po @@ -0,0 +1,33 @@ +# Odin i18n Example +# Copyright (C) 2021 Jeroen van Rijn +# This file is distributed under the same license as the PACKAGE package. +# Jeroen van Rijn <Kelimion@users.noreply.github.com>, 2021. +# +msgid "" +msgstr "" +"Project-Id-Version: Example 0.0.1\n" +"Report-Msgid-Bugs-To: Jeroen van Rijn <Kelimion@users.noreply.github.com>\n" +"POT-Creation-Date: 2021-11-27 19:23+0100\n" +"PO-Revision-Date: 2021-11-28 02:56+0100\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language-Team: Odin Language Team\n" +"X-Generator: Poedit 3.0\n" +"Last-Translator: Jeroen van Rijn\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: nl_NL\n" + +#: i18n_example.odin:28 +msgid "There are 69,105 leaves here." +msgstr "Er zijn hier 69.105 bladeren." + +#: i18n_example.odin:30 +msgid "Hellope, World!" +msgstr "Hallo, Wereld!" + +#: i18n_example.odin:36 +msgid "There is %d leaf.\n" +msgid_plural "There are %d leaves.\n" +msgstr[0] "Er is %d blad.\n" +msgstr[1] "Er zijn %d bladeren.\n" diff --git a/tests/core/encoding/xml/test_core_xml.odin b/tests/core/encoding/xml/test_core_xml.odin index a79c939c8..07cbc1779 100644 --- a/tests/core/encoding/xml/test_core_xml.odin +++ b/tests/core/encoding/xml/test_core_xml.odin @@ -27,7 +27,7 @@ TEST :: struct { /* Relative to ODIN_ROOT */ -TEST_FILE_PATH_PREFIX :: "tests/core/assets/XML" +TEST_FILE_PATH_PREFIX :: "tests/core/assets" TESTS :: []TEST{ /* @@ -36,22 +36,11 @@ TESTS :: []TEST{ { /* - <?xml version="1.0" encoding="utf-8"?> - <!DOCTYPE 恥ずべきフクロウ> - <恥ずべきフクロウ 올빼미_id="Foozle <![CDATA[<greeting>Hello, world!"</greeting>]]>Barzle"> - <부끄러운:barzle> - <name foo:bar="birmese">ရှက်စရာ ဇီးကွက်</name> - <nickname>Owl of Shame</nickname> - <data>More CDATA <![CDATA[<greeting>Hello, world!</greeting><![CDATA] <$]]> Nonsense.</data> - </부끄러운:barzle> - */ - - /* Tests UTF-8 idents and values. Test namespaced ident. Tests that nested partial CDATA start doesn't trip up parser. */ - filename = "utf8.xml", + filename = "XML/utf8.xml", options = { flags = { .Ignore_Unsupported, .Intern_Comments, @@ -66,7 +55,7 @@ TESTS :: []TEST{ Same as above. Unbox CDATA in data tag. */ - filename = "utf8.xml", + filename = "XML/utf8.xml", options = { flags = { .Ignore_Unsupported, .Intern_Comments, .Unbox_CDATA, @@ -81,7 +70,7 @@ TESTS :: []TEST{ Simple Qt TS translation file. `core:i18n` requires it to be parsed properly. */ - filename = "nl_NL-qt-ts.ts", + filename = "I18N/nl_NL-qt-ts.ts", options = { flags = { .Ignore_Unsupported, .Intern_Comments, .Unbox_CDATA, .Decode_SGML_Entities, @@ -96,7 +85,7 @@ TESTS :: []TEST{ Simple XLiff 1.2 file. `core:i18n` requires it to be parsed properly. */ - filename = "nl_NL-xliff-1.2.xliff", + filename = "I18N/nl_NL-xliff-1.2.xliff", options = { flags = { .Ignore_Unsupported, .Intern_Comments, .Unbox_CDATA, .Decode_SGML_Entities, @@ -111,7 +100,7 @@ TESTS :: []TEST{ Simple XLiff 2.0 file. `core:i18n` requires it to be parsed properly. */ - filename = "nl_NL-xliff-2.0.xliff", + filename = "I18N/nl_NL-xliff-2.0.xliff", options = { flags = { .Ignore_Unsupported, .Intern_Comments, .Unbox_CDATA, .Decode_SGML_Entities, @@ -122,7 +111,7 @@ TESTS :: []TEST{ }, { - filename = "entities.html", + filename = "XML/entities.html", options = { flags = { .Ignore_Unsupported, .Intern_Comments, @@ -133,7 +122,7 @@ TESTS :: []TEST{ }, { - filename = "entities.html", + filename = "XML/entities.html", options = { flags = { .Ignore_Unsupported, .Intern_Comments, .Unbox_CDATA, @@ -144,7 +133,7 @@ TESTS :: []TEST{ }, { - filename = "entities.html", + filename = "XML/entities.html", options = { flags = { .Ignore_Unsupported, .Intern_Comments, .Unbox_CDATA, .Decode_SGML_Entities, @@ -158,7 +147,7 @@ TESTS :: []TEST{ Then we test that certain errors are returned as expected. */ { - filename = "utf8.xml", + filename = "XML/utf8.xml", options = { flags = { .Ignore_Unsupported, .Intern_Comments, @@ -173,7 +162,7 @@ TESTS :: []TEST{ Parse the 8.2 MiB unicode.xml for good measure. */ { - filename = "unicode.xml", + filename = "XML/unicode.xml", options = { flags = { .Ignore_Unsupported, |