Add Portuguese to options page

This commit is contained in:
Huntereb 2020-05-27 12:48:13 -04:00
parent 005e7d7fca
commit 3c911ad90a

View File

@ -16,7 +16,7 @@
namespace inst::ui {
extern MainApplication *mainApp;
std::vector<std::string> languageStrings = {"English", "日本語", "Français", "Deutsch", "Italiano", "Русский", "簡体中文","繁體中文"};
std::vector<std::string> 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: