From bb82420e43a17479e420007b26720102fd722357 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 4 Nov 2021 15:20:33 +0200 Subject: Added Hungarian UI translation --- CMakeLists.txt | 1 + po/compile.py | 1 + po/en.po | 3 +++ res/lang/de.bin | Bin 28666 -> 28684 bytes res/lang/en.bin | Bin 26126 -> 26144 bytes res/lang/eo.bin | Bin 24903 -> 24921 bytes res/lang/es.bin | Bin 29050 -> 29538 bytes res/lang/es_MX.bin | Bin 26991 -> 27009 bytes res/lang/fi.bin | Bin 29357 -> 29373 bytes res/lang/fr.bin | Bin 29872 -> 29890 bytes res/lang/gl.bin | Bin 28710 -> 28728 bytes res/lang/hu.bin | Bin 0 -> 30570 bytes res/lang/ia.bin | Bin 27991 -> 28009 bytes res/lang/ie.bin | Bin 28196 -> 28214 bytes res/lang/isv.bin | Bin 24830 -> 24848 bytes res/lang/pl.bin | Bin 29267 -> 29285 bytes res/lang/ru.bin | Bin 41639 -> 43838 bytes res/lang/sk.bin | Bin 25163 -> 25181 bytes res/lang/sr.bin | Bin 42354 -> 43296 bytes res/lang/tok.bin | Bin 26441 -> 26566 bytes res/lang/uk.bin | Bin 43138 -> 43172 bytes res/lang/zh_Hans.bin | Bin 24943 -> 24961 bytes res/lang/zh_Hant.bin | Bin 25084 -> 25102 bytes src/lang.c | 2 ++ src/ui/util.c | 1 + 25 files changed, 8 insertions(+) create mode 100644 res/lang/hu.bin diff --git a/CMakeLists.txt b/CMakeLists.txt index 378a1bba..ac86d71a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,6 +80,7 @@ set (EMBED_RESOURCES res/lang/fi.bin res/lang/fr.bin res/lang/gl.bin + res/lang/hu.bin res/lang/ia.bin res/lang/ie.bin res/lang/isv.bin diff --git a/po/compile.py b/po/compile.py index a2b35ec4..f046ca96 100755 --- a/po/compile.py +++ b/po/compile.py @@ -13,6 +13,7 @@ BUILD_LANGS = [ 'fi', 'fr', 'gl', + 'hu', 'ia', 'ie', 'isv', diff --git a/po/en.po b/po/en.po index 7258935d..83dec03f 100644 --- a/po/en.po +++ b/po/en.po @@ -1100,6 +1100,9 @@ msgstr "Portuguese" msgid "lang.ru" msgstr "Russian" +msgid "lang.hu" +msgstr "Hungarian" + msgid "lang.uk" msgstr "Ukrainian" diff --git a/res/lang/de.bin b/res/lang/de.bin index b2c28f2b..ab8b61e9 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 61396664..f50c59e4 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 55e4b5a6..8f7415e1 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 b50c7b37..fa58e37f 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 28b90473..7b7be4b6 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 c1393644..ea724c52 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 08920545..163488b7 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 317ac9a9..fbd94fb4 100644 Binary files a/res/lang/gl.bin and b/res/lang/gl.bin differ diff --git a/res/lang/hu.bin b/res/lang/hu.bin new file mode 100644 index 00000000..104a1134 Binary files /dev/null and b/res/lang/hu.bin differ diff --git a/res/lang/ia.bin b/res/lang/ia.bin index 954e288a..94d6264a 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 11f9323c..ccf39a78 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 4097c1e1..5cb76e7e 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 7e44e7be..b2ac897c 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 129c4e10..290c101f 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 3d9770b8..1f8f2817 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 794f501c..dac8a99f 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 35e63a4e..b66ff147 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 index ceaf20d5..dc68bb4a 100644 Binary files a/res/lang/uk.bin and b/res/lang/uk.bin differ diff --git a/res/lang/zh_Hans.bin b/res/lang/zh_Hans.bin index 537d5ba4..bd503eef 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 b6f0dbdb..c4dc5896 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 f54ab2d7..3492cc9b 100644 --- a/src/lang.c +++ b/src/lang.c @@ -84,6 +84,7 @@ static void clear_Lang_(iLang *d) { static void load_Lang_(iLang *d, const char *id) { /* Load compiled language strings from an embedded blob. */ + /* TODO: How about an array for these? (id, blob, pluralType) */ iUnused(id); const iBlock *data = equal_CStr(id, "fi") ? &blobFi_Embedded : equal_CStr(id, "fr") ? &blobFr_Embedded @@ -93,6 +94,7 @@ static void load_Lang_(iLang *d, const char *id) { : equal_CStr(id, "es_MX") ? &blobEs_MX_Embedded : equal_CStr(id, "de") ? &blobDe_Embedded : equal_CStr(id, "gl") ? &blobGl_Embedded + : equal_CStr(id, "hu") ? &blobHu_Embedded : equal_CStr(id, "ia") ? &blobIa_Embedded : equal_CStr(id, "ie") ? &blobIe_Embedded : equal_CStr(id, "isv") ? &blobIsv_Embedded diff --git a/src/ui/util.c b/src/ui/util.c index 8affa57e..5a58551b 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -2207,6 +2207,7 @@ iWidget *makePreferences_Widget(void) { { "${lang.fi} - fi", 0, 0, "uilang id:fi" }, { "${lang.fr} - fr", 0, 0, "uilang id:fr" }, { "${lang.gl} - gl", 0, 0, "uilang id:gl" }, + { "${lang.hu} - hu", 0, 0, "uilang id:hu" }, { "${lang.ia} - ia", 0, 0, "uilang id:ia" }, { "${lang.ie} - ie", 0, 0, "uilang id:ie" }, { "${lang.isv} - isv", 0, 0, "uilang id:isv" }, -- cgit v1.2.3