Add Japanese to language selection

This commit is contained in:
Huntereb 2020-03-15 13:35:08 -04:00
parent ae95a5534f
commit 82cb434c2f
2 changed files with 14 additions and 9 deletions

View File

@ -16,7 +16,7 @@
namespace inst::ui {
extern MainApplication *mainApp;
std::vector<std::string> languageStrings = {"English", "Français", "Deutsch", "Italiano", "Русский"};
std::vector<std::string> languageStrings = {"English", "日本語", "Français", "Deutsch", "Italiano", "Русский"};
optionsPage::optionsPage() : Layout::Layout() {
this->SetBackgroundColor(COLOR("#670000FF"));
@ -79,15 +79,17 @@ namespace inst::ui {
case 1:
case 12:
return languageStrings[0];
case 0:
return languageStrings[1];
case 2:
case 13:
return languageStrings[1];
case 3:
return languageStrings[2];
case 4:
case 3:
return languageStrings[3];
case 10:
case 4:
return languageStrings[4];
case 10:
return languageStrings[5];
default:
return "options.language.system_language"_lang;
}
@ -202,15 +204,18 @@ namespace inst::ui {
inst::config::languageSetting = 1;
break;
case 1:
inst::config::languageSetting = 2;
inst::config::languageSetting = 0;
break;
case 2:
inst::config::languageSetting = 3;
inst::config::languageSetting = 2;
break;
case 3:
inst::config::languageSetting = 4;
inst::config::languageSetting = 3;
break;
case 4:
inst::config::languageSetting = 4;
break;
case 5:
inst::config::languageSetting = 10;
break;
default:

View File

@ -22,7 +22,7 @@ namespace Language {
}
switch (langInt) {
case 0:
languagePath = "romfs:/lang/ja.json";
languagePath = "romfs:/lang/jp.json";
break;
case 2:
case 13: