Added support for the en_GB locale

This commit is contained in:
Leon Styhre 2024-07-20 13:24:37 +02:00
parent 7ef8f6cc28
commit 0b5b0e0572
5 changed files with 2678 additions and 2 deletions

View file

@ -486,7 +486,10 @@ void GuiMenu::openUIOptions()
Settings::getInstance()->getString("ApplicationLanguage")}; Settings::getInstance()->getString("ApplicationLanguage")};
applicationLanguage->add(_("AUTOMATIC"), "automatic", applicationLanguage->add(_("AUTOMATIC"), "automatic",
selectedApplicationLanguage == "automatic"); selectedApplicationLanguage == "automatic");
applicationLanguage->add("ENGLISH (AMERICAN)", "en_US", selectedApplicationLanguage == "en_US"); applicationLanguage->add("ENGLISH (UNITED STATES)", "en_US",
selectedApplicationLanguage == "en_US");
applicationLanguage->add("ENGLISH (UNITED KINGDOM)", "en_GB",
selectedApplicationLanguage == "en_GB");
applicationLanguage->add("SVENSKA", "sv_SE", selectedApplicationLanguage == "sv_SE"); applicationLanguage->add("SVENSKA", "sv_SE", selectedApplicationLanguage == "sv_SE");
applicationLanguage->add("简体中文", "zh_CN", selectedApplicationLanguage == "zh_CN"); applicationLanguage->add("简体中文", "zh_CN", selectedApplicationLanguage == "zh_CN");
// 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

View file

@ -29,6 +29,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"}},
{{"sv"}, {"SE"}}, {{"sv"}, {"SE"}},
{{"zh"}, {"CN"}}}; {{"zh"}, {"CN"}}};
// clang-format on // clang-format on

View file

@ -1,3 +1,4 @@
en_US en_US
en_GB
sv_SE sv_SE
zh_CN zh_CN

2671
locale/po/en_GB.po Normal file

File diff suppressed because it is too large Load diff

View file

@ -10,7 +10,7 @@ msgstr ""
"POT-Creation-Date: 2024-07-20 13:05+0200\n" "POT-Creation-Date: 2024-07-20 13:05+0200\n"
"PO-Revision-Date: 2024-07-20 13:05+0200\n" "PO-Revision-Date: 2024-07-20 13:05+0200\n"
"Last-Translator: Northwestern Software <info@es-de.org>\n" "Last-Translator: Northwestern Software <info@es-de.org>\n"
"Language-Team: English <info@es-de.org>\n" "Language-Team: English (United States) <info@es-de.org>\n"
"Language: en_US\n" "Language: en_US\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"