From 02844657893863818ccca8887c815346f42b38ec Mon Sep 17 00:00:00 2001 From: Matthias Meulien Date: Fri, 6 Dec 2024 22:37:27 +0100 Subject: [PATCH] Fix missing translations for German, Russian and Ukrainian Refs: #103 --- NEWS.md | 7 +++++++ meson.build | 2 +- src/l10n.h | 10 ++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 4151d7d..aa55ef0 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.11.1 - 2024-12-6] + +### Changed + +- Fix missing translations for German, Russian and Ukrainian + [#103](https://github.com/orontee/taranis/issues/103) + ## [1.11.0 - 2024-11-24] ### Changed diff --git a/meson.build b/meson.build index b2529b1..e192e00 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,7 @@ project( 'taranis', 'cpp', - version: '1.11.0', + version: '1.11.1', meson_version: '>= 0.61.2', default_options : [ 'cpp_std=c++17', diff --git a/src/l10n.h b/src/l10n.h index 8cda3ac..15fee32 100644 --- a/src/l10n.h +++ b/src/l10n.h @@ -14,6 +14,10 @@ namespace l10n { extern const Translations cs_translations; extern const Translations fr_translations; extern const Translations pl_translations; +extern const Translations ru_translations; +extern const Translations uk_translations; +extern const Translations de_translations; + } // namespace l10n class L10n { @@ -66,6 +70,12 @@ class L10n { return &(l10n::fr_translations); } else if (std::strcmp(language, "pl") == 0) { return &(l10n::pl_translations); + } else if (std::strcmp(language, "ru") == 0) { + return &(l10n::ru_translations); + } else if (std::strcmp(language, "uk") == 0) { + return &(l10n::uk_translations); + } else if (std::strcmp(language, "de") == 0) { + return &(l10n::de_translations); } return nullptr; }