#include "stdafx.h" #include #include #include CLanguage * g_Lang = nullptr; void CLanguage::LoadDefaultStrings(void) { #define DEF_STR(ID, str) m_DefaultStrings.insert(LANG_STRINGS::value_type(ID, str)) DEF_STR(EMPTY_STRING, ""); // Meta information DEF_STR(LANGUAGE_NAME, ""); // Numbers DEF_STR(NUMBER_0, "0"); DEF_STR(NUMBER_1, "1"); DEF_STR(NUMBER_2, "2"); DEF_STR(NUMBER_3, "3"); DEF_STR(NUMBER_4, "4"); DEF_STR(NUMBER_5, "5"); DEF_STR(NUMBER_6, "6"); DEF_STR(NUMBER_7, "7"); DEF_STR(NUMBER_8, "8"); DEF_STR(NUMBER_9, "9"); /*** Menu ***/ // File menu DEF_STR(MENU_FILE, "&File"); DEF_STR(MENU_OPEN, "&Open ROM"); DEF_STR(MENU_ROM_INFO, "ROM &Info..."); DEF_STR(MENU_START, "Start Emulation"); DEF_STR(MENU_END, "&End Emulation"); DEF_STR(MENU_CHOOSE_ROM, "Choose ROM Directory..."); DEF_STR(MENU_REFRESH, "Refresh ROM List"); DEF_STR(MENU_RECENT_ROM, "Recent ROM"); DEF_STR(MENU_RECENT_DIR, "Recent ROM Directories"); DEF_STR(MENU_EXIT, "E&xit"); DEF_STR(MENU_OPEN_COMBO, "Open &Combo"); // System menu DEF_STR(MENU_SYSTEM, "&System"); DEF_STR(MENU_RESET, "&Reset"); DEF_STR(MENU_PAUSE, "&Pause"); DEF_STR(MENU_BITMAP, "Capture screenshot"); DEF_STR(MENU_LIMIT_FPS, "Limit FPS"); DEF_STR(MENU_SAVE, "&Save State"); DEF_STR(MENU_SAVE_AS, "Save As..."); DEF_STR(MENU_RESTORE, "&Load State"); DEF_STR(MENU_LOAD, "Load..."); DEF_STR(MENU_CURRENT_SAVE, "Current Saves&tate"); DEF_STR(MENU_CHEAT, "&Cheats..."); DEF_STR(MENU_GS_BUTTON, "GS Button"); DEF_STR(MENU_RESUME, "R&esume"); DEF_STR(MENU_RESET_SOFT, "&Soft Reset"); DEF_STR(MENU_RESET_HARD, "&Hard Reset"); DEF_STR(MENU_SWAPDISK, "Swap &Disk"); DEF_STR(MENU_ENHANCEMENT, "&Enhancements..."); // Options menu DEF_STR(MENU_OPTIONS, "&Options"); DEF_STR(MENU_FULL_SCREEN, "&Fullscreen"); DEF_STR(MENU_ON_TOP, "&Always on &top"); DEF_STR(MENU_CONFG_GFX, "&Graphic Settings"); DEF_STR(MENU_CONFG_AUDIO, "&Audio Settings"); DEF_STR(MENU_CONFG_CTRL, "&Input Settings"); DEF_STR(MENU_CONFG_RSP, "&RSP Settings"); DEF_STR(MENU_SHOW_CPU, "Show CPU &Stats"); DEF_STR(MENU_SETTINGS, "Configura&tion"); // Debugger menu DEF_STR(MENU_DEBUGGER, "&Debugger"); // Language menu DEF_STR(MENU_LANGUAGE, "&Language"); // Help menu DEF_STR(MENU_HELP, "&Help"); DEF_STR(MENU_ABOUT_PJ64, "&About Project64"); DEF_STR(MENU_WEBSITE, "&Website"); DEF_STR(MENU_SUPPORT_PROJECT64, "&Support Project64"); DEF_STR(MENU_DISCORD, "&Discord"); // Current save slot menu DEF_STR(MENU_SLOT_DEFAULT, "Default"); DEF_STR(MENU_SLOT_1, "Slot 1"); DEF_STR(MENU_SLOT_2, "Slot 2"); DEF_STR(MENU_SLOT_3, "Slot 3"); DEF_STR(MENU_SLOT_4, "Slot 4"); DEF_STR(MENU_SLOT_5, "Slot 5"); DEF_STR(MENU_SLOT_6, "Slot 6"); DEF_STR(MENU_SLOT_7, "Slot 7"); DEF_STR(MENU_SLOT_8, "Slot 8"); DEF_STR(MENU_SLOT_9, "Slot 9"); DEF_STR(MENU_SLOT_10, "Slot 10"); DEF_STR(MENU_SLOT_SAVE, "Save slot (%s) selected"); // Pop-up menu DEF_STR(POPUP_PLAY, "Play Game"); DEF_STR(POPUP_INFO, "ROM Information"); DEF_STR(POPUP_SETTINGS, "Edit Game Settings"); DEF_STR(POPUP_CHEATS, "Edit Cheats"); DEF_STR(POPUP_GFX_PLUGIN, "Graphics Plugin"); DEF_STR(POPUP_PLAYDISK, "Play Game with Disk"); DEF_STR(POPUP_ENHANCEMENTS, "Pick Enhancements"); // Alternate name to save slot DEF_STR(SAVE_SLOT_DEFAULT, "Save Slot - Default"); DEF_STR(SAVE_SLOT_1, "Save Slot - 1"); DEF_STR(SAVE_SLOT_2, "Save Slot - 2"); DEF_STR(SAVE_SLOT_3, "Save Slot - 3"); DEF_STR(SAVE_SLOT_4, "Save Slot - 4"); DEF_STR(SAVE_SLOT_5, "Save Slot - 5"); DEF_STR(SAVE_SLOT_6, "Save Slot - 6"); DEF_STR(SAVE_SLOT_7, "Save Slot - 7"); DEF_STR(SAVE_SLOT_8, "Save Slot - 8"); DEF_STR(SAVE_SLOT_9, "Save Slot - 9"); DEF_STR(SAVE_SLOT_10, "Save Slot - 10"); /*** ROM browser ***/ // ROM browser fields DEF_STR(RB_FILENAME, "File Name"); DEF_STR(RB_INTERNALNAME, "Internal Name"); DEF_STR(RB_GOODNAME, "Good Name"); DEF_STR(RB_STATUS, "Status"); DEF_STR(RB_ROMSIZE, "ROM Size"); DEF_STR(RB_NOTES_CORE, "Notes (core)"); DEF_STR(RB_NOTES_PLUGIN, "Notes (default plugins)"); DEF_STR(RB_NOTES_USER, "Notes (user)"); DEF_STR(RB_CART_ID, "Cartridge ID"); DEF_STR(RB_MEDIA, "Media Type"); DEF_STR(RB_COUNTRY, "Country"); DEF_STR(RB_DEVELOPER, "Developer"); DEF_STR(RB_CRC1, "CRC1"); DEF_STR(RB_CRC2, "CRC2"); DEF_STR(RB_CICCHIP, "CIC Chip"); DEF_STR(RB_RELEASE_DATE, "Release Date"); DEF_STR(RB_GENRE, "Genre"); DEF_STR(RB_PLAYERS, "Players"); DEF_STR(RB_FORCE_FEEDBACK, "Force Feedback"); DEF_STR(RB_FILE_FORMAT, "File Format"); DEF_STR(RB_NAME, "Name"); // Select ROM DEF_STR(SELECT_ROM_DIR, "Select current ROM directory"); // Messages (TODO: GoodN64 is no longer maintained and perhaps should be replaced with references to something else?) DEF_STR(RB_NOT_GOOD_FILE, "Bad ROM? Use GoodN64 & check that the RDB is up-to-date."); /*** Options ***/ // Options title DEF_STR(OPTIONS_TITLE, "Configura&tion"); // Tabs DEF_STR(TAB_PLUGIN, "Plugins"); DEF_STR(TAB_DIRECTORY, "Directories"); DEF_STR(TAB_OPTIONS, "General settings"); DEF_STR(TAB_ROMSELECTION, "ROM browser"); DEF_STR(TAB_ADVANCED, "Advanced"); DEF_STR(TAB_ROMSETTINGS, "ROM settings"); DEF_STR(TAB_ROMNOTES, "Notes"); DEF_STR(TAB_SHORTCUTS, "Hotkeys"); DEF_STR(TAB_ROMSTATUS, "Status"); DEF_STR(TAB_RECOMPILER, "Recompiler"); DEF_STR(TAB_DEFAULTS, "Defaults"); DEF_STR(TAB_DISKDRIVE, "64DD"); DEF_STR(TAB_DISKSETTINGS, "64DD"); // Plugin dialog DEF_STR(PLUG_ABOUT, "About"); DEF_STR(PLUG_RSP, " RSP (Reality Signal Processor) plugin: "); DEF_STR(PLUG_GFX, " Video (graphics) plugin: "); DEF_STR(PLUG_AUDIO, " Audio (sound) plugin: "); DEF_STR(PLUG_CTRL, " Input (controller) plugin: "); DEF_STR(PLUG_HLE_GFX, "Graphics HLE"); DEF_STR(PLUG_HLE_AUDIO, "Audio HLE"); DEF_STR(PLUG_DEFAULT, "** Use System Plugin **"); // Directory dialog DEF_STR(DIR_PLUGIN, " Plugin directory: "); DEF_STR(DIR_ROM, " ROM directory: "); DEF_STR(DIR_AUTO_SAVE, " N64 native saves directory: "); DEF_STR(DIR_INSTANT_SAVE, " Saved states directory: "); DEF_STR(DIR_SCREEN_SHOT, " Screenshot directory: "); DEF_STR(DIR_ROM_DEFAULT, "Last folder that a ROM was open from"); DEF_STR(DIR_SELECT_PLUGIN, "Select plugin directory"); DEF_STR(DIR_SELECT_ROM, "Select ROM directory"); DEF_STR(DIR_SELECT_AUTO, "Select N64 native saves directory"); DEF_STR(DIR_SELECT_INSTANT, "Select saved states directory"); DEF_STR(DIR_SELECT_SCREEN, "Select screenshot directory"); DEF_STR(DIR_TEXTURE, " Texture pack directory: "); DEF_STR(DIR_SELECT_TEXTURE, "Select texture pack directory"); // Options (general) tab DEF_STR(OPTION_AUTO_SLEEP, "Pause emulation when window is not active"); DEF_STR(OPTION_AUTO_FULLSCREEN, "Enter full-screen mode when loading a ROM"); DEF_STR(OPTION_BASIC_MODE, "Hide advanced settings"); DEF_STR(OPTION_REMEMBER_CHEAT, "Remember selected cheats"); DEF_STR(OPTION_DISABLE_SS, "Disable screensaver when running a ROM"); DEF_STR(OPTION_DISPLAY_FR, "Display speed"); DEF_STR(OPTION_CHECK_RUNNING, "Check if Project64 is already running"); DEF_STR(OPTION_UNIQUE_SAVE_DIR, "Store game saves in separate folders"); DEF_STR(OPTION_CHANGE_FR, "Speed display:"); DEF_STR(OPTION_IPL_ROM_PATH, "Japanese retail 64DD IPL ROM path:"); DEF_STR(OPTION_IPL_ROM_USA_PATH, "American retail 64DD IPL ROM path:"); DEF_STR(OPTION_IPL_ROM_TOOL_PATH, "Development 64DD IPL ROM path:"); DEF_STR(OPTION_DISKSAVETYPE, "Disk save type:"); 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):"); DEF_STR(RB_ROMS, "ROMs"); DEF_STR(RB_MAX_DIRS, "Max # of ROM dirs remembered (0-10):"); DEF_STR(RB_DIRS, "dirs"); DEF_STR(RB_USE, "Use ROM browser"); DEF_STR(RB_DIR_RECURSION, "Use directory recursion"); DEF_STR(RB_FILEEXT, "Show file extensions"); DEF_STR(RB_AVALIABLE_FIELDS, "Available fields:"); DEF_STR(RB_SHOW_FIELDS, "Order of fields:"); DEF_STR(RB_ADD, "Add ->"); DEF_STR(RB_REMOVE, "<- Remove"); DEF_STR(RB_UP, "Up"); DEF_STR(RB_DOWN, "Down"); DEF_STR(RB_REFRESH, "Automatically refresh browser"); // Advanced options DEF_STR(ADVANCE_INFO, "Most of these changes will not take effect until a new ROM is opened or current ROM is reset."); DEF_STR(ADVANCE_DEFAULTS, "Core Defaults"); DEF_STR(ADVANCE_CPU_STYLE, "CPU core style:"); DEF_STR(ADVANCE_SMCM, "Self-mod methods:"); DEF_STR(ADVANCE_MEM_SIZE, "Default memory size:"); DEF_STR(ADVANCE_ABL, "Advanced block linking"); DEF_STR(ADVANCE_AUTO_START, "Start emulation when ROM is opened"); DEF_STR(ADVANCE_OVERWRITE, "Always override default settings with ones from RDB"); DEF_STR(ADVANCE_COMPRESS, "Automatically compress saved states"); DEF_STR(ADVANCE_DEBUGGER, "Enable debugger"); DEF_STR(ADVANCE_SMM_CACHE, "Cache"); DEF_STR(ADVANCE_SMM_PIDMA, "PI DMA"); 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:"); DEF_STR(ROM_VIREFRESH, "VI refresh rate:"); DEF_STR(ROM_MEM_SIZE, "Memory size:"); DEF_STR(ROM_ABL, "Advanced block linking"); DEF_STR(ROM_SAVE_TYPE, "Default save type:"); DEF_STR(ROM_COUNTER_FACTOR, "Counter factor:"); DEF_STR(ROM_LARGE_BUFFER, "Larger compile buffer"); DEF_STR(ROM_REG_CACHE, "Register caching"); DEF_STR(ROM_DELAY_SI, "Delay SI interrupt"); DEF_STR(ROM_FAST_SP, "Fast SP"); DEF_STR(ROM_DEFAULT, "Default"); DEF_STR(ROM_AUDIO_SIGNAL, "RSP audio signal"); DEF_STR(ROM_FIXED_AUDIO, "Fixed audio timing"); DEF_STR(ROM_FUNC_FIND, "Function lookup method:"); DEF_STR(ROM_CUSTOM_SMM, "Custom self-mod Method"); DEF_STR(ROM_SYNC_AUDIO, "Sync using audio"); DEF_STR(ROM_COUNTPERBYTE, "AI count per byte:"); DEF_STR(ROM_32BIT, "32-bit engine:"); DEF_STR(ROM_DELAY_DP, "Delay DP interrupt:"); DEF_STR(ROM_OVER_CLOCK_MODIFIER, "Overclock modifier:"); DEF_STR(ROM_UNALIGNED_DMA, "Unaligned DMA"); DEF_STR(ROM_RANDOMIZE_SIPI_INTERRUPTS, "Randomize SI/PI interrupts"); DEF_STR(ROM_DISK_SEEK_TIMING, "Disk seek timing:"); DEF_STR(ROM_DISK_SEEK_TIMING_TURBO, "Turbo"); DEF_STR(ROM_DISK_SEEK_TIMING_SLOW, "Slow"); DEF_STR(ROM_MEM_SIZE_KNOWN, "Memory size (Known):"); DEF_STR(ROM_MEM_SIZE_UNKNOWN, "Memory size (Unknown):"); DEF_STR(ROM_FPU_REG_CACHE, "FPU register caching"); // Core styles DEF_STR(CORE_INTERPTER, "Interpreter"); DEF_STR(CORE_RECOMPILER, "Recompiler"); DEF_STR(CORE_SYNC, "Synchronize cores"); // Self-mod methods DEF_STR(SMCM_NONE, "None"); DEF_STR(SMCM_CACHE, "Cache"); DEF_STR(SMCM_PROECTED, "Protect memory"); DEF_STR(SMCM_CHECK_MEM, "Check memory & cache"); DEF_STR(SMCM_CHANGE_MEM, "Change memory & cache"); DEF_STR(SMCM_CHECK_ADV, "Check memory advance"); DEF_STR(SMCM_CACHE2, "Clear code on cache"); // Function lookup method DEF_STR(FLM_PLOOKUP, "Physical lookup table"); DEF_STR(FLM_VLOOKUP, "Virtual lookup table"); DEF_STR(FLM_CHANGEMEM, "Change memory"); // RDRAM size DEF_STR(RDRAM_4MB, "4 MB"); DEF_STR(RDRAM_8MB, "8 MB"); // Advanced block linking DEF_STR(ABL_ON, "On"); DEF_STR(ABL_OFF, "Off"); // Save type DEF_STR(SAVE_FIRST_USED, "Use first-used save type"); DEF_STR(SAVE_4K_EEPROM, "4-kbit EEPROM"); DEF_STR(SAVE_16K_EEPROM, "16-kbit EEPROM"); DEF_STR(SAVE_SRAM, "SRAM"); DEF_STR(SAVE_FLASHRAM, "Flash RAM"); // ROM notes DEF_STR(NOTE_STATUS, "ROM status:"); DEF_STR(NOTE_CORE, "Core note:"); DEF_STR(NOTE_PLUGIN, "Plugin note:"); // Accelerator selector DEF_STR(ACCEL_CPUSTATE_TITLE, "CPU state:"); DEF_STR(ACCEL_MENUITEM_TITLE, "Menu item:"); DEF_STR(ACCEL_CURRENTKEYS_TITLE, "Current keys:"); DEF_STR(ACCEL_SELKEY_TITLE, "Select new shortcut key:"); DEF_STR(ACCEL_ASSIGNEDTO_TITLE, "Currently assigned to:"); DEF_STR(ACCEL_ASSIGN_BTN, "Assign"); DEF_STR(ACCEL_REMOVE_BTN, "Remove"); DEF_STR(ACCEL_RESETALL_BTN, "Reset all"); DEF_STR(ACCEL_CPUSTATE_1, "Game not playing"); DEF_STR(ACCEL_CPUSTATE_2, "Game playing"); DEF_STR(ACCEL_CPUSTATE_3, "Game playing (windowed)"); DEF_STR(ACCEL_CPUSTATE_4, "Game playing (full-screen)"); DEF_STR(ACCEL_DETECTKEY, "Detect Key"); // Framerate option DEF_STR(STR_FR_VIS, "Vertical interrupts per second"); DEF_STR(STR_FR_DLS, "Display lists per second"); DEF_STR(STR_FR_PERCENT, "Percentage of full speed"); DEF_STR(STR_FR_DLS_VIS, "VI/s & DL/s"); // Increase speed DEF_STR(STR_INSREASE_SPEED, "Increase Game Speed"); DEF_STR(STR_DECREASE_SPEED, "Decrease Game Speed"); // Bottom page buttons DEF_STR(BOTTOM_RESET_PAGE, "Reset Page"); DEF_STR(BOTTOM_RESET_ALL, "Reset All"); DEF_STR(BOTTOM_APPLY, "Apply"); DEF_STR(BOTTOM_CLOSE, "Close"); // Disk save type DEF_STR(DISKSAVE_SHADOW, "Full Disk Copy"); DEF_STR(DISKSAVE_RAM, "Save Area Only"); /*** ROM information ***/ // ROM info title DEF_STR(INFO_TITLE, "ROM Information"); // ROM info text DEF_STR(INFO_ROM_NAME_TEXT, "ROM name:"); DEF_STR(INFO_FILE_NAME_TEXT, "File name:"); DEF_STR(INFO_LOCATION_TEXT, "Location:"); DEF_STR(INFO_SIZE_TEXT, "ROM size:"); DEF_STR(INFO_CART_ID_TEXT, "Cartridge ID:"); DEF_STR(INFO_MEDIA_TEXT, "Media:"); DEF_STR(INFO_COUNTRY_TEXT, "Country:"); DEF_STR(INFO_CRC1_TEXT, "CRC1:"); DEF_STR(INFO_CRC2_TEXT, "CRC2:"); DEF_STR(INFO_CIC_CHIP_TEXT, "CIC chip:"); DEF_STR(INFO_MD5_TEXT, "MD5:"); /*** Cheats ***/ // Cheat list DEF_STR(CHEAT_TITLE, "Cheats"); DEF_STR(CHEAT_LIST_FRAME, "Cheats:"); DEF_STR(CHEAT_NOTES_FRAME, " Notes: "); DEF_STR(CHEAT_MARK_ALL, "Mark All"); DEF_STR(CHEAT_MARK_NONE, "Unmark All"); // Add cheat DEF_STR(CHEAT_ADDCHEAT_FRAME, "Add Cheat"); DEF_STR(CHEAT_ADDCHEAT_NAME, "Name:"); DEF_STR(CHEAT_ADDCHEAT_CODE, "Code:"); DEF_STR(CHEAT_ADDCHEAT_INSERT, "Insert"); DEF_STR(CHEAT_ADDCHEAT_CLEAR, "Clear"); DEF_STR(CHEAT_ADDCHEAT_NOTES, " Cheat Notes: "); DEF_STR(CHEAT_ADD_TO_DB, "Add to DB"); // Code extension DEF_STR(CHEAT_CODE_EXT_TITLE, "Code Extensions"); DEF_STR(CHEAT_CODE_EXT_TXT, "Please choose a value to be used for:"); DEF_STR(CHEAT_OK, "OK"); DEF_STR(CHEAT_CANCEL, "Cancel"); // Digital value DEF_STR(CHEAT_QUANTITY_TITLE, "Quantity Digit"); DEF_STR(CHEAT_CHOOSE_VALUE, "Please choose a value for:"); DEF_STR(CHEAT_VALUE, "&Value"); DEF_STR(CHEAT_FROM, "from"); DEF_STR(CHEAT_TO, "to"); DEF_STR(CHEAT_NOTES, "&Notes:"); DEF_STR(CHEAT_ADDCHEAT_ADD, "Add Cheat"); DEF_STR(CHEAT_ADDCHEAT_NEW, "New Cheat"); DEF_STR(CHEAT_ADDCHEAT_CODEDES, "
:"); DEF_STR(CHEAT_ADDCHEAT_OPT, "Options:"); DEF_STR(CHEAT_ADDCHEAT_OPTDES, "