German selection in options menu

This commit is contained in:
Huntereb 2019-12-27 11:58:57 -05:00
parent e7c5f73243
commit 33e2808c3b

View File

@ -16,7 +16,7 @@
namespace inst::ui {
extern MainApplication *mainApp;
std::vector<pu::String> languageStrings = {"English", "Русский"};
std::vector<pu::String> languageStrings = {"English", "Deutsch", "Русский"};
optionsPage::optionsPage() : Layout::Layout() {
this->SetBackgroundColor(COLOR("#670000FF"));
@ -79,8 +79,10 @@ namespace inst::ui {
case 1:
case 12:
return languageStrings[0].AsUTF8();
case 10:
case 3:
return languageStrings[1].AsUTF8();
case 10:
return languageStrings[2].AsUTF8();
default:
return "options.language.system_language"_lang;
}
@ -195,6 +197,9 @@ namespace inst::ui {
inst::config::languageSetting = 1;
break;
case 1:
inst::config::languageSetting = 3;
break;
case 2:
inst::config::languageSetting = 10;
break;
default: