yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

shared_translation: Fix context usage

Currently unused, but I don't want to start headaches when someone
decides to use it the first time.
This commit is contained in:
lat9nq 2023-06-21 00:13:06 -04:00
parent 8b28aa45b9
commit 62ffaa730f
1 changed files with 3 additions and 1 deletions

View File

@ -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) }