mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-08 10:01:28 -06:00
fallback to original strings if tables are incomplete
This commit is contained in:
parent
4acdd10e84
commit
bb6eae3891
@ -87,7 +87,13 @@ namespace ImguiTranslate {
|
||||
|
||||
std::string tr(std::string input) {
|
||||
std::string language = langMap[Config::GetLanguage()];
|
||||
if (!tableMap.contains(input))
|
||||
return input;
|
||||
|
||||
std::map<std::string, std::string> translationTable = tableMap[input];
|
||||
if (!translationTable.contains(language))
|
||||
return input;
|
||||
|
||||
return translationTable[language];
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user