diff options
| author | 2023-06-21 00:13:06 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:55 -0400 | |
| commit | 62ffaa730fabd2101947dd28e50fae6d03162aa4 (patch) | |
| tree | e511af5c879f08517715d607f9638bd66ddd108e | |
| parent | settings,translation: Fix time zone enum (diff) | |
| download | yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar.gz yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar.xz yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.zip | |
shared_translation: Fix context usage
Currently unused, but I don't want to start headaches when someone
decides to use it the first time.
Diffstat (limited to '')
| -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) { | |||
| 170 | std::unique_ptr<ComboboxTranslationMap> ComboboxEnumeration(QWidget* parent) { | 170 | std::unique_ptr<ComboboxTranslationMap> ComboboxEnumeration(QWidget* parent) { |
| 171 | std::unique_ptr<ComboboxTranslationMap> translations = | 171 | std::unique_ptr<ComboboxTranslationMap> translations = |
| 172 | std::make_unique<ComboboxTranslationMap>(); | 172 | std::make_unique<ComboboxTranslationMap>(); |
| 173 | const auto& tr = [&](const char* text) { return parent->tr(text); }; | 173 | const auto& tr = [&](const char* text, const char* context = "") { |
| 174 | return parent->tr(text, context); | ||
| 175 | }; | ||
| 174 | 176 | ||
| 175 | #define PAIR(ENUM, VALUE, TRANSLATION) \ | 177 | #define PAIR(ENUM, VALUE, TRANSLATION) \ |
| 176 | { static_cast<u32>(Settings::ENUM::VALUE), tr(TRANSLATION) } | 178 | { static_cast<u32>(Settings::ENUM::VALUE), tr(TRANSLATION) } |