mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
All Netplay menu options are now internationalizable.
This commit is contained in:
parent
eb86bafece
commit
5dba982cae
@ -1600,6 +1600,18 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
|
|||||||
snprintf(s, len,
|
snprintf(s, len,
|
||||||
"Shows current core inside menu.");
|
"Shows current core inside menu.");
|
||||||
break;
|
break;
|
||||||
|
case MENU_ENUM_LABEL_NETPLAY_ENABLE_HOST:
|
||||||
|
snprintf(s, len,
|
||||||
|
"Enables Netplay in host (server) mode.");
|
||||||
|
break;
|
||||||
|
case MENU_ENUM_LABEL_NETPLAY_ENABLE_CLIENT:
|
||||||
|
snprintf(s, len,
|
||||||
|
"Enables Netplay in client mode.");
|
||||||
|
break;
|
||||||
|
case MENU_ENUM_LABEL_NETPLAY_DISCONNECT:
|
||||||
|
snprintf(s, len,
|
||||||
|
"Disconnects an active Netplay connection.");
|
||||||
|
break;
|
||||||
case MENU_ENUM_LABEL_DYNAMIC_WALLPAPER:
|
case MENU_ENUM_LABEL_DYNAMIC_WALLPAPER:
|
||||||
snprintf(s, len,
|
snprintf(s, len,
|
||||||
"Dynamically load a new wallpaper \n"
|
"Dynamically load a new wallpaper \n"
|
||||||
@ -2470,6 +2482,12 @@ static const char *menu_hash_to_str_us_label_enum(enum msg_hash_enums msg)
|
|||||||
return "menu_pointer_enable";
|
return "menu_pointer_enable";
|
||||||
case MENU_ENUM_LABEL_CORE_ENABLE:
|
case MENU_ENUM_LABEL_CORE_ENABLE:
|
||||||
return "menu_core_enable";
|
return "menu_core_enable";
|
||||||
|
case MENU_ENUM_LABEL_NETPLAY_ENABLE_HOST:
|
||||||
|
return "menu_netplay_enable_host";
|
||||||
|
case MENU_ENUM_LABEL_NETPLAY_ENABLE_CLIENT:
|
||||||
|
return "menu_netplay_enable_client";
|
||||||
|
case MENU_ENUM_LABEL_NETPLAY_DISCONNECT:
|
||||||
|
return "menu_netplay_disconnect";
|
||||||
case MENU_ENUM_LABEL_DPI_OVERRIDE_ENABLE:
|
case MENU_ENUM_LABEL_DPI_OVERRIDE_ENABLE:
|
||||||
return "dpi_override_enable";
|
return "dpi_override_enable";
|
||||||
case MENU_ENUM_LABEL_DPI_OVERRIDE_VALUE:
|
case MENU_ENUM_LABEL_DPI_OVERRIDE_VALUE:
|
||||||
@ -3799,6 +3817,12 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
|
|||||||
return "Touch Support";
|
return "Touch Support";
|
||||||
case MENU_ENUM_LABEL_VALUE_CORE_ENABLE:
|
case MENU_ENUM_LABEL_VALUE_CORE_ENABLE:
|
||||||
return "Display core name";
|
return "Display core name";
|
||||||
|
case MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE_HOST:
|
||||||
|
return "Start hosting";
|
||||||
|
case MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE_CLIENT:
|
||||||
|
return "Connect to Netplay host";
|
||||||
|
case MENU_ENUM_LABEL_VALUE_NETPLAY_DISCONNECT:
|
||||||
|
return "Disconnect";
|
||||||
case MENU_ENUM_LABEL_VALUE_DPI_OVERRIDE_ENABLE:
|
case MENU_ENUM_LABEL_VALUE_DPI_OVERRIDE_ENABLE:
|
||||||
return "DPI Override Enable";
|
return "DPI Override Enable";
|
||||||
case MENU_ENUM_LABEL_VALUE_DPI_OVERRIDE_VALUE:
|
case MENU_ENUM_LABEL_VALUE_DPI_OVERRIDE_VALUE:
|
||||||
|
@ -1505,20 +1505,20 @@ static int menu_displaylist_parse_netplay(
|
|||||||
{
|
{
|
||||||
#ifdef HAVE_NETPLAY
|
#ifdef HAVE_NETPLAY
|
||||||
menu_entries_append_enum(info->list,
|
menu_entries_append_enum(info->list,
|
||||||
"Start hosting" /* FIXME */,
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE_HOST),
|
||||||
"enable_netplay_host" /* FIXME */,
|
msg_hash_to_str(MENU_ENUM_LABEL_NETPLAY_ENABLE_HOST),
|
||||||
MENU_ENUM_LABEL_NETPLAY_ENABLE_HOST,
|
MENU_ENUM_LABEL_NETPLAY_ENABLE_HOST,
|
||||||
MENU_SETTING_ACTION, 0, 0);
|
MENU_SETTING_ACTION, 0, 0);
|
||||||
|
|
||||||
menu_entries_append_enum(info->list,
|
menu_entries_append_enum(info->list,
|
||||||
"Connect to Netplay host" /* FIXME */,
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE_CLIENT),
|
||||||
"enable_netplay_client" /* FIXME */,
|
msg_hash_to_str(MENU_ENUM_LABEL_NETPLAY_ENABLE_CLIENT),
|
||||||
MENU_ENUM_LABEL_NETPLAY_ENABLE_CLIENT,
|
MENU_ENUM_LABEL_NETPLAY_ENABLE_CLIENT,
|
||||||
MENU_SETTING_ACTION, 0, 0);
|
MENU_SETTING_ACTION, 0, 0);
|
||||||
|
|
||||||
menu_entries_append_enum(info->list,
|
menu_entries_append_enum(info->list,
|
||||||
"Disconnect" /* FIXME */,
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_DISCONNECT),
|
||||||
"disconnect_netplay" /* FIXME */,
|
msg_hash_to_str(MENU_ENUM_LABEL_NETPLAY_DISCONNECT),
|
||||||
MENU_ENUM_LABEL_NETPLAY_DISCONNECT,
|
MENU_ENUM_LABEL_NETPLAY_DISCONNECT,
|
||||||
MENU_SETTING_ACTION, 0, 0);
|
MENU_SETTING_ACTION, 0, 0);
|
||||||
|
|
||||||
|
@ -961,8 +961,11 @@ enum msg_hash_enums
|
|||||||
|
|
||||||
/* Netplay */
|
/* Netplay */
|
||||||
MENU_ENUM_LABEL_NETPLAY_ENABLE_HOST,
|
MENU_ENUM_LABEL_NETPLAY_ENABLE_HOST,
|
||||||
|
MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE_HOST,
|
||||||
MENU_ENUM_LABEL_NETPLAY_ENABLE_CLIENT,
|
MENU_ENUM_LABEL_NETPLAY_ENABLE_CLIENT,
|
||||||
|
MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE_CLIENT,
|
||||||
MENU_ENUM_LABEL_NETPLAY_DISCONNECT,
|
MENU_ENUM_LABEL_NETPLAY_DISCONNECT,
|
||||||
|
MENU_ENUM_LABEL_VALUE_NETPLAY_DISCONNECT,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user