From 929635c6de65b1acd28c25e7ba4d66bf2df6213f Mon Sep 17 00:00:00 2001 From: oddMLan Date: Wed, 26 May 2021 13:26:18 -0700 Subject: [PATCH] Localize unstranslated strings -'Always use interpreter core' & 'Enable Discord Rich Presence' --- Lang/English.pj.Lang | 2 ++ Lang/Spanish.pj.Lang | 2 ++ Source/Project64-core/Multilanguage.h | 2 ++ Source/Project64-core/Multilanguage/Language.cpp | 2 ++ .../UserInterface/Settings/SettingsPage-AdvancedOptions.cpp | 1 + .../Project64/UserInterface/Settings/SettingsPage-Options.cpp | 1 + 6 files changed, 10 insertions(+) diff --git a/Lang/English.pj.Lang b/Lang/English.pj.Lang index 933695d5d..7c394b8c5 100644 --- a/Lang/English.pj.Lang +++ b/Lang/English.pj.Lang @@ -230,6 +230,7 @@ #473# "Enable enhancements" #474# "Show status bar" #475# "Exit fullscreen on lose focus" +#476# "Enable Discord Rich Presence" // ROM browser tab #480# "Max # of ROMs remembered (0-10):" @@ -262,6 +263,7 @@ #512# "Start changed" #513# "Protect memory" #514# "TLB unmapping" +#515# "Always use interpreter core" // ROM options #520# "CPU core style:" diff --git a/Lang/Spanish.pj.Lang b/Lang/Spanish.pj.Lang index 4242601bd..165597c9a 100644 --- a/Lang/Spanish.pj.Lang +++ b/Lang/Spanish.pj.Lang @@ -248,6 +248,7 @@ #473# "Habilitar mejoras" #474# "Mostrar barra de estado" #475# "Salir de pantalla completa al perder foco" +#476# "Habilitar Discord Rich Presence" //ROM Browser Tab #480# "Máx # de ROMs recordadas (0-10):" @@ -280,6 +281,7 @@ #512# "Inicio cambiado" #513# "Proteger memoria" #514# "TLB no mapeado" +#515# "Siempre usar núcleo interpretador" //ROM Options #520# "Estilo de núcleo de la CPU:" diff --git a/Source/Project64-core/Multilanguage.h b/Source/Project64-core/Multilanguage.h index e75d1edcd..8d35290a2 100644 --- a/Source/Project64-core/Multilanguage.h +++ b/Source/Project64-core/Multilanguage.h @@ -266,6 +266,7 @@ enum LanguageStringID OPTION_ENABLE_ENHANCEMENTS = 473, OPTION_SHOW_STATUS_BAR = 474, OPTION_EXIT_FULLSCREEN_ON_LOSE_FOCUS = 475, + OPTION_DISCORD_RPC = 476, // ROM browser tab RB_MAX_ROMS = 480, @@ -299,6 +300,7 @@ enum LanguageStringID ADVANCE_SMM_VALIDATE = 512, ADVANCE_SMM_PROTECT = 513, ADVANCE_SMM_TLB = 514, + ADVANCE_ALWAYS_INTERPRETER = 515, // ROM options ROM_CPU_STYLE = 520, diff --git a/Source/Project64-core/Multilanguage/Language.cpp b/Source/Project64-core/Multilanguage/Language.cpp index 7d777728f..3def12f22 100644 --- a/Source/Project64-core/Multilanguage/Language.cpp +++ b/Source/Project64-core/Multilanguage/Language.cpp @@ -213,6 +213,7 @@ void CLanguage::LoadDefaultStrings(void) DEF_STR(OPTION_ENABLE_ENHANCEMENTS, "Enable enhancements"); DEF_STR(OPTION_SHOW_STATUS_BAR, "Show status bar"); DEF_STR(OPTION_EXIT_FULLSCREEN_ON_LOSE_FOCUS, "Exit fullscreen on lose focus"); + DEF_STR(OPTION_DISCORD_RPC, "Enable Discord Rich Presence"); // ROM browser tab DEF_STR(RB_MAX_ROMS, "Max # of ROMs remembered (0-10):"); @@ -246,6 +247,7 @@ void CLanguage::LoadDefaultStrings(void) DEF_STR(ADVANCE_SMM_VALIDATE, "Start changed"); DEF_STR(ADVANCE_SMM_PROTECT, "Protect memory"); DEF_STR(ADVANCE_SMM_TLB, "TLB unmapping"); + DEF_STR(ADVANCE_ALWAYS_INTERPRETER, "Always use interpreter core"); // ROM options DEF_STR(ROM_CPU_STYLE, "CPU core style:"); diff --git a/Source/Project64/UserInterface/Settings/SettingsPage-AdvancedOptions.cpp b/Source/Project64/UserInterface/Settings/SettingsPage-AdvancedOptions.cpp index 173439e1b..ea2a1d4d7 100644 --- a/Source/Project64/UserInterface/Settings/SettingsPage-AdvancedOptions.cpp +++ b/Source/Project64/UserInterface/Settings/SettingsPage-AdvancedOptions.cpp @@ -14,6 +14,7 @@ CAdvancedOptionsPage::CAdvancedOptionsPage(HWND hParent, const RECT & rcDispay) SetDlgItemText(IDC_ZIP, wGS(ADVANCE_COMPRESS).c_str()); SetDlgItemText(IDC_DEBUGGER, wGS(ADVANCE_DEBUGGER).c_str()); SetDlgItemText(IDC_REMEMBER_CHEAT, wGS(OPTION_REMEMBER_CHEAT).c_str()); + SetDlgItemText(IDC_INTERPRETER, wGS(ADVANCE_ALWAYS_INTERPRETER).c_str()); SetDlgItemText(IDC_UNIQUE_SAVE_DIR, wGS(OPTION_UNIQUE_SAVE_DIR).c_str()); SetDlgItemText(IDC_CHECK_RUNNING, wGS(OPTION_CHECK_RUNNING).c_str()); SetDlgItemText(IDC_ENABLE_ENHANCEMENTS, wGS(OPTION_ENABLE_ENHANCEMENTS).c_str()); diff --git a/Source/Project64/UserInterface/Settings/SettingsPage-Options.cpp b/Source/Project64/UserInterface/Settings/SettingsPage-Options.cpp index cc6dff14e..957884d09 100644 --- a/Source/Project64/UserInterface/Settings/SettingsPage-Options.cpp +++ b/Source/Project64/UserInterface/Settings/SettingsPage-Options.cpp @@ -14,6 +14,7 @@ m_SettingsConfig(SettingsConfig) SetDlgItemText(IDC_AUTOSLEEP, wGS(OPTION_AUTO_SLEEP).c_str()); SetDlgItemText(IDC_LOAD_FULLSCREEN, wGS(OPTION_AUTO_FULLSCREEN).c_str()); SetDlgItemText(IDC_SCREEN_SAVER, wGS(OPTION_DISABLE_SS).c_str()); + SetDlgItemText(IDC_DISCORD_RPC, wGS(OPTION_DISCORD_RPC).c_str()); SetDlgItemText(IDC_BASIC_MODE, wGS(OPTION_BASIC_MODE).c_str()); SetDlgItemText(IDC_MAXROMS_TXT, wGS(RB_MAX_ROMS).c_str()); SetDlgItemText(IDC_ROMSEL_TEXT2, wGS(RB_ROMS).c_str());