Added support for the de_DE locale

This commit is contained in:
Leon Styhre 2024-09-16 22:36:02 +02:00
parent 4fa953dc0d
commit 6a521ffb68
5 changed files with 717 additions and 546 deletions

View file

@ -565,6 +565,7 @@ void GuiMenu::openUIOptions()
selectedApplicationLanguage == "en_US");
applicationLanguage->add("ENGLISH (UNITED KINGDOM)", "en_GB",
selectedApplicationLanguage == "en_GB");
applicationLanguage->add("DEUTSCH", "de_DE", selectedApplicationLanguage == "de_DE");
applicationLanguage->add("ESPAÑOL (ESPAÑA)", "es_ES", selectedApplicationLanguage == "es_ES");
applicationLanguage->add("FRANÇAIS", "fr_FR", selectedApplicationLanguage == "fr_FR");
applicationLanguage->add("ITALIANO", "it_IT", selectedApplicationLanguage == "it_IT");

View file

@ -106,6 +106,7 @@ std::vector<std::pair<std::string, std::string>> ThemeData::sSupportedLanguages
{"automatic", "automatic"},
{"en_US", "ENGLISH (UNITED STATES)"},
{"en_GB", "ENGLISH (UNITED KINGDOM)"},
{"de_DE", "DEUTSCH"},
{"es_ES", "ESPAÑOL (ESPAÑA)"},
{"fr_FR", "FRANÇAIS"},
{"it_IT", "ITALIANO"},

View file

@ -31,6 +31,7 @@ namespace Utils
// When adding a new locale, then make sure to also update ThemeData::sSupportedLanguages.
const std::vector<std::pair<std::string, std::string>> sSupportedLocales {{{"en"}, {"US"}},
{{"en"}, {"GB"}},
{{"de"}, {"DE"}},
{{"es"}, {"ES"}},
{{"fr"}, {"FR"}},
{{"it"}, {"IT"}},
@ -185,7 +186,9 @@ namespace Utils
}
// Language-specific menu title scale factor.
if (localePair.first == "es")
if (localePair.first == "de")
sMenuTitleScaleFactor = 0.92f;
else if (localePair.first == "es")
sMenuTitleScaleFactor = 0.90f;
else if (localePair.first == "fr")
sMenuTitleScaleFactor = 0.90f;

View file

@ -1,5 +1,6 @@
en_US
en_GB
de_DE
es_ES
fr_FR
it_IT

File diff suppressed because it is too large Load diff