From e7bccd7fc1d7d373a8b13c70e45c89fffb6c3151 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 25 Jun 2015 07:23:19 +0200 Subject: [PATCH] (Menu/intl) Add MENU_VALUE_PORT --- menu/intl/menu_hash_nl.c | 2 ++ menu/intl/menu_hash_us.c | 2 ++ menu/menu_hash.h | 2 +- menu/menu_setting.c | 5 ++++- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/menu/intl/menu_hash_nl.c b/menu/intl/menu_hash_nl.c index 7134be01f2..cbee7d2cd1 100644 --- a/menu/intl/menu_hash_nl.c +++ b/menu/intl/menu_hash_nl.c @@ -738,6 +738,8 @@ const char *menu_hash_to_str_nl(uint32_t hash) return "TERUG"; case MENU_VALUE_DISABLED: return "Uitgeschakeld"; + case MENU_VALUE_PORT: + return "Poort"; default: break; } diff --git a/menu/intl/menu_hash_us.c b/menu/intl/menu_hash_us.c index 47fda7f903..a9c5d69dce 100644 --- a/menu/intl/menu_hash_us.c +++ b/menu/intl/menu_hash_us.c @@ -1301,6 +1301,8 @@ const char *menu_hash_to_str_us(uint32_t hash) return "Screen Resolution"; case MENU_VALUE_DISABLED: return "Disabled"; + case MENU_VALUE_PORT: + return "Port"; default: break; } diff --git a/menu/menu_hash.h b/menu/menu_hash.h index 2c2dbc3940..75e1fb1ebd 100644 --- a/menu/menu_hash.h +++ b/menu/menu_hash.h @@ -900,7 +900,7 @@ extern "C" { #define MENU_VALUE_BACK 0x7c825df6U #define MENU_VALUE_DISABLED 0xe326e01dU - +#define MENU_VALUE_PORT 0x7c8ad52aU const char *menu_hash_to_str_de(uint32_t hash); diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 18566e9f10..0fb36ace4a 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -3013,7 +3013,10 @@ static void get_string_representation_bind_device(void * data, char *s, strlcpy(s, device_name, len); else snprintf(s, len, - "%s (port #%u)", menu_hash_to_str(MENU_VALUE_NOT_AVAILABLE), map); + "%s (%s #%u)", + menu_hash_to_str(MENU_VALUE_NOT_AVAILABLE), + menu_hash_to_str(MENU_VALUE_PORT), + map); } else strlcpy(s, menu_hash_to_str(MENU_VALUE_DISABLED), len);