shared_translation: Deobfuscate auto time zone
This commit is contained in:
parent
8497fb0a04
commit
9186f08c3c
|
@ -1,6 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#include "common/time_zone.h"
|
||||||
#include "yuzu/configuration/shared_translation.h"
|
#include "yuzu/configuration/shared_translation.h"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
@ -309,10 +310,15 @@ std::unique_ptr<ComboboxTranslationMap> ComboboxEnumeration(QWidget* parent) {
|
||||||
PAIR(Region, Korea, "Korea"),
|
PAIR(Region, Korea, "Korea"),
|
||||||
PAIR(Region, Taiwan, "Taiwan"),
|
PAIR(Region, Taiwan, "Taiwan"),
|
||||||
}});
|
}});
|
||||||
translations->insert({typeid(Settings::TimeZone),
|
translations->insert(
|
||||||
|
{typeid(Settings::TimeZone),
|
||||||
{
|
{
|
||||||
PAIR(TimeZone, Auto, "Auto"),
|
{static_cast<u32>(Settings::TimeZone::Auto),
|
||||||
PAIR(TimeZone, Default, "Default"),
|
tr("Auto (%1)", "Auto select time zone")
|
||||||
|
.arg(QString::fromStdString(Settings::GetTimeZoneString()))},
|
||||||
|
{static_cast<u32>(Settings::TimeZone::Default),
|
||||||
|
tr("Default (%1)", "Default time zone")
|
||||||
|
.arg(QString::fromStdString(Common::TimeZone::GetDefaultTimeZone()))},
|
||||||
PAIR(TimeZone, Cet, "CET"),
|
PAIR(TimeZone, Cet, "CET"),
|
||||||
PAIR(TimeZone, Cst6Cdt, "CST6CDT"),
|
PAIR(TimeZone, Cst6Cdt, "CST6CDT"),
|
||||||
PAIR(TimeZone, Cuba, "Cuba"),
|
PAIR(TimeZone, Cuba, "Cuba"),
|
||||||
|
|
Loading…
Reference in New Issue