Add French language selection
This commit is contained in:
parent
6d9b05d5ba
commit
3c8814e077
@ -16,7 +16,7 @@
|
|||||||
namespace inst::ui {
|
namespace inst::ui {
|
||||||
extern MainApplication *mainApp;
|
extern MainApplication *mainApp;
|
||||||
|
|
||||||
std::vector<std::string> languageStrings = {"English", "Deutsch", "Русский"};
|
std::vector<std::string> languageStrings = {"English", "Français", "Deutsch", "Русский"};
|
||||||
|
|
||||||
optionsPage::optionsPage() : Layout::Layout() {
|
optionsPage::optionsPage() : Layout::Layout() {
|
||||||
this->SetBackgroundColor(COLOR("#670000FF"));
|
this->SetBackgroundColor(COLOR("#670000FF"));
|
||||||
@ -79,10 +79,13 @@ namespace inst::ui {
|
|||||||
case 1:
|
case 1:
|
||||||
case 12:
|
case 12:
|
||||||
return languageStrings[0];
|
return languageStrings[0];
|
||||||
case 3:
|
case 2:
|
||||||
|
case 13:
|
||||||
return languageStrings[1];
|
return languageStrings[1];
|
||||||
case 10:
|
case 3:
|
||||||
return languageStrings[2];
|
return languageStrings[2];
|
||||||
|
case 10:
|
||||||
|
return languageStrings[3];
|
||||||
default:
|
default:
|
||||||
return "options.language.system_language"_lang;
|
return "options.language.system_language"_lang;
|
||||||
}
|
}
|
||||||
@ -197,9 +200,12 @@ namespace inst::ui {
|
|||||||
inst::config::languageSetting = 1;
|
inst::config::languageSetting = 1;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
inst::config::languageSetting = 3;
|
inst::config::languageSetting = 2;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
inst::config::languageSetting = 3;
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
inst::config::languageSetting = 10;
|
inst::config::languageSetting = 10;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user