German selection in options menu
This commit is contained in:
parent
e7c5f73243
commit
33e2808c3b
@ -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:
|
||||
|
Reference in New Issue
Block a user