Add Spanish to options screen

This commit is contained in:
Huntereb 2020-09-20 22:53:51 -04:00
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
View File

View File

@ -16,7 +16,7 @@
namespace inst::ui {
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() {
this->SetBackgroundColor(COLOR("#670000FF"));
@ -88,14 +88,17 @@ namespace inst::ui {
return languageStrings[3];
case 4:
return languageStrings[4];
case 9:
case 5:
case 14:
return languageStrings[5];
case 10:
case 9:
return languageStrings[6];
case 6:
case 10:
return languageStrings[7];
case 11:
case 6:
return languageStrings[8];
case 11:
return languageStrings[9];
default:
return "options.language.system_language"_lang;
}
@ -222,15 +225,18 @@ namespace inst::ui {
inst::config::languageSetting = 4;
break;
case 5:
inst::config::languageSetting = 9;
inst::config::languageSetting = 14;
break;
case 6:
inst::config::languageSetting = 10;
inst::config::languageSetting = 9;
break;
case 7:
inst::config::languageSetting = 6;
inst::config::languageSetting = 10;
break;
case 8:
inst::config::languageSetting = 6;
break;
case 9:
inst::config::languageSetting = 11;
break;
default:

View File

@ -37,7 +37,7 @@ namespace Language {
break;
case 5:
case 14:
languagePath = "romfs:/lang/es.json";
languagePath = "romfs:/lang/es-419.json";
break;
case 6:
case 15: