From 71b93a446de83d4f8582a60f809f0108afc95add Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 23 Nov 2021 12:33:35 +0200 Subject: Added Turkish UI language IssueID #396 --- AUTHORS.md | 7 ++++--- CMakeLists.txt | 1 + po/compile.py | 1 + res/about/version.gmi | 1 + res/lang/tr.bin | Bin 0 -> 28832 bytes src/lang.c | 1 + src/resources.c | 2 ++ src/resources.h | 1 + src/ui/util.c | 1 + 9 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 res/lang/tr.bin diff --git a/AUTHORS.md b/AUTHORS.md index a809d9e3..3a5c9dce 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -5,11 +5,11 @@ Lagrange was created by Jaakko Keränen () in July 2020. Legend: `C` code, `T` translation ``` -C 2631 Jaakko Keränen +C 2665 Jaakko Keränen CT 39 Nikolay Korotkiy T 39 Olga Smirnova + T 28 Anna “CyberTailor” T 27 Alyssa Liddell - T 27 jan Anja T 25 Shibo Lyu T 22 Страхиња Радић T 17 MCMic @@ -20,8 +20,8 @@ CT 39 Nikolay Korotkiy T 8 El Mau T 7 Waterrail T 5 roy niang + T 3 Alex Schroeder T 3 Botond Balázs - T 2 Alex Schroeder C 2 Alyssa Rosenzweig T 2 Arns Udovič C 2 Br0000k <77938600+Br0000k@users.noreply.github.com> @@ -33,6 +33,7 @@ C 1 Adam Mizerski C 1 Charles C 1 Dario Vladovic C 1 David Gillies + T 1 Emir T 1 Eric T 1 Marek Ľach C 1 Raph M diff --git a/CMakeLists.txt b/CMakeLists.txt index 419fa25c..d6636fae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,6 +89,7 @@ set (RESOURCES res/lang/sk.bin res/lang/sr.bin res/lang/tok.bin + res/lang/tr.bin res/lang/uk.bin res/lang/zh_Hans.bin res/lang/zh_Hant.bin diff --git a/po/compile.py b/po/compile.py index adf5a403..d29cbb8b 100755 --- a/po/compile.py +++ b/po/compile.py @@ -22,6 +22,7 @@ BUILD_LANGS = [ 'en', # base strings 'sk', 'sr', 'tok', + 'tr', 'uk', 'zh_Hans', 'zh_Hant' diff --git a/res/about/version.gmi b/res/about/version.gmi index 97304e06..ce5502de 100644 --- a/res/about/version.gmi +++ b/res/about/version.gmi @@ -12,6 +12,7 @@ New features: * Choose parent folder when creating or editing a bookmark. * macOS: Automatic updates using the Sparkle framework. * Windows: Automatic updates using the WinSparkle library. +* Added UI language for Turkish. Changes and enhancements: * Feeds tab in the sidebar has a redesigned action toolbar with "Mark All as Read", and dropdown menu and keyboard shortcuts for changing the filter mode. diff --git a/res/lang/tr.bin b/res/lang/tr.bin new file mode 100644 index 00000000..88412aef Binary files /dev/null and b/res/lang/tr.bin differ diff --git a/src/lang.c b/src/lang.c index 0bafb42b..905601ca 100644 --- a/src/lang.c +++ b/src/lang.c @@ -103,6 +103,7 @@ static void load_Lang_(iLang *d, const char *id) { : equal_CStr(id, "sk") ? &blobSk_Resources : equal_CStr(id, "sr") ? &blobSr_Resources : equal_CStr(id, "tok") ? &blobTok_Resources + : equal_CStr(id, "tr") ? &blobTr_Resources : equal_CStr(id, "uk") ? &blobUk_Resources : equal_CStr(id, "zh_Hans") ? &blobZh_Hans_Resources : equal_CStr(id, "zh_Hant") ? &blobZh_Hant_Resources diff --git a/src/resources.c b/src/resources.c index 24fbe214..c60a2916 100644 --- a/src/resources.c +++ b/src/resources.c @@ -51,6 +51,7 @@ iBlock blobRu_Resources; iBlock blobSk_Resources; iBlock blobSr_Resources; iBlock blobTok_Resources; +iBlock blobTr_Resources; iBlock blobUk_Resources; iBlock blobZh_Hans_Resources; iBlock blobZh_Hant_Resources; @@ -85,6 +86,7 @@ static struct { { &blobSk_Resources, "lang/sk.bin" }, { &blobSr_Resources, "lang/sr.bin" }, { &blobTok_Resources, "lang/tok.bin" }, + { &blobTr_Resources, "lang/tr.bin" }, { &blobUk_Resources, "lang/uk.bin" }, { &blobZh_Hans_Resources, "lang/zh_Hans.bin" }, { &blobZh_Hant_Resources, "lang/zh_Hant.bin" }, diff --git a/src/resources.h b/src/resources.h index df5cac36..b00fde51 100644 --- a/src/resources.h +++ b/src/resources.h @@ -55,6 +55,7 @@ extern iBlock blobRu_Resources; extern iBlock blobSk_Resources; extern iBlock blobSr_Resources; extern iBlock blobTok_Resources; +extern iBlock blobTr_Resources; extern iBlock blobUk_Resources; extern iBlock blobZh_Hans_Resources; extern iBlock blobZh_Hant_Resources; diff --git a/src/ui/util.c b/src/ui/util.c index e718631d..bc9c2825 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -2237,6 +2237,7 @@ iWidget *makePreferences_Widget(void) { { u8"Slovak - sk", 0, 0, "uilang id:sk" }, { u8"Српски - sr", 0, 0, "uilang id:sr" }, { u8"Toki pona - tok", 0, 0, "uilang id:tok" }, + { u8"Türkçe - tr", 0, 0, "uilang id:tr" }, { u8"Українська - uk", 0, 0, "uilang id:uk" }, { u8"简体中文 - zh", 0, 0, "uilang id:zh_Hans" }, { u8"繁體/正體中文 - zh", 0, 0, "uilang id:zh_Hant" }, -- cgit v1.2.3