From 85cdf58f7e24d209dcf8457b698731001e32e24f Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 4 Nov 2021 22:08:16 +0200 Subject: Added Czech UI translation --- CMakeLists.txt | 1 + po/compile.py | 1 + po/en.po | 3 +++ res/about/version.gmi | 2 +- res/lang/cs.bin | Bin 0 -> 28612 bytes src/lang.c | 3 ++- src/ui/util.c | 3 ++- 7 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 res/lang/cs.bin diff --git a/CMakeLists.txt b/CMakeLists.txt index ac86d71a..796a9507 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,6 +72,7 @@ set (EMBED_RESOURCES res/about/license.gmi res/about/version.gmi res/arg-help.txt + res/lang/cs.bin res/lang/de.bin res/lang/en.bin res/lang/eo.bin diff --git a/po/compile.py b/po/compile.py index f046ca96..16097ddc 100755 --- a/po/compile.py +++ b/po/compile.py @@ -6,6 +6,7 @@ import os, sys BUILD_LANGS = [ 'en', # base strings + 'cs', 'de', 'eo', 'es', diff --git a/po/en.po b/po/en.po index 83dec03f..53548605 100644 --- a/po/en.po +++ b/po/en.po @@ -1115,6 +1115,9 @@ msgstr "Spanish" msgid "lang.es.mx" msgstr "Spanish (Mexico)" +msgid "lang.cs" +msgstr "Czech" + msgid "lang.sk" msgstr "Slovak" diff --git a/res/about/version.gmi b/res/about/version.gmi index 801f2869..81ebd87d 100644 --- a/res/about/version.gmi +++ b/res/about/version.gmi @@ -7,7 +7,7 @@ # Release notes ## 1.8.1 -* Added UI translation for Hungarian. +* Added UI translations: Hungarian, Czech. * Added the `zip` utility as a build requirement. It is used for making fontpacks. * Fixed build failure with the simple text renderer, i.e., when HarfBuzz is disabled. * Fixed a line spacing artifact in long headings. With some fonts, the lines were clipping each other so the spacing was restored to normal. diff --git a/res/lang/cs.bin b/res/lang/cs.bin new file mode 100644 index 00000000..4523b454 Binary files /dev/null and b/res/lang/cs.bin differ diff --git a/src/lang.c b/src/lang.c index 3492cc9b..7b00f172 100644 --- a/src/lang.c +++ b/src/lang.c @@ -88,6 +88,7 @@ static void load_Lang_(iLang *d, const char *id) { iUnused(id); const iBlock *data = equal_CStr(id, "fi") ? &blobFi_Embedded : equal_CStr(id, "fr") ? &blobFr_Embedded + : equal_CStr(id, "cs") ? &blobCs_Embedded : equal_CStr(id, "ru") ? &blobRu_Embedded : equal_CStr(id, "eo") ? &blobEo_Embedded : equal_CStr(id, "es") ? &blobEs_Embedded @@ -112,7 +113,7 @@ static void load_Lang_(iLang *d, const char *id) { else if (data == &blobIsv_Embedded) { d->pluralType = oneTwoMany_PluralType; } - else if (data == &blobSk_Embedded) { + else if (data == &blobCs_Embedded || data == &blobSk_Embedded) { d->pluralType = oneFewMany_PluralType; } else if (data == &blobPl_Embedded) { diff --git a/src/ui/util.c b/src/ui/util.c index 5a58551b..760bf48f 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -2199,7 +2199,8 @@ iWidget *makeDialog_Widget(const char *id, iWidget *makePreferences_Widget(void) { /* Common items. */ - const iMenuItem langItems[] = { { "${lang.de} - de", 0, 0, "uilang id:de" }, + const iMenuItem langItems[] = { { "${lang.cs} - cs", 0, 0, "uilang id:cs" }, + { "${lang.de} - de", 0, 0, "uilang id:de" }, { "${lang.en} - en", 0, 0, "uilang id:en" }, { "${lang.es} - es", 0, 0, "uilang id:es" }, { "${lang.es.mx} - es", 0, 0, "uilang id:es_MX" }, -- cgit v1.2.3