summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-04 11:03:07 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-04 11:03:07 +0300
commit6cbaa38d4ebf5a911e908b72bf721985bde87e44 (patch)
tree7a07829416f1a1e55d9cb14236b456f761ff2c7b
parent73eeabbaf94d30a70ce9ce8ad102dae77d914084 (diff)
Lang: Added Toki Pona
IssueID #192
-rw-r--r--CMakeLists.txt1
-rwxr-xr-xpo/compile.py2
-rw-r--r--po/en.po3
-rw-r--r--res/lang/de.binbin19885 -> 19904 bytes
-rw-r--r--res/lang/en.binbin18373 -> 18392 bytes
-rw-r--r--res/lang/es.binbin20463 -> 20482 bytes
-rw-r--r--res/lang/fi.binbin20167 -> 20186 bytes
-rw-r--r--res/lang/fr.binbin20949 -> 20968 bytes
-rw-r--r--res/lang/ia.binbin20357 -> 20376 bytes
-rw-r--r--res/lang/ie.binbin19587 -> 19606 bytes
-rw-r--r--res/lang/ru.binbin30099 -> 30118 bytes
-rw-r--r--res/lang/sr.binbin28564 -> 28583 bytes
-rw-r--r--res/lang/tok.binbin0 -> 18882 bytes
-rw-r--r--res/lang/zh_Hans.binbin17763 -> 17782 bytes
-rw-r--r--res/lang/zh_Hant.binbin17837 -> 17856 bytes
-rw-r--r--src/lang.c4
-rw-r--r--src/ui/util.c1
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
7BUILD_LANGS = [ 7BUILD_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]
11MODE = 'compile' 11MODE = 'compile'
12ESCAPES = { 12ESCAPES = {
diff --git a/po/en.po b/po/en.po
index e5fd9627..e51b434c 100644
--- a/po/en.po
+++ b/po/en.po
@@ -887,6 +887,9 @@ msgstr "Spanish"
887msgid "lang.sr" 887msgid "lang.sr"
888msgstr "Serbian" 888msgstr "Serbian"
889 889
890msgid "lang.tok"
891msgstr "Toki Pona"
892
890msgid "heading.newident" 893msgid "heading.newident"
891msgstr "NEW IDENTITY" 894msgstr "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
diff --git a/src/lang.c b/src/lang.c
index 621bce5b..cd5d3120 100644
--- a/src/lang.c
+++ b/src/lang.c
@@ -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 };