Added support for the ar_EG locale

This commit is contained in:
Leon Styhre 2024-08-04 13:02:00 +02:00
parent 16697c0503
commit 03f6567dd5
4 changed files with 2618 additions and 0 deletions

View file

@ -502,6 +502,7 @@ void GuiMenu::openUIOptions()
applicationLanguage->add("SVENSKA", "sv_SE", selectedApplicationLanguage == "sv_SE"); applicationLanguage->add("SVENSKA", "sv_SE", selectedApplicationLanguage == "sv_SE");
applicationLanguage->add("日本語", "ja_JP", selectedApplicationLanguage == "ja_JP"); applicationLanguage->add("日本語", "ja_JP", selectedApplicationLanguage == "ja_JP");
applicationLanguage->add("简体中文", "zh_CN", selectedApplicationLanguage == "zh_CN"); applicationLanguage->add("简体中文", "zh_CN", selectedApplicationLanguage == "zh_CN");
applicationLanguage->add("العربية", "ar_EG", selectedApplicationLanguage == "ar_EG");
// If there are no objects returned, then there must be a manually modified entry in the // If there are no objects returned, then there must be a manually modified entry in the
// configuration file. Simply set the application langauge to "automatic" in this case. // configuration file. Simply set the application langauge to "automatic" in this case.
if (applicationLanguage->getSelectedObjects().size() == 0) if (applicationLanguage->getSelectedObjects().size() == 0)

View file

@ -30,6 +30,7 @@ namespace Utils
// clang-format off // clang-format off
const std::vector<std::pair<std::string, std::string>> sSupportedLocales {{{"en"}, {"US"}}, const std::vector<std::pair<std::string, std::string>> sSupportedLocales {{{"en"}, {"US"}},
{{"en"}, {"GB"}}, {{"en"}, {"GB"}},
{{"ar"}, {"EG"}},
{{"el"}, {"GR"}}, {{"el"}, {"GR"}},
{{"es"}, {"ES"}}, {{"es"}, {"ES"}},
{{"fr"}, {"FR"}}, {{"fr"}, {"FR"}},

View file

@ -1,5 +1,6 @@
en_US en_US
en_GB en_GB
ar_EG
el_GR el_GR
es_ES es_ES
fr_FR fr_FR

2615
locale/po/ar_EG.po Normal file

File diff suppressed because it is too large Load diff