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 8f349df commit 2c334d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### Changed

- Fix missing translations for German, Russian and Ukrainian
[#103](https://github.com/orontee/taranis/issues/103)

### Removed

## [1.11.0 - 2024-11-24]
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 2c334d1

Please sign in to comment.