diff options
Diffstat (limited to 'src/lang.c')
-rw-r--r-- | src/lang.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -52,16 +52,17 @@ static void clear_Lang_(iLang *d) { | |||
52 | static void load_Lang_(iLang *d, const char *id) { | 52 | static 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 | } |