Added support for the ca_ES locale

This commit is contained in:
Leon Styhre 2024-09-20 14:11:54 +02:00
parent fe5a4ca86f
commit 3ba46470da
5 changed files with 2726 additions and 1 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("CATALÀ", "ca_ES", selectedApplicationLanguage == "ca_ES");
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");

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)"},
{"ca_ES", "CATALÀ"},
{"de_DE", "DEUTSCH"},
{"es_ES", "ESPAÑOL (ESPAÑA)"},
{"fr_FR", "FRANÇAIS"},

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"}},
{{"ca"}, {"ES"}},
{{"de"}, {"DE"}},
{{"es"}, {"ES"}},
{{"fr"}, {"FR"}},
@ -186,7 +187,9 @@ namespace Utils
}
// Language-specific menu title scale factor.
if (localePair.first == "de")
if (localePair.first == "ca")
sMenuTitleScaleFactor = 0.92f;
else if (localePair.first == "de")
sMenuTitleScaleFactor = 0.92f;
else if (localePair.first == "es")
sMenuTitleScaleFactor = 0.90f;

View file

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

2719
locale/po/ca_ES.po Normal file

File diff suppressed because it is too large Load diff