diff --git a/source/ui/optionsPage.cpp b/source/ui/optionsPage.cpp index b9bc19f..ebe7e67 100755 --- a/source/ui/optionsPage.cpp +++ b/source/ui/optionsPage.cpp @@ -16,7 +16,7 @@ namespace inst::ui { extern MainApplication *mainApp; - std::vector languageStrings = {"English", "Français", "Deutsch", "Italiano", "Русский"}; + std::vector 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: diff --git a/source/util/lang.cpp b/source/util/lang.cpp index 8dce2bd..392d72d 100755 --- a/source/util/lang.cpp +++ b/source/util/lang.cpp @@ -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: