summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-29 14:27:43 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-29 14:27:43 +0300
commit5b5c1d8fe0e9689d4a8c41e595cf1b2906c5dd1a (patch)
tree08a2eccb94f8d9c4e17db83a31d5be2cdbcef32e /src
parentc49aa1209e9427bcfe45d77aa2dc301f1a20e831 (diff)
Lang: Added Chinese (Traditional)
Diffstat (limited to 'src')
-rw-r--r--src/lang.c3
-rw-r--r--src/ui/util.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/src/lang.c b/src/lang.c
index 6dedd07e..0af054e2 100644
--- a/src/lang.c
+++ b/src/lang.c
@@ -57,11 +57,12 @@ static void load_Lang_(iLang *d, const char *id) {
57 : equal_CStr(id, "es") ? &blobEs_Embedded 57 : equal_CStr(id, "es") ? &blobEs_Embedded
58// : equal_CStr(id, "de") ? &blobDe_Embedded 58// : equal_CStr(id, "de") ? &blobDe_Embedded
59 : equal_CStr(id, "zh_Hans") ? &blobZh_Hans_Embedded 59 : equal_CStr(id, "zh_Hans") ? &blobZh_Hans_Embedded
60 : equal_CStr(id, "zh_Hant") ? &blobZh_Hant_Embedded
60 : &blobEn_Embedded; 61 : &blobEn_Embedded;
61 if (data == &blobRu_Embedded) { 62 if (data == &blobRu_Embedded) {
62 d->pluralType = slavic_PluralType; 63 d->pluralType = slavic_PluralType;
63 } 64 }
64 else if (data == &blobZh_Hans_Embedded) { 65 else if (data == &blobZh_Hans_Embedded || data == &blobZh_Hant_Embedded) {
65 d->pluralType = none_PluralType; 66 d->pluralType = none_PluralType;
66 } 67 }
67 else { 68 else {
diff --git a/src/ui/util.c b/src/ui/util.c
index 98bcef90..60618181 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -1911,13 +1911,14 @@ iWidget *makePreferences_Widget(void) {
1911 /* UI languages. */ { 1911 /* UI languages. */ {
1912 iArray *uiLangs = collectNew_Array(sizeof(iMenuItem)); 1912 iArray *uiLangs = collectNew_Array(sizeof(iMenuItem));
1913 const iMenuItem langItems[] = { 1913 const iMenuItem langItems[] = {
1914 // { "${lang.de} - de", 0, 0, "uilang id:de" }, 1914// { "${lang.de} - de", 0, 0, "uilang id:de" },
1915 { "${lang.en} - en", 0, 0, "uilang id:en" }, 1915 { "${lang.en} - en", 0, 0, "uilang id:en" },
1916 { "${lang.es} - es", 0, 0, "uilang id:es" }, 1916 { "${lang.es} - es", 0, 0, "uilang id:es" },
1917 { "${lang.fi} - fi", 0, 0, "uilang id:fi" }, 1917 { "${lang.fi} - fi", 0, 0, "uilang id:fi" },
1918 { "${lang.ru} - ru", 0, 0, "uilang id:ru" }, 1918 { "${lang.ru} - ru", 0, 0, "uilang id:ru" },
1919 { "${lang.zh.hans} - zh", 0, 0, "uilang id:zh_Hans" }, 1919 { "${lang.zh.hans} - zh", 0, 0, "uilang id:zh_Hans" },
1920 }; 1920 { "${lang.zh.hant} - zh", 0, 0, "uilang id:zh_Hant" },
1921 };
1921 pushBackN_Array(uiLangs, langItems, iElemCount(langItems)); 1922 pushBackN_Array(uiLangs, langItems, iElemCount(langItems));
1922 //sort_Array(uiLangs, cmp_MenuItem_); 1923 //sort_Array(uiLangs, cmp_MenuItem_);
1923 /* TODO: Add an arrange flag for resizing parent to widest child. */ 1924 /* TODO: Add an arrange flag for resizing parent to widest child. */