Make some more strings translatable

This commit is contained in:
twinaphex 2016-10-22 04:47:50 +02:00
parent e2de11a698
commit 9de0ebe859
3 changed files with 9 additions and 3 deletions

View File

@ -1914,6 +1914,8 @@ static const char *menu_hash_to_str_us_label_enum(enum msg_hash_enums msg)
switch (msg)
{
case MSG_GOT_CONNECTION_FROM:
return "Got connection from";
case MSG_SHUTTING_DOWN:
return "shutting_down";
case MSG_REBOOTING:

View File

@ -148,6 +148,7 @@ enum msg_hash_enums
MSG_VALUE_FOUND_LAST_STATE_SLOT,
MSG_RESTORED_OLD_SAVE_STATE,
MSG_NO_STATE_HAS_BEEN_LOADED_YET,
MSG_GOT_CONNECTION_FROM,
MSG_NO_SAVE_STATE_HAS_BEEN_OVERWRITTEN_YET,
MSG_CANNOT_INFER_NEW_CONFIG_PATH,
MSG_UNDID_LOAD_STATE,

View File

@ -987,14 +987,16 @@ void netplay_log_connection(const struct sockaddr_storage *their_addr,
if (str)
{
snprintf(msg, sizeof(msg), "Got connection from: \"%s (%s)\"",
snprintf(msg, sizeof(msg), "%s: \"%s (%s)\"",
msg_hash_to_str(MSG_GOT_CONNECTION_FROM),
nick, str);
runloop_msg_queue_push(msg, 1, 180, false);
RARCH_LOG("%s\n", msg);
}
else
{
snprintf(msg, sizeof(msg), "Got connection from: \"%s\"",
snprintf(msg, sizeof(msg), "%s: \"%s\"",
msg_hash_to_str(MSG_GOT_CONNECTION_FROM),
nick);
runloop_msg_queue_push(msg, 1, 180, false);
RARCH_LOG("%s\n", msg);
@ -1010,7 +1012,8 @@ void netplay_log_connection(const struct sockaddr_storage *their_addr,
msg[0] = '\0';
snprintf(msg, sizeof(msg), "Got connection from: \"%s\"",
snprintf(msg, sizeof(msg), "%s: \"%s\"",
msg_hash_to_str(MSG_GOT_CONNECTION_FROM),
nick);
runloop_msg_queue_push(msg, 1, 180, false);
RARCH_LOG("%s\n", msg);