Add Italian language selection to options page

This commit is contained in:
Huntereb 2020-01-31 14:04:27 -05:00
parent e46fa934a0
commit 12999e86ac

View File

@ -16,7 +16,7 @@
namespace inst::ui { namespace inst::ui {
extern MainApplication *mainApp; extern MainApplication *mainApp;
std::vector<std::string> languageStrings = {"English", "Français", "Deutsch", "Русский"}; std::vector<std::string> languageStrings = {"English", "Français", "Deutsch", "Italiano", "Русский"};
optionsPage::optionsPage() : Layout::Layout() { optionsPage::optionsPage() : Layout::Layout() {
this->SetBackgroundColor(COLOR("#670000FF")); this->SetBackgroundColor(COLOR("#670000FF"));
@ -84,8 +84,10 @@ namespace inst::ui {
return languageStrings[1]; return languageStrings[1];
case 3: case 3:
return languageStrings[2]; return languageStrings[2];
case 10: case 4:
return languageStrings[3]; return languageStrings[3];
case 10:
return languageStrings[4];
default: default:
return "options.language.system_language"_lang; return "options.language.system_language"_lang;
} }
@ -206,6 +208,9 @@ namespace inst::ui {
inst::config::languageSetting = 3; inst::config::languageSetting = 3;
break; break;
case 3: case 3:
inst::config::languageSetting = 4;
break;
case 4:
inst::config::languageSetting = 10; inst::config::languageSetting = 10;
break; break;
default: default: