mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Start refactoring internationalization code
This commit is contained in:
parent
45a225b1b1
commit
aa31f5e073
@ -2988,6 +2988,8 @@ static const char *menu_hash_to_str_us_label_enum(enum msg_hash_enums msg)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define MSG_HASH(Id, org, str) case Id: return str;
|
||||
|
||||
const char *msg_hash_to_str_us(enum msg_hash_enums msg)
|
||||
{
|
||||
#ifdef HAVE_MENU
|
||||
@ -2999,28 +3001,7 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
|
||||
|
||||
switch (msg)
|
||||
{
|
||||
case MSG_DEVICE_DISCONNECTED_FROM_PORT:
|
||||
return "Device disconnected from port";
|
||||
case MSG_UNKNOWN_NETPLAY_COMMAND_RECEIVED:
|
||||
return "Unknown netplay command received";
|
||||
case MSG_FILE_ALREADY_EXISTS_SAVING_TO_BACKUP_BUFFER:
|
||||
return "File already exists. Saving to backup buffer";
|
||||
case MSG_GOT_CONNECTION_FROM:
|
||||
return "Got connection from";
|
||||
case MSG_NETPLAY_USERS_HAS_FLIPPED:
|
||||
return "Netplay users has flipped";
|
||||
case MSG_SETTING_DISK_IN_TRAY:
|
||||
return "Setting disk in tray";
|
||||
case MSG_WAITING_FOR_CLIENT:
|
||||
return "Waiting for client ...";
|
||||
case MENU_ENUM_SUBLABEL_MENU_SETTINGS:
|
||||
return "Adjusts settings related to the appearance of the menu screen.";
|
||||
case MENU_ENUM_SUBLABEL_VIDEO_HARD_SYNC:
|
||||
return "Hard-synchronize the CPU and GPU. Reduces latency at the cost of performance.";
|
||||
case MENU_ENUM_SUBLABEL_VIDEO_THREADED:
|
||||
return "Improves performance at the cost of latency and more video stuttering. Use only if you cannot obtain full speed otherwise.";
|
||||
case MSG_AUDIO_VOLUME:
|
||||
return "Audio volume";
|
||||
#include "msg_hash_us.h"
|
||||
case MSG_AUTODETECT:
|
||||
return "Autodetect";
|
||||
case MSG_AUTOLOADING_SAVESTATE_FROM:
|
||||
@ -4826,3 +4807,5 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
|
||||
|
||||
return "null";
|
||||
}
|
||||
|
||||
#undef MSG_HASH
|
||||
|
55
intl/msg_hash_us.h
Normal file
55
intl/msg_hash_us.h
Normal file
@ -0,0 +1,55 @@
|
||||
MSG_HASH(
|
||||
MSG_DEVICE_DISCONNECTED_FROM_PORT,
|
||||
"Device disconnected from port",
|
||||
"Device disconnected from port"
|
||||
)
|
||||
MSG_HASH(
|
||||
MSG_UNKNOWN_NETPLAY_COMMAND_RECEIVED,
|
||||
"Unknown netplay command received",
|
||||
"Unknown netplay command received"
|
||||
)
|
||||
MSG_HASH(
|
||||
MSG_FILE_ALREADY_EXISTS_SAVING_TO_BACKUP_BUFFER,
|
||||
"File already exists. Saving to backup buffer",
|
||||
"File already exists. Saving to backup buffer"
|
||||
)
|
||||
MSG_HASH(
|
||||
MSG_GOT_CONNECTION_FROM,
|
||||
"Got connection from",
|
||||
"Got connection from"
|
||||
)
|
||||
MSG_HASH(
|
||||
MSG_NETPLAY_USERS_HAS_FLIPPED,
|
||||
"Netplay users has flipped",
|
||||
"Netplay users has flipped"
|
||||
)
|
||||
MSG_HASH(
|
||||
MSG_SETTING_DISK_IN_TRAY,
|
||||
"Setting disk in tray",
|
||||
"Setting disk in tray"
|
||||
)
|
||||
MSG_HASH(
|
||||
MSG_WAITING_FOR_CLIENT,
|
||||
"Waiting for client ...",
|
||||
"Waiting for client ..."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_MENU_SETTINGS,
|
||||
"Adjusts settings related to the appearance of the menu screen.",
|
||||
"Adjusts settings related to the appearance of the menu screen."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_VIDEO_HARD_SYNC,
|
||||
"Hard-synchronize the CPU and GPU. Reduces latency at the cost of performance.",
|
||||
"Hard-synchronize the CPU and GPU. Reduces latency at the cost of performance."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_VIDEO_THREADED,
|
||||
"Improves performance at the cost of latency and more video stuttering. Use only if you cannot obtain full speed otherwise.",
|
||||
"Improves performance at the cost of latency and more video stuttering. Use only if you cannot obtain full speed otherwise."
|
||||
)
|
||||
MSG_HASH(
|
||||
MSG_AUDIO_VOLUME,
|
||||
"Audio volume",
|
||||
"Audio volume"
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user