From 3c911ad90a884802d318f6894c7c10d825aa9585 Mon Sep 17 00:00:00 2001 From: Huntereb Date: Wed, 27 May 2020 12:48:13 -0400 Subject: [PATCH] Add Portuguese to options page --- source/ui/optionsPage.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/source/ui/optionsPage.cpp b/source/ui/optionsPage.cpp index d47411e..1549bff 100755 --- a/source/ui/optionsPage.cpp +++ b/source/ui/optionsPage.cpp @@ -16,7 +16,7 @@ namespace inst::ui { extern MainApplication *mainApp; - std::vector languageStrings = {"English", "日本語", "Français", "Deutsch", "Italiano", "Русский", "簡体中文","繁體中文"}; + std::vector languageStrings = {"English", "日本語", "Français", "Deutsch", "Italiano", "Português", "Русский", "簡体中文","繁體中文"}; optionsPage::optionsPage() : Layout::Layout() { this->SetBackgroundColor(COLOR("#670000FF")); @@ -88,12 +88,14 @@ namespace inst::ui { return languageStrings[3]; case 4: return languageStrings[4]; - case 10: + case 9: return languageStrings[5]; - case 6: + case 10: return languageStrings[6]; - case 11: + case 6: return languageStrings[7]; + case 11: + return languageStrings[8]; default: return "options.language.system_language"_lang; } @@ -220,12 +222,15 @@ namespace inst::ui { inst::config::languageSetting = 4; break; case 5: - inst::config::languageSetting = 10; + inst::config::languageSetting = 9; break; case 6: - inst::config::languageSetting = 6; + inst::config::languageSetting = 10; break; case 7: + inst::config::languageSetting = 6; + break; + case 8: inst::config::languageSetting = 11; break; default: