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 /src | |
parent | 73eeabbaf94d30a70ce9ce8ad102dae77d914084 (diff) |
Lang: Added Toki Pona
IssueID #192
Diffstat (limited to 'src')
-rw-r--r-- | src/lang.c | 4 | ||||
-rw-r--r-- | src/ui/util.c | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -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 | }; |