mirror of
https://github.com/Huntereb/Awoo-Installer
synced 2024-11-10 06:04:20 +00:00
Add Spanish to options screen
This commit is contained in:
parent
0450512766
commit
447226e955
3 changed files with 15 additions and 9 deletions
0
romfs/lang/es-es.json → romfs/lang/es-419.json
Normal file → Executable file
0
romfs/lang/es-es.json → romfs/lang/es-419.json
Normal file → Executable 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", "Italiano", "Português", "Русский", "簡体中文","繁體中文"};
|
std::vector<std::string> languageStrings = {"English", "日本語", "Français", "Deutsch", "Italiano", "Español", "Português", "Русский", "簡体中文","繁體中文"};
|
||||||
|
|
||||||
optionsPage::optionsPage() : Layout::Layout() {
|
optionsPage::optionsPage() : Layout::Layout() {
|
||||||
this->SetBackgroundColor(COLOR("#670000FF"));
|
this->SetBackgroundColor(COLOR("#670000FF"));
|
||||||
|
@ -88,14 +88,17 @@ namespace inst::ui {
|
||||||
return languageStrings[3];
|
return languageStrings[3];
|
||||||
case 4:
|
case 4:
|
||||||
return languageStrings[4];
|
return languageStrings[4];
|
||||||
case 9:
|
case 5:
|
||||||
|
case 14:
|
||||||
return languageStrings[5];
|
return languageStrings[5];
|
||||||
case 10:
|
case 9:
|
||||||
return languageStrings[6];
|
return languageStrings[6];
|
||||||
case 6:
|
case 10:
|
||||||
return languageStrings[7];
|
return languageStrings[7];
|
||||||
case 11:
|
case 6:
|
||||||
return languageStrings[8];
|
return languageStrings[8];
|
||||||
|
case 11:
|
||||||
|
return languageStrings[9];
|
||||||
default:
|
default:
|
||||||
return "options.language.system_language"_lang;
|
return "options.language.system_language"_lang;
|
||||||
}
|
}
|
||||||
|
@ -222,15 +225,18 @@ namespace inst::ui {
|
||||||
inst::config::languageSetting = 4;
|
inst::config::languageSetting = 4;
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
inst::config::languageSetting = 9;
|
inst::config::languageSetting = 14;
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
inst::config::languageSetting = 10;
|
inst::config::languageSetting = 9;
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
inst::config::languageSetting = 6;
|
inst::config::languageSetting = 10;
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
|
inst::config::languageSetting = 6;
|
||||||
|
break;
|
||||||
|
case 9:
|
||||||
inst::config::languageSetting = 11;
|
inst::config::languageSetting = 11;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -37,7 +37,7 @@ namespace Language {
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
case 14:
|
case 14:
|
||||||
languagePath = "romfs:/lang/es.json";
|
languagePath = "romfs:/lang/es-419.json";
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
case 15:
|
case 15:
|
||||||
|
|
Loading…
Reference in a new issue