Skip to content

Commit

Permalink
Fix missing translations for German, Russian and Ukrainian
Browse files Browse the repository at this point in the history
Refs: #103
  • Loading branch information
orontee committed Dec 6, 2024
1 parent 63b02a2 commit 0284465
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
10 changes: 10 additions & 0 deletions src/l10n.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 0284465

Please sign in to comment.