shared_translation: Deobfuscate auto time zone

This commit is contained in:
lat9nq 2023-06-21 17:02:42 -04:00
parent 8497fb0a04
commit 9186f08c3c

View file

@ -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,52 +310,57 @@ 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"), {
PAIR(TimeZone, Default, "Default"), {static_cast<u32>(Settings::TimeZone::Auto),
PAIR(TimeZone, Cet, "CET"), tr("Auto (%1)", "Auto select time zone")
PAIR(TimeZone, Cst6Cdt, "CST6CDT"), .arg(QString::fromStdString(Settings::GetTimeZoneString()))},
PAIR(TimeZone, Cuba, "Cuba"), {static_cast<u32>(Settings::TimeZone::Default),
PAIR(TimeZone, Eet, "EET"), tr("Default (%1)", "Default time zone")
PAIR(TimeZone, Egypt, "Egypt"), .arg(QString::fromStdString(Common::TimeZone::GetDefaultTimeZone()))},
PAIR(TimeZone, Eire, "Eire"), PAIR(TimeZone, Cet, "CET"),
PAIR(TimeZone, Est, "EST"), PAIR(TimeZone, Cst6Cdt, "CST6CDT"),
PAIR(TimeZone, Est5Edt, "EST5EDT"), PAIR(TimeZone, Cuba, "Cuba"),
PAIR(TimeZone, Gb, "GB"), PAIR(TimeZone, Eet, "EET"),
PAIR(TimeZone, GbEire, "GB-Eire"), PAIR(TimeZone, Egypt, "Egypt"),
PAIR(TimeZone, Gmt, "GMT"), PAIR(TimeZone, Eire, "Eire"),
PAIR(TimeZone, GmtPlusZero, "GMT+0"), PAIR(TimeZone, Est, "EST"),
PAIR(TimeZone, GmtMinusZero, "GMT-0"), PAIR(TimeZone, Est5Edt, "EST5EDT"),
PAIR(TimeZone, GmtZero, "GMT0"), PAIR(TimeZone, Gb, "GB"),
PAIR(TimeZone, Greenwich, "Greenwich"), PAIR(TimeZone, GbEire, "GB-Eire"),
PAIR(TimeZone, Hongkong, "Hongkong"), PAIR(TimeZone, Gmt, "GMT"),
PAIR(TimeZone, Hst, "HST"), PAIR(TimeZone, GmtPlusZero, "GMT+0"),
PAIR(TimeZone, Iceland, "Iceland"), PAIR(TimeZone, GmtMinusZero, "GMT-0"),
PAIR(TimeZone, Iran, "Iran"), PAIR(TimeZone, GmtZero, "GMT0"),
PAIR(TimeZone, Israel, "Israel"), PAIR(TimeZone, Greenwich, "Greenwich"),
PAIR(TimeZone, Jamaica, "Jamaica"), PAIR(TimeZone, Hongkong, "Hongkong"),
PAIR(TimeZone, Kwajalein, "Kwajalein"), PAIR(TimeZone, Hst, "HST"),
PAIR(TimeZone, Libya, "Libya"), PAIR(TimeZone, Iceland, "Iceland"),
PAIR(TimeZone, Met, "MET"), PAIR(TimeZone, Iran, "Iran"),
PAIR(TimeZone, Mst, "MST"), PAIR(TimeZone, Israel, "Israel"),
PAIR(TimeZone, Mst7Mdt, "MST7MDT"), PAIR(TimeZone, Jamaica, "Jamaica"),
PAIR(TimeZone, Navajo, "Navajo"), PAIR(TimeZone, Kwajalein, "Kwajalein"),
PAIR(TimeZone, Nz, "NZ"), PAIR(TimeZone, Libya, "Libya"),
PAIR(TimeZone, NzChat, "NZ-CHAT"), PAIR(TimeZone, Met, "MET"),
PAIR(TimeZone, Poland, "Poland"), PAIR(TimeZone, Mst, "MST"),
PAIR(TimeZone, Portugal, "Portugal"), PAIR(TimeZone, Mst7Mdt, "MST7MDT"),
PAIR(TimeZone, Prc, "PRC"), PAIR(TimeZone, Navajo, "Navajo"),
PAIR(TimeZone, Pst8Pdt, "PST8PDT"), PAIR(TimeZone, Nz, "NZ"),
PAIR(TimeZone, Roc, "ROC"), PAIR(TimeZone, NzChat, "NZ-CHAT"),
PAIR(TimeZone, Rok, "ROK"), PAIR(TimeZone, Poland, "Poland"),
PAIR(TimeZone, Singapore, "Singapore"), PAIR(TimeZone, Portugal, "Portugal"),
PAIR(TimeZone, Turkey, "Turkey"), PAIR(TimeZone, Prc, "PRC"),
PAIR(TimeZone, Uct, "UCT"), PAIR(TimeZone, Pst8Pdt, "PST8PDT"),
PAIR(TimeZone, WSu, "W-SU"), PAIR(TimeZone, Roc, "ROC"),
PAIR(TimeZone, Wet, "WET"), PAIR(TimeZone, Rok, "ROK"),
PAIR(TimeZone, Zulu, "Zulu"), PAIR(TimeZone, Singapore, "Singapore"),
}}); PAIR(TimeZone, Turkey, "Turkey"),
PAIR(TimeZone, Uct, "UCT"),
PAIR(TimeZone, WSu, "W-SU"),
PAIR(TimeZone, Wet, "WET"),
PAIR(TimeZone, Zulu, "Zulu"),
}});
translations->insert({typeid(Settings::AudioMode), translations->insert({typeid(Settings::AudioMode),
{ {
PAIR(AudioMode, Mono, "Mono"), PAIR(AudioMode, Mono, "Mono"),