From 4af9c94b268cd0a0da0c5d2cd274e8d675335288 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 11 Apr 2021 09:05:06 +0300 Subject: Lang: Added German translation --- CMakeLists.txt | 1 + po/compile.py | 2 +- res/lang/de.bin | Bin 0 -> 17600 bytes src/lang.c | 2 +- src/ui/util.c | 2 +- 5 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 res/lang/de.bin diff --git a/CMakeLists.txt b/CMakeLists.txt index bb937fa0..dd675410 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,6 +75,7 @@ set (EMBED_RESOURCES res/fonts/SourceSansPro-Regular.ttf res/fonts/SourceSansPro-Bold.ttf res/fonts/Symbola.ttf + res/lang/de.bin res/lang/en.bin res/lang/es.bin res/lang/fi.bin diff --git a/po/compile.py b/po/compile.py index 0bff919f..9b64c3d0 100755 --- a/po/compile.py +++ b/po/compile.py @@ -4,7 +4,7 @@ import os, sys -BUILD_LANGS = ['en', 'es', 'fi', 'ie', 'ru', 'sr', 'zh_Hans', 'zh_Hant'] +BUILD_LANGS = ['en', 'de', 'es', 'fi', 'ie', 'ru', 'sr', 'zh_Hans', 'zh_Hant'] MODE = 'compile' ESCAPES = { '\\': '\\', diff --git a/res/lang/de.bin b/res/lang/de.bin new file mode 100644 index 00000000..691538a8 Binary files /dev/null and b/res/lang/de.bin differ diff --git a/src/lang.c b/src/lang.c index 38d2dc90..60e61547 100644 --- a/src/lang.c +++ b/src/lang.c @@ -55,7 +55,7 @@ static void load_Lang_(iLang *d, const char *id) { const iBlock *data = equal_CStr(id, "fi") ? &blobFi_Embedded : equal_CStr(id, "ru") ? &blobRu_Embedded : equal_CStr(id, "es") ? &blobEs_Embedded -// : equal_CStr(id, "de") ? &blobDe_Embedded + : equal_CStr(id, "de") ? &blobDe_Embedded : equal_CStr(id, "ie") ? &blobIe_Embedded : equal_CStr(id, "sr") ? &blobSr_Embedded : equal_CStr(id, "zh_Hans") ? &blobZh_Hans_Embedded diff --git a/src/ui/util.c b/src/ui/util.c index 047fa7af..754545bd 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -2009,7 +2009,7 @@ iWidget *makePreferences_Widget(void) { /* UI languages. */ { iArray *uiLangs = collectNew_Array(sizeof(iMenuItem)); const iMenuItem langItems[] = { -// { "${lang.de} - de", 0, 0, "uilang id:de" }, + { "${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.fi} - fi", 0, 0, "uilang id:fi" }, -- cgit v1.2.3