From 32c4f74f7d567f3360489f7542c4d74efff74843 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 20 Jun 2016 04:23:00 +0200 Subject: [PATCH] More translatable strings --- core_impl.c | 8 ++++++-- core_info.c | 2 +- intl/msg_hash_us.c | 4 ++++ msg_hash.h | 2 ++ 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/core_impl.c b/core_impl.c index 51cca53350..07cf7a99d0 100644 --- a/core_impl.c +++ b/core_impl.c @@ -378,8 +378,12 @@ bool core_load(void) bool core_verify_api_version(void) { unsigned api_version = core.retro_api_version(); - RARCH_LOG("Version of libretro API: %u\n", api_version); - RARCH_LOG("Compiled against API: %u\n", RETRO_API_VERSION); + RARCH_LOG("%s: %u\n", + msg_hash_to_str(MSG_VERSION_OF_LIBRETRO_API), + api_version); + RARCH_LOG("%s: %u\n", + msg_hash_to_str(MSG_COMPILED_AGAINST_API), + RETRO_API_VERSION); if (api_version != RETRO_API_VERSION) { diff --git a/core_info.c b/core_info.c index 42389247db..c35ac5598b 100644 --- a/core_info.c +++ b/core_info.c @@ -103,7 +103,7 @@ static void core_info_list_resolve_all_firmware( snprintf(path_key, sizeof(path_key), "firmware%u_path", c); snprintf(desc_key, sizeof(desc_key), "firmware%u_desc", c); - snprintf(opt_key, sizeof(opt_key), "firmware%u_opt", c); + snprintf(opt_key, sizeof(opt_key), "firmware%u_opt", c); config_get_string(config, path_key, &info->firmware[c].path); config_get_string(config, desc_key, &info->firmware[c].desc); diff --git a/intl/msg_hash_us.c b/intl/msg_hash_us.c index c5ac114148..ad50fe9302 100644 --- a/intl/msg_hash_us.c +++ b/intl/msg_hash_us.c @@ -1980,6 +1980,10 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg) return "Frontend for libretro"; case MSG_LOADING: return "Loading"; + case MSG_VERSION_OF_LIBRETRO_API: + return "Version of libretro API"; + case MSG_COMPILED_AGAINST_API: + return "Compiled against API"; case MSG_FAILED_TO_LOAD: return "Failed to load"; case MSG_ERROR_LIBRETRO_CORE_REQUIRES_CONTENT: diff --git a/msg_hash.h b/msg_hash.h index ea6ac42a01..419d3b1d35 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -30,6 +30,8 @@ enum msg_hash_enums MSG_LIBRETRO_FRONTEND, MSG_LOADING, MSG_FAILED_TO_LOAD, + MSG_VERSION_OF_LIBRETRO_API, + MSG_COMPILED_AGAINST_API, MSG_ERROR_LIBRETRO_CORE_REQUIRES_SPECIAL_CONTENT, MSG_ERROR_LIBRETRO_CORE_REQUIRES_CONTENT, MSG_CONTENT_LOADING_SKIPPED_IMPLEMENTATION_WILL_DO_IT,