From e9acbbdf9e0224a925429db96bf55a784b3073dc Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Sun, 12 Nov 2017 20:54:56 -0500 Subject: [PATCH] make some strings translatable and add JP translations --- configuration.c | 6 +++--- intl/msg_hash_ja.h | 12 ++++++++++-- intl/msg_hash_us.h | 6 ++++++ msg_hash.h | 3 +++ 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/configuration.c b/configuration.c index 272284602c..1f4c9a047b 100644 --- a/configuration.c +++ b/configuration.c @@ -2922,7 +2922,7 @@ bool config_load_override(void) /* Restore the libretro_path we're using * since it will be overwritten by the override when reloading. */ path_set(RARCH_PATH_CORE, buf); - runloop_msg_queue_push("Configuration override loaded.", 1, 100, true); + runloop_msg_queue_push(msg_hash_to_str(MSG_CONFIG_OVERRIDE_LOADED), 1, 100, true); /* Reset save paths. */ retroarch_override_setting_set(RARCH_OVERRIDE_SETTING_STATE_PATH, NULL); @@ -3039,7 +3039,7 @@ bool config_load_remap(void) RARCH_LOG("Remaps: game-specific remap found at %s.\n", game_path); if (input_remapping_load_file(new_conf, game_path)) { - runloop_msg_queue_push("Game remap file loaded.", 1, 100, true); + runloop_msg_queue_push(msg_hash_to_str(MSG_GAME_REMAP_FILE_LOADED), 1, 100, true); rarch_ctl(RARCH_CTL_SET_REMAPS_GAME_ACTIVE, NULL); goto success; } @@ -3059,7 +3059,7 @@ bool config_load_remap(void) RARCH_LOG("Remaps: core-specific remap found at %s.\n", core_path); if (input_remapping_load_file(new_conf, core_path)) { - runloop_msg_queue_push("Core remap file loaded.", 1, 100, true); + runloop_msg_queue_push(msg_hash_to_str(MSG_CORE_REMAP_FILE_LOADED), 1, 100, true); rarch_ctl(RARCH_CTL_SET_REMAPS_CORE_ACTIVE, NULL); goto success; } diff --git a/intl/msg_hash_ja.h b/intl/msg_hash_ja.h index 22371e5296..c99815da72 100644 --- a/intl/msg_hash_ja.h +++ b/intl/msg_hash_ja.h @@ -2160,7 +2160,7 @@ MSG_HASH(MSG_NO_STATE_HAS_BEEN_LOADED_YET, MSG_HASH(MSG_OVERRIDES_ERROR_SAVING, "Error saving overrides.") MSG_HASH(MSG_OVERRIDES_SAVED_SUCCESSFULLY, - "Overrides saved successfully.") + "優先ファイルを保存しました。") MSG_HASH(MSG_PAUSED, "一時停止。") MSG_HASH(MSG_PROGRAM, @@ -2180,7 +2180,9 @@ MSG_HASH(MSG_REDIRECTING_SAVEFILE_TO, MSG_HASH(MSG_REDIRECTING_SAVESTATE_TO, "Redirecting savestate to") MSG_HASH(MSG_REMAP_FILE_SAVED_SUCCESSFULLY, - "Remap file saved successfully.") + "リマップファイルを保存しました。") +MSG_HASH(MSG_REMAP_FILE_REMOVED_SUCCESSFULLY, + "リマップファイルを削除しました。") MSG_HASH(MSG_REMOVED_DISK_FROM_TRAY, "Removed disk from tray.") MSG_HASH(MSG_REMOVING_TEMPORARY_CONTENT_FILE, @@ -3189,3 +3191,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_COLOR_BLUE, "OSDメッセージの青色値") MSG_HASH(MENU_ENUM_LABEL_VALUE_FRAMECOUNT_SHOW, "フレームレート表示でフレーム数を表示") +MSG_HASH(MSG_CONFIG_OVERRIDE_LOADED, + "優先ファイルをロードしました。") +MSG_HASH(MSG_GAME_REMAP_FILE_LOADED, + "ゲームの優先ファイルをロードしました。") +MSG_HASH(MSG_CORE_REMAP_FILE_LOADED, + "コアの優先ファイルをロードしました。") diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index cf615043f0..7ba572c5ca 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -3263,3 +3263,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_COLOR_BLUE, "Onscreen Notification Blue Color") MSG_HASH(MENU_ENUM_LABEL_VALUE_FRAMECOUNT_SHOW, "Show frame count on FPS display") +MSG_HASH(MSG_CONFIG_OVERRIDE_LOADED, + "Configuration override loaded.") +MSG_HASH(MSG_GAME_REMAP_FILE_LOADED, + "Game remap file loaded.") +MSG_HASH(MSG_CORE_REMAP_FILE_LOADED, + "Core remap file loaded.") diff --git a/msg_hash.h b/msg_hash.h index b4eecdc70c..e15745a6b3 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -393,6 +393,9 @@ enum msg_hash_enums MSG_EXTRACTING, MSG_EXTRACTING_FILE, MSG_NO_CONTENT_STARTING_DUMMY_CORE, + MSG_CONFIG_OVERRIDE_LOADED, + MSG_GAME_REMAP_FILE_LOADED, + MSG_CORE_REMAP_FILE_LOADED, MENU_LABEL(ADD_TO_MIXER), MENU_LABEL(ADD_TO_MIXER_AND_COLLECTION),