From f7a0dcd34e10052d1482adb3360c5e2949ffeaa2 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 30 Oct 2021 09:29:22 +0300 Subject: Added Ukrainian UI translation Kudos to Alyssa Liddell for a 100% translation. --- CMakeLists.txt | 1 + po/compile.py | 1 + po/en.po | 3 +++ res/about/version.gmi | 2 ++ res/lang/de.bin | Bin 28648 -> 28666 bytes res/lang/en.bin | Bin 26108 -> 26126 bytes res/lang/eo.bin | Bin 24885 -> 24903 bytes res/lang/es.bin | Bin 29032 -> 29050 bytes res/lang/es_MX.bin | Bin 26973 -> 26991 bytes res/lang/fi.bin | Bin 29339 -> 29357 bytes res/lang/fr.bin | Bin 29854 -> 29872 bytes res/lang/gl.bin | Bin 28692 -> 28710 bytes res/lang/ia.bin | Bin 27973 -> 27991 bytes res/lang/ie.bin | Bin 28178 -> 28196 bytes res/lang/isv.bin | Bin 24812 -> 24830 bytes res/lang/pl.bin | Bin 29249 -> 29267 bytes res/lang/ru.bin | Bin 41621 -> 41639 bytes res/lang/sk.bin | Bin 25145 -> 25163 bytes res/lang/sr.bin | Bin 42336 -> 42354 bytes res/lang/tok.bin | Bin 26423 -> 26441 bytes res/lang/uk.bin | Bin 0 -> 43138 bytes res/lang/zh_Hans.bin | Bin 24925 -> 24943 bytes res/lang/zh_Hant.bin | Bin 25066 -> 25084 bytes src/lang.c | 3 ++- src/ui/util.c | 1 + 25 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 res/lang/uk.bin diff --git a/CMakeLists.txt b/CMakeLists.txt index e29fe11d..0d735e21 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,6 +107,7 @@ set (EMBED_RESOURCES res/lang/sk.bin res/lang/sr.bin res/lang/tok.bin + res/lang/uk.bin res/lang/zh_Hans.bin res/lang/zh_Hant.bin res/shadow.png diff --git a/po/compile.py b/po/compile.py index 5ac1e756..a2b35ec4 100755 --- a/po/compile.py +++ b/po/compile.py @@ -21,6 +21,7 @@ BUILD_LANGS = [ 'sk', 'sr', 'tok', + 'uk', 'zh_Hans', 'zh_Hant' ] diff --git a/po/en.po b/po/en.po index 54423ca4..7258935d 100644 --- a/po/en.po +++ b/po/en.po @@ -1100,6 +1100,9 @@ msgstr "Portuguese" msgid "lang.ru" msgstr "Russian" +msgid "lang.uk" +msgstr "Ukrainian" + msgid "lang.eo" msgstr "Esperanto" diff --git a/res/about/version.gmi b/res/about/version.gmi index a0ab6682..f4fb83d1 100644 --- a/res/about/version.gmi +++ b/res/about/version.gmi @@ -14,6 +14,7 @@ New features: * Added a customizable font library. Open "about:fonts" to view and manage the installed fonts. * Added TrueType fonts as a recognized content type. When one is viewed in the app (e.g., via a drag-and-drop), there is an option to install it as a user font. * Added fontpacks: ZIP archives containing one or more TrueType fonts and parameters about how they should be used. +* Added support for TrueType collections (.ttc). * Added new font options: separate preformatted and monospace body fonts, UI font, smoothing. * Added style option to show all links as bold regardless of visited status. * Added warning message about missing font glyphs. @@ -22,6 +23,7 @@ New features: * Added style option to show links as bold regardless of visited status. * Added a feed subscription option to exclude web links (HTTP/HTTPS), since those are not viewable in the app by default. * Added an automatic conversion of Markdown to Gemtext when viewing local files. (Not all Markdown features are supported.) +* Added UI language for Ukrainian (uk). Changes and enhancements: * Removed all alternative built-in content fonts. diff --git a/res/lang/de.bin b/res/lang/de.bin index 2549ef1d..b2c28f2b 100644 Binary files a/res/lang/de.bin and b/res/lang/de.bin differ diff --git a/res/lang/en.bin b/res/lang/en.bin index e0c5be9b..61396664 100644 Binary files a/res/lang/en.bin and b/res/lang/en.bin differ diff --git a/res/lang/eo.bin b/res/lang/eo.bin index cf4e9732..55e4b5a6 100644 Binary files a/res/lang/eo.bin and b/res/lang/eo.bin differ diff --git a/res/lang/es.bin b/res/lang/es.bin index a8b8eadd..b50c7b37 100644 Binary files a/res/lang/es.bin and b/res/lang/es.bin differ diff --git a/res/lang/es_MX.bin b/res/lang/es_MX.bin index 81f96c33..28b90473 100644 Binary files a/res/lang/es_MX.bin and b/res/lang/es_MX.bin differ diff --git a/res/lang/fi.bin b/res/lang/fi.bin index 7ccbe8eb..c1393644 100644 Binary files a/res/lang/fi.bin and b/res/lang/fi.bin differ diff --git a/res/lang/fr.bin b/res/lang/fr.bin index 40b6db0e..08920545 100644 Binary files a/res/lang/fr.bin and b/res/lang/fr.bin differ diff --git a/res/lang/gl.bin b/res/lang/gl.bin index a22bd440..317ac9a9 100644 Binary files a/res/lang/gl.bin and b/res/lang/gl.bin differ diff --git a/res/lang/ia.bin b/res/lang/ia.bin index 6754ae78..954e288a 100644 Binary files a/res/lang/ia.bin and b/res/lang/ia.bin differ diff --git a/res/lang/ie.bin b/res/lang/ie.bin index 8db14826..11f9323c 100644 Binary files a/res/lang/ie.bin and b/res/lang/ie.bin differ diff --git a/res/lang/isv.bin b/res/lang/isv.bin index 4d8d4a5b..4097c1e1 100644 Binary files a/res/lang/isv.bin and b/res/lang/isv.bin differ diff --git a/res/lang/pl.bin b/res/lang/pl.bin index 987ab82f..7e44e7be 100644 Binary files a/res/lang/pl.bin and b/res/lang/pl.bin differ diff --git a/res/lang/ru.bin b/res/lang/ru.bin index 17d020cf..129c4e10 100644 Binary files a/res/lang/ru.bin and b/res/lang/ru.bin differ diff --git a/res/lang/sk.bin b/res/lang/sk.bin index f17b1f18..3d9770b8 100644 Binary files a/res/lang/sk.bin and b/res/lang/sk.bin differ diff --git a/res/lang/sr.bin b/res/lang/sr.bin index f441b444..794f501c 100644 Binary files a/res/lang/sr.bin and b/res/lang/sr.bin differ diff --git a/res/lang/tok.bin b/res/lang/tok.bin index e111a225..35e63a4e 100644 Binary files a/res/lang/tok.bin and b/res/lang/tok.bin differ diff --git a/res/lang/uk.bin b/res/lang/uk.bin new file mode 100644 index 00000000..ceaf20d5 Binary files /dev/null and b/res/lang/uk.bin differ diff --git a/res/lang/zh_Hans.bin b/res/lang/zh_Hans.bin index 7aa8c540..537d5ba4 100644 Binary files a/res/lang/zh_Hans.bin and b/res/lang/zh_Hans.bin differ diff --git a/res/lang/zh_Hant.bin b/res/lang/zh_Hant.bin index 3f7d249f..b6f0dbdb 100644 Binary files a/res/lang/zh_Hant.bin and b/res/lang/zh_Hant.bin differ diff --git a/src/lang.c b/src/lang.c index 1dac4201..f54ab2d7 100644 --- a/src/lang.c +++ b/src/lang.c @@ -100,10 +100,11 @@ static void load_Lang_(iLang *d, const char *id) { : equal_CStr(id, "sk") ? &blobSk_Embedded : equal_CStr(id, "sr") ? &blobSr_Embedded : equal_CStr(id, "tok") ? &blobTok_Embedded + : equal_CStr(id, "uk") ? &blobUk_Embedded : equal_CStr(id, "zh_Hans") ? &blobZh_Hans_Embedded : equal_CStr(id, "zh_Hant") ? &blobZh_Hant_Embedded : &blobEn_Embedded; - if (data == &blobRu_Embedded || data == &blobSr_Embedded) { + if (data == &blobRu_Embedded || data == &blobSr_Embedded || data == &blobUk_Embedded) { d->pluralType = slavic_PluralType; } else if (data == &blobIsv_Embedded) { diff --git a/src/ui/util.c b/src/ui/util.c index fd1ce571..6d0453ff 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -2206,6 +2206,7 @@ iWidget *makePreferences_Widget(void) { { "${lang.sk} - sk", 0, 0, "uilang id:sk" }, { "${lang.sr} - sr", 0, 0, "uilang id:sr" }, { "${lang.tok} - tok", 0, 0, "uilang id:tok" }, + { "${lang.uk} - uk", 0, 0, "uilang id:uk" }, { "${lang.zh.hans} - zh", 0, 0, "uilang id:zh_Hans" }, { "${lang.zh.hant} - zh", 0, 0, "uilang id:zh_Hant" }, { NULL } }; -- cgit v1.2.3