From d6975325d9255944f4b09de1370b93961c19b3f9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 27 Jun 2016 07:28:07 +0200 Subject: [PATCH] Create more menu message string translations --- intl/msg_hash_us.c | 8 ++++++++ menu/menu_displaylist.c | 12 ++++++++---- msg_hash.h | 4 ++++ 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/intl/msg_hash_us.c b/intl/msg_hash_us.c index 3c3406a9f6..719d03fd7d 100644 --- a/intl/msg_hash_us.c +++ b/intl/msg_hash_us.c @@ -2001,6 +2001,14 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg) return "Compiled against API"; case MSG_FAILED_TO_LOAD: return "Failed to load"; + case MENU_ENUM_LABEL_VALUE_RDB_ENTRY_EDGE_MAGAZINE_ISSUE: + return "Edge Magazine Issue"; + case MENU_ENUM_LABEL_VALUE_RDB_ENTRY_BBFC_RATING: + return "BBFC Rating"; + case MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ESRB_RATING: + return "ESRB Rating"; + case MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CERO_RATING: + return "CERO Rating"; case MENU_ENUM_LABEL_VALUE_VIDEO_MAX_SWAPCHAIN_IMAGES: return "Max swapchain images"; case MSG_ERROR_LIBRETRO_CORE_REQUIRES_CONTENT: diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 67111d10b6..71401dbfdf 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -1947,7 +1947,8 @@ static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info) } if (db_info_entry->edge_magazine_issue) { - if (create_string_list_rdb_entry_int("Edge Magazine Issue", + if (create_string_list_rdb_entry_int( + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_EDGE_MAGAZINE_ISSUE), msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_EDGE_MAGAZINE_ISSUE), db_info_entry->edge_magazine_issue, info->path, info->list) == -1) @@ -1974,14 +1975,16 @@ static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info) } if (db_info_entry->bbfc_rating) { - if (create_string_list_rdb_entry_string("BBFC Rating", + if (create_string_list_rdb_entry_string( + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_BBFC_RATING), msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_BBFC_RATING), db_info_entry->bbfc_rating, info->path, info->list) == -1) goto error; } if (db_info_entry->esrb_rating) { - if (create_string_list_rdb_entry_string("ESRB Rating", + if (create_string_list_rdb_entry_string( + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ESRB_RATING), msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_ESRB_RATING), db_info_entry->esrb_rating, info->path, info->list) == -1) goto error; @@ -2009,7 +2012,8 @@ static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info) } if (db_info_entry->cero_rating) { - if (create_string_list_rdb_entry_string("CERO Rating", + if (create_string_list_rdb_entry_string( + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CERO_RATING), msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_CERO_RATING), db_info_entry->cero_rating, info->path, info->list) == -1) goto error; diff --git a/msg_hash.h b/msg_hash.h index 894444cc47..3ff5d5c7b7 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -981,12 +981,16 @@ enum msg_hash_enums MENU_ENUM_LABEL_RDB_ENTRY_DEVELOPER, MENU_ENUM_LABEL_RDB_ENTRY_NAME, MENU_ENUM_LABEL_RDB_ENTRY_PUBLISHER, + MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ESRB_RATING, MENU_ENUM_LABEL_RDB_ENTRY_ESRB_RATING, + MENU_ENUM_LABEL_VALUE_RDB_ENTRY_BBFC_RATING, MENU_ENUM_LABEL_RDB_ENTRY_BBFC_RATING, MENU_ENUM_LABEL_RDB_ENTRY_ELSPA_RATING, MENU_ENUM_LABEL_RDB_ENTRY_PEGI_RATING, + MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CERO_RATING, MENU_ENUM_LABEL_RDB_ENTRY_CERO_RATING, MENU_ENUM_LABEL_RDB_ENTRY_EDGE_MAGAZINE_RATING, + MENU_ENUM_LABEL_VALUE_RDB_ENTRY_EDGE_MAGAZINE_ISSUE, MENU_ENUM_LABEL_RDB_ENTRY_EDGE_MAGAZINE_ISSUE, MENU_ENUM_LABEL_RDB_ENTRY_EDGE_MAGAZINE_REVIEW, MENU_ENUM_LABEL_RDB_ENTRY_FAMITSU_MAGAZINE_RATING,