diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-04 11:03:07 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-04 11:03:07 +0300 |
commit | 6cbaa38d4ebf5a911e908b72bf721985bde87e44 (patch) | |
tree | 7a07829416f1a1e55d9cb14236b456f761ff2c7b | |
parent | 73eeabbaf94d30a70ce9ce8ad102dae77d914084 (diff) |
Lang: Added Toki Pona
IssueID #192
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rwxr-xr-x | po/compile.py | 2 | ||||
-rw-r--r-- | po/en.po | 3 | ||||
-rw-r--r-- | res/lang/de.bin | bin | 19885 -> 19904 bytes | |||
-rw-r--r-- | res/lang/en.bin | bin | 18373 -> 18392 bytes | |||
-rw-r--r-- | res/lang/es.bin | bin | 20463 -> 20482 bytes | |||
-rw-r--r-- | res/lang/fi.bin | bin | 20167 -> 20186 bytes | |||
-rw-r--r-- | res/lang/fr.bin | bin | 20949 -> 20968 bytes | |||
-rw-r--r-- | res/lang/ia.bin | bin | 20357 -> 20376 bytes | |||
-rw-r--r-- | res/lang/ie.bin | bin | 19587 -> 19606 bytes | |||
-rw-r--r-- | res/lang/ru.bin | bin | 30099 -> 30118 bytes | |||
-rw-r--r-- | res/lang/sr.bin | bin | 28564 -> 28583 bytes | |||
-rw-r--r-- | res/lang/tok.bin | bin | 0 -> 18882 bytes | |||
-rw-r--r-- | res/lang/zh_Hans.bin | bin | 17763 -> 17782 bytes | |||
-rw-r--r-- | res/lang/zh_Hant.bin | bin | 17837 -> 17856 bytes | |||
-rw-r--r-- | src/lang.c | 4 | ||||
-rw-r--r-- | src/ui/util.c | 1 |
17 files changed, 9 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 52c6a6e5..ef70459f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -89,6 +89,7 @@ set (EMBED_RESOURCES | |||
89 | res/lang/ie.bin | 89 | res/lang/ie.bin |
90 | res/lang/ru.bin | 90 | res/lang/ru.bin |
91 | res/lang/sr.bin | 91 | res/lang/sr.bin |
92 | res/lang/tok.bin | ||
92 | res/lang/zh_Hans.bin | 93 | res/lang/zh_Hans.bin |
93 | res/lang/zh_Hant.bin | 94 | res/lang/zh_Hant.bin |
94 | res/shadow.png | 95 | res/shadow.png |
diff --git a/po/compile.py b/po/compile.py index 9ff00f60..5cf403db 100755 --- a/po/compile.py +++ b/po/compile.py | |||
@@ -6,7 +6,7 @@ import os, sys | |||
6 | 6 | ||
7 | BUILD_LANGS = [ | 7 | BUILD_LANGS = [ |
8 | 'en', # base strings | 8 | 'en', # base strings |
9 | 'de', 'es', 'fi', 'fr', 'ia', 'ie', 'ru', 'sr', 'zh_Hans', 'zh_Hant' | 9 | 'de', 'es', 'fi', 'fr', 'ia', 'ie', 'ru', 'sr', 'tok', 'zh_Hans', 'zh_Hant' |
10 | ] | 10 | ] |
11 | MODE = 'compile' | 11 | MODE = 'compile' |
12 | ESCAPES = { | 12 | ESCAPES = { |
@@ -887,6 +887,9 @@ msgstr "Spanish" | |||
887 | msgid "lang.sr" | 887 | msgid "lang.sr" |
888 | msgstr "Serbian" | 888 | msgstr "Serbian" |
889 | 889 | ||
890 | msgid "lang.tok" | ||
891 | msgstr "Toki Pona" | ||
892 | |||
890 | msgid "heading.newident" | 893 | msgid "heading.newident" |
891 | msgstr "NEW IDENTITY" | 894 | msgstr "NEW IDENTITY" |
892 | 895 | ||
diff --git a/res/lang/de.bin b/res/lang/de.bin index b0949acc..9ca2be68 100644 --- a/res/lang/de.bin +++ b/res/lang/de.bin | |||
Binary files differ | |||
diff --git a/res/lang/en.bin b/res/lang/en.bin index 46d93b5e..1a18bc38 100644 --- a/res/lang/en.bin +++ b/res/lang/en.bin | |||
Binary files differ | |||
diff --git a/res/lang/es.bin b/res/lang/es.bin index 4e277cca..b37813d1 100644 --- a/res/lang/es.bin +++ b/res/lang/es.bin | |||
Binary files differ | |||
diff --git a/res/lang/fi.bin b/res/lang/fi.bin index 99dfe8f1..4e2bee52 100644 --- a/res/lang/fi.bin +++ b/res/lang/fi.bin | |||
Binary files differ | |||
diff --git a/res/lang/fr.bin b/res/lang/fr.bin index cd300671..8cfb9331 100644 --- a/res/lang/fr.bin +++ b/res/lang/fr.bin | |||
Binary files differ | |||
diff --git a/res/lang/ia.bin b/res/lang/ia.bin index 8b291b06..5310ac72 100644 --- a/res/lang/ia.bin +++ b/res/lang/ia.bin | |||
Binary files differ | |||
diff --git a/res/lang/ie.bin b/res/lang/ie.bin index 89c29ed4..151cdf7d 100644 --- a/res/lang/ie.bin +++ b/res/lang/ie.bin | |||
Binary files differ | |||
diff --git a/res/lang/ru.bin b/res/lang/ru.bin index 45d86a17..95ebe75d 100644 --- a/res/lang/ru.bin +++ b/res/lang/ru.bin | |||
Binary files differ | |||
diff --git a/res/lang/sr.bin b/res/lang/sr.bin index 82af2a25..0f254c81 100644 --- a/res/lang/sr.bin +++ b/res/lang/sr.bin | |||
Binary files differ | |||
diff --git a/res/lang/tok.bin b/res/lang/tok.bin new file mode 100644 index 00000000..d6b0aba7 --- /dev/null +++ b/res/lang/tok.bin | |||
Binary files differ | |||
diff --git a/res/lang/zh_Hans.bin b/res/lang/zh_Hans.bin index dd38a4a1..249d88d5 100644 --- a/res/lang/zh_Hans.bin +++ b/res/lang/zh_Hans.bin | |||
Binary files differ | |||
diff --git a/res/lang/zh_Hant.bin b/res/lang/zh_Hant.bin index 370a379b..99e29957 100644 --- a/res/lang/zh_Hant.bin +++ b/res/lang/zh_Hant.bin | |||
Binary files differ | |||
@@ -82,13 +82,15 @@ static void load_Lang_(iLang *d, const char *id) { | |||
82 | : equal_CStr(id, "ia") ? &blobIa_Embedded | 82 | : equal_CStr(id, "ia") ? &blobIa_Embedded |
83 | : equal_CStr(id, "ie") ? &blobIe_Embedded | 83 | : equal_CStr(id, "ie") ? &blobIe_Embedded |
84 | : equal_CStr(id, "sr") ? &blobSr_Embedded | 84 | : equal_CStr(id, "sr") ? &blobSr_Embedded |
85 | : equal_CStr(id, "tok") ? &blobTok_Embedded | ||
85 | : equal_CStr(id, "zh_Hans") ? &blobZh_Hans_Embedded | 86 | : equal_CStr(id, "zh_Hans") ? &blobZh_Hans_Embedded |
86 | : equal_CStr(id, "zh_Hant") ? &blobZh_Hant_Embedded | 87 | : equal_CStr(id, "zh_Hant") ? &blobZh_Hant_Embedded |
87 | : &blobEn_Embedded; | 88 | : &blobEn_Embedded; |
88 | if (data == &blobRu_Embedded || data == &blobSr_Embedded) { | 89 | if (data == &blobRu_Embedded || data == &blobSr_Embedded) { |
89 | d->pluralType = slavic_PluralType; | 90 | d->pluralType = slavic_PluralType; |
90 | } | 91 | } |
91 | else if (data == &blobZh_Hans_Embedded || data == &blobZh_Hant_Embedded) { | 92 | else if (data == &blobZh_Hans_Embedded || data == &blobZh_Hant_Embedded || |
93 | data == &blobTok_Embedded) { | ||
92 | d->pluralType = none_PluralType; | 94 | d->pluralType = none_PluralType; |
93 | } | 95 | } |
94 | else { | 96 | else { |
diff --git a/src/ui/util.c b/src/ui/util.c index 9927b79f..d817bdfd 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -2232,6 +2232,7 @@ iWidget *makePreferences_Widget(void) { | |||
2232 | { "${lang.ie} - ie", 0, 0, "uilang id:ie" }, | 2232 | { "${lang.ie} - ie", 0, 0, "uilang id:ie" }, |
2233 | { "${lang.ru} - ru", 0, 0, "uilang id:ru" }, | 2233 | { "${lang.ru} - ru", 0, 0, "uilang id:ru" }, |
2234 | { "${lang.sr} - sr", 0, 0, "uilang id:sr" }, | 2234 | { "${lang.sr} - sr", 0, 0, "uilang id:sr" }, |
2235 | { "${lang.tok} - tok", 0, 0, "uilang id:tok" }, | ||
2235 | { "${lang.zh.hans} - zh", 0, 0, "uilang id:zh_Hans" }, | 2236 | { "${lang.zh.hans} - zh", 0, 0, "uilang id:zh_Hans" }, |
2236 | { "${lang.zh.hant} - zh", 0, 0, "uilang id:zh_Hant" }, | 2237 | { "${lang.zh.hant} - zh", 0, 0, "uilang id:zh_Hant" }, |
2237 | }; | 2238 | }; |