From b0a8f727249c16cc5aa0e4bc2f58fcac345f8e67 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 22 Aug 2016 13:11:40 +0200 Subject: [PATCH] More translated strings --- intl/msg_hash_us.c | 10 +++++++++- msg_hash.h | 4 ++++ retroarch.c | 5 +++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/intl/msg_hash_us.c b/intl/msg_hash_us.c index 50ebc74998..c0af74f8f6 100644 --- a/intl/msg_hash_us.c +++ b/intl/msg_hash_us.c @@ -1866,7 +1866,11 @@ static const char *menu_hash_to_str_us_label_enum(enum msg_hash_enums msg) switch (msg) { - case MSG_VALUE_DISCONNECTING_DEVICE_FROM_PORT: + case MSG_CONNECT_DEVICE_FROM_A_VALID_PORT: + return "connect_device_from_a_valid_port"; + case MSG_DISCONNECT_DEVICE_FROM_A_VALID_PORT: + return "disconnect_device_from_a_valid_port"; + case MSG_DISCONNECTING_DEVICE_FROM_PORT: return "disconnecting_device_from_port"; case MSG_BRINGING_UP_COMMAND_INTERFACE_ON_PORT: return "bringing_up_command_interface_at_port"; @@ -2923,6 +2927,10 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg) switch (msg) { + case MSG_VALUE_CONNECT_DEVICE_FROM_A_VALID_PORT: + return "Connect device from a valid port."; + case MSG_VALUE_DISCONNECT_DEVICE_FROM_A_VALID_PORT: + return "Disconnect device from a valid port."; case MSG_VALUE_DISCONNECTING_DEVICE_FROM_PORT: return "Disconnecting device from port"; case MSG_VALUE_BRINGING_UP_COMMAND_INTERFACE_ON_PORT: diff --git a/msg_hash.h b/msg_hash.h index 5b3c4dac45..016a096e88 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -133,6 +133,10 @@ enum msg_hash_enums MSG_CANNOT_INFER_NEW_CONFIG_PATH, MSG_UNDID_LOAD_STATE, MSG_UNDID_SAVE_STATE, + MSG_CONNECT_DEVICE_FROM_A_VALID_PORT, + MSG_VALUE_CONNECT_DEVICE_FROM_A_VALID_PORT, + MSG_DISCONNECT_DEVICE_FROM_A_VALID_PORT, + MSG_VALUE_DISCONNECT_DEVICE_FROM_A_VALID_PORT, MSG_DISCONNECTING_DEVICE_FROM_PORT, MSG_VALUE_DISCONNECTING_DEVICE_FROM_PORT, MSG_BRINGING_UP_COMMAND_INTERFACE_ON_PORT, diff --git a/retroarch.c b/retroarch.c index 7e044c45ee..b080322017 100644 --- a/retroarch.c +++ b/retroarch.c @@ -767,7 +767,7 @@ static void retroarch_parse_input(int argc, char *argv[]) if (port < 1 || port > MAX_USERS) { - RARCH_ERR("Connect device to a valid port.\n"); + RARCH_ERR("%s\n", msg_hash_to_str(MSG_VALUE_CONNECT_DEVICE_FROM_A_VALID_PORT)); retroarch_print_help(argv[0]); retroarch_fail(1, "retroarch_parse_input()"); } @@ -813,7 +813,8 @@ static void retroarch_parse_input(int argc, char *argv[]) port = strtol(optarg, NULL, 0); if (port < 1 || port > MAX_USERS) { - RARCH_ERR("Disconnect device from a valid port.\n"); + RARCH_ERR("%s\n", + msg_hash_to_str(MSG_VALUE_DISCONNECT_DEVICE_FROM_A_VALID_PORT)); retroarch_print_help(argv[0]); retroarch_fail(1, "retroarch_parse_input()"); }