summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-04 22:08:16 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-04 22:08:16 +0200
commit85cdf58f7e24d209dcf8457b698731001e32e24f (patch)
treeaaaf38da9097c66c7c8287adad9bb620058396d3
parentda1a753aef8822193185feed29c6716514b54dd8 (diff)
Added Czech UI translation
-rw-r--r--CMakeLists.txt1
-rwxr-xr-xpo/compile.py1
-rw-r--r--po/en.po3
-rw-r--r--res/about/version.gmi2
-rw-r--r--res/lang/cs.binbin0 -> 28612 bytes
-rw-r--r--src/lang.c3
-rw-r--r--src/ui/util.c3
7 files changed, 10 insertions, 3 deletions
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
72 res/about/license.gmi 72 res/about/license.gmi
73 res/about/version.gmi 73 res/about/version.gmi
74 res/arg-help.txt 74 res/arg-help.txt
75 res/lang/cs.bin
75 res/lang/de.bin 76 res/lang/de.bin
76 res/lang/en.bin 77 res/lang/en.bin
77 res/lang/eo.bin 78 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
6 6
7BUILD_LANGS = [ 7BUILD_LANGS = [
8 'en', # base strings 8 'en', # base strings
9 'cs',
9 'de', 10 'de',
10 'eo', 11 'eo',
11 'es', 12 '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"
1115msgid "lang.es.mx" 1115msgid "lang.es.mx"
1116msgstr "Spanish (Mexico)" 1116msgstr "Spanish (Mexico)"
1117 1117
1118msgid "lang.cs"
1119msgstr "Czech"
1120
1118msgid "lang.sk" 1121msgid "lang.sk"
1119msgstr "Slovak" 1122msgstr "Slovak"
1120 1123
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 @@
7# Release notes 7# Release notes
8 8
9## 1.8.1 9## 1.8.1
10* Added UI translation for Hungarian. 10* Added UI translations: Hungarian, Czech.
11* Added the `zip` utility as a build requirement. It is used for making fontpacks. 11* Added the `zip` utility as a build requirement. It is used for making fontpacks.
12* Fixed build failure with the simple text renderer, i.e., when HarfBuzz is disabled. 12* Fixed build failure with the simple text renderer, i.e., when HarfBuzz is disabled.
13* Fixed a line spacing artifact in long headings. With some fonts, the lines were clipping each other so the spacing was restored to normal. 13* 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
--- /dev/null
+++ b/res/lang/cs.bin
Binary files 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) {
88 iUnused(id); 88 iUnused(id);
89 const iBlock *data = equal_CStr(id, "fi") ? &blobFi_Embedded 89 const iBlock *data = equal_CStr(id, "fi") ? &blobFi_Embedded
90 : equal_CStr(id, "fr") ? &blobFr_Embedded 90 : equal_CStr(id, "fr") ? &blobFr_Embedded
91 : equal_CStr(id, "cs") ? &blobCs_Embedded
91 : equal_CStr(id, "ru") ? &blobRu_Embedded 92 : equal_CStr(id, "ru") ? &blobRu_Embedded
92 : equal_CStr(id, "eo") ? &blobEo_Embedded 93 : equal_CStr(id, "eo") ? &blobEo_Embedded
93 : equal_CStr(id, "es") ? &blobEs_Embedded 94 : equal_CStr(id, "es") ? &blobEs_Embedded
@@ -112,7 +113,7 @@ static void load_Lang_(iLang *d, const char *id) {
112 else if (data == &blobIsv_Embedded) { 113 else if (data == &blobIsv_Embedded) {
113 d->pluralType = oneTwoMany_PluralType; 114 d->pluralType = oneTwoMany_PluralType;
114 } 115 }
115 else if (data == &blobSk_Embedded) { 116 else if (data == &blobCs_Embedded || data == &blobSk_Embedded) {
116 d->pluralType = oneFewMany_PluralType; 117 d->pluralType = oneFewMany_PluralType;
117 } 118 }
118 else if (data == &blobPl_Embedded) { 119 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,
2199 2199
2200iWidget *makePreferences_Widget(void) { 2200iWidget *makePreferences_Widget(void) {
2201 /* Common items. */ 2201 /* Common items. */
2202 const iMenuItem langItems[] = { { "${lang.de} - de", 0, 0, "uilang id:de" }, 2202 const iMenuItem langItems[] = { { "${lang.cs} - cs", 0, 0, "uilang id:cs" },
2203 { "${lang.de} - de", 0, 0, "uilang id:de" },
2203 { "${lang.en} - en", 0, 0, "uilang id:en" }, 2204 { "${lang.en} - en", 0, 0, "uilang id:en" },
2204 { "${lang.es} - es", 0, 0, "uilang id:es" }, 2205 { "${lang.es} - es", 0, 0, "uilang id:es" },
2205 { "${lang.es.mx} - es", 0, 0, "uilang id:es_MX" }, 2206 { "${lang.es.mx} - es", 0, 0, "uilang id:es_MX" },