summaryrefslogtreecommitdiff
path: root/src/lang.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-25 09:21:42 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-25 09:21:42 +0200
commitd6ea59b310cdc072c33cd638c904cacb164eb2bb (patch)
treef3e12e7bd5016dfc252ba7b1d78d5c33add46794 /src/lang.c
parentd68479867961dc4f6c3b06fcbd34c259974ffae5 (diff)
Lang: Added Chinese (Simplified)
IssueID #192
Diffstat (limited to 'src/lang.c')
-rw-r--r--src/lang.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lang.c b/src/lang.c
index 5399d97b..50c9b78f 100644
--- a/src/lang.c
+++ b/src/lang.c
@@ -52,16 +52,17 @@ static void clear_Lang_(iLang *d) {
52static void load_Lang_(iLang *d, const char *id) { 52static void load_Lang_(iLang *d, const char *id) {
53 /* Load compiled language strings from an embedded blob. */ 53 /* Load compiled language strings from an embedded blob. */
54 iUnused(id); 54 iUnused(id);
55 const iBlock *data = equal_CStr(id, "fi") ? &blobFi_Embedded 55 const iBlock *data = equal_CStr(id, "fi") ? &blobFi_Embedded
56 : equal_CStr(id, "ru") ? &blobRu_Embedded 56 : equal_CStr(id, "ru") ? &blobRu_Embedded
57 : equal_CStr(id, "de") ? &blobDe_Embedded 57 : equal_CStr(id, "de") ? &blobDe_Embedded
58 : &blobEn_Embedded; 58 : equal_CStr(id, "zh_Hans") ? &blobZh_Hans_Embedded
59 : &blobEn_Embedded;
59 if (data == &blobRu_Embedded) { 60 if (data == &blobRu_Embedded) {
60 d->pluralType = slavic_PluralType; 61 d->pluralType = slavic_PluralType;
61 } 62 }
62// else if (data == &blobZhHans_Embedded) { 63 else if (data == &blobZh_Hans_Embedded) {
63// d->pluralType = none_PluralType; 64 d->pluralType = none_PluralType;
64// } 65 }
65 else { 66 else {
66 d->pluralType = notEqualToOne_PluralType; 67 d->pluralType = notEqualToOne_PluralType;
67 } 68 }