diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-06-21 06:13:06 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-21 16:56:55 +0200 |
commit | 62ffaa730fabd2101947dd28e50fae6d03162aa4 (patch) | |
tree | e511af5c879f08517715d607f9638bd66ddd108e | |
parent | settings,translation: Fix time zone enum (diff) | |
download | yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar.gz yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar.bz2 yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar.lz yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar.xz yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar.zst yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.zip |
-rw-r--r-- | src/yuzu/configuration/shared_translation.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/yuzu/configuration/shared_translation.cpp b/src/yuzu/configuration/shared_translation.cpp index a75574530..a1030efb0 100644 --- a/src/yuzu/configuration/shared_translation.cpp +++ b/src/yuzu/configuration/shared_translation.cpp @@ -170,7 +170,9 @@ std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent) { std::unique_ptr<ComboboxTranslationMap> ComboboxEnumeration(QWidget* parent) { std::unique_ptr<ComboboxTranslationMap> translations = std::make_unique<ComboboxTranslationMap>(); - const auto& tr = [&](const char* text) { return parent->tr(text); }; + const auto& tr = [&](const char* text, const char* context = "") { + return parent->tr(text, context); + }; #define PAIR(ENUM, VALUE, TRANSLATION) \ { static_cast<u32>(Settings::ENUM::VALUE), tr(TRANSLATION) } |