mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
Add more translatable strings
This commit is contained in:
parent
05d409b6ca
commit
46f3e1878e
@ -1,3 +1,11 @@
|
||||
MSG_HASH(
|
||||
MSG_COMPILER,
|
||||
"Compiler"
|
||||
)
|
||||
MSG_HASH(
|
||||
MSG_UNKNOWN_COMPILER,
|
||||
"Unknown compiler"
|
||||
)
|
||||
MSG_HASH(
|
||||
MSG_DEVICE_DISCONNECTED_FROM_PORT,
|
||||
"Device disconnected from port"
|
||||
@ -14,6 +22,10 @@ MSG_HASH(
|
||||
MSG_GOT_CONNECTION_FROM,
|
||||
"Got connection from"
|
||||
)
|
||||
MSG_HASH(
|
||||
MSG_NO_ARGUMENTS_SUPPLIED_AND_NO_MENU_BUILTIN,
|
||||
"No arguments supplied and no menu builtin, displaying help..."
|
||||
)
|
||||
MSG_HASH(
|
||||
MSG_NETPLAY_USERS_HAS_FLIPPED,
|
||||
"Netplay users has flipped"
|
||||
@ -50,6 +62,10 @@ MSG_HASH(
|
||||
MSG_AUTOLOADING_SAVESTATE_FROM,
|
||||
"Auto-loading savestate from"
|
||||
)
|
||||
MSG_HASH(
|
||||
MSG_CAPABILITIES,
|
||||
"Capabilities"
|
||||
)
|
||||
MSG_HASH(
|
||||
MSG_CONNECTING_TO_NETPLAY_HOST,
|
||||
"Connecting to netplay host"
|
||||
|
@ -138,9 +138,13 @@ enum msg_hash_enums
|
||||
MSG_AUTODETECT,
|
||||
MSG_AUDIO_VOLUME,
|
||||
MSG_LIBRETRO_FRONTEND,
|
||||
MSG_CAPABILITIES,
|
||||
MSG_DEVICE_CONFIGURED_IN_PORT,
|
||||
MSG_DEVICE_NOT_CONFIGURED,
|
||||
MSG_DEVICE_DISCONNECTED_FROM_PORT,
|
||||
MSG_NO_ARGUMENTS_SUPPLIED_AND_NO_MENU_BUILTIN,
|
||||
MSG_COMPILER,
|
||||
MSG_UNKNOWN_COMPILER,
|
||||
MSG_FAILED,
|
||||
MSG_SUCCEEDED,
|
||||
MSG_LOADING,
|
||||
|
23
retroarch.c
23
retroarch.c
@ -499,7 +499,7 @@ static void retroarch_parse_input(int argc, char *argv[])
|
||||
#ifndef HAVE_MENU
|
||||
if (argc == 1)
|
||||
{
|
||||
printf("No arguments supplied and no menu builtin, displaying help...\n");
|
||||
printf("%s\n", msg_hash_to_str(MSG_NO_ARGUMENTS_SUPPLIED_AND_NO_MENU_BUILTIN));
|
||||
retroarch_print_help(argv[0]);
|
||||
exit(0);
|
||||
}
|
||||
@ -1032,7 +1032,7 @@ bool retroarch_main_init(int argc, char *argv[])
|
||||
|
||||
RARCH_LOG_OUTPUT("=== Build =======================================\n");
|
||||
retroarch_get_capabilities(RARCH_CAPABILITIES_CPU, str, sizeof(str));
|
||||
fprintf(stderr, "Capabilities: %s\n", str);
|
||||
fprintf(stderr, "%s: %s\n", msg_hash_to_str(MSG_CAPABILITIES), str);
|
||||
fprintf(stderr, "Built: %s\n", __DATE__);
|
||||
RARCH_LOG_OUTPUT("Version: %s\n", PACKAGE_VERSION);
|
||||
#ifdef HAVE_GIT_VERSION
|
||||
@ -1573,24 +1573,31 @@ int retroarch_get_capabilities(enum rarch_capabilities type,
|
||||
break;
|
||||
case RARCH_CAPABILITIES_COMPILER:
|
||||
#if defined(_MSC_VER)
|
||||
snprintf(s, len, "Compiler: MSVC (%d) %u-bit", _MSC_VER, (unsigned)
|
||||
snprintf(s, len, "%s: MSVC (%d) %u-bit",
|
||||
msg_hash_to_str(MSG_COMPILER),
|
||||
_MSC_VER, (unsigned)
|
||||
(CHAR_BIT * sizeof(size_t)));
|
||||
#elif defined(__SNC__)
|
||||
snprintf(s, len, "Compiler: SNC (%d) %u-bit",
|
||||
snprintf(s, len, "%s: SNC (%d) %u-bit",
|
||||
msg_hash_to_str(MSG_COMPILER),
|
||||
__SN_VER__, (unsigned)(CHAR_BIT * sizeof(size_t)));
|
||||
#elif defined(_WIN32) && defined(__GNUC__)
|
||||
snprintf(s, len, "Compiler: MinGW (%d.%d.%d) %u-bit",
|
||||
snprintf(s, len, "%s: MinGW (%d.%d.%d) %u-bit",
|
||||
msg_hash_to_str(MSG_COMPILER),
|
||||
__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__, (unsigned)
|
||||
(CHAR_BIT * sizeof(size_t)));
|
||||
#elif defined(__clang__)
|
||||
snprintf(s, len, "Compiler: Clang/LLVM (%s) %u-bit",
|
||||
snprintf(s, len, "%s: Clang/LLVM (%s) %u-bit",
|
||||
msg_hash_to_str(MSG_COMPILER),
|
||||
__clang_version__, (unsigned)(CHAR_BIT * sizeof(size_t)));
|
||||
#elif defined(__GNUC__)
|
||||
snprintf(s, len, "Compiler: GCC (%d.%d.%d) %u-bit",
|
||||
snprintf(s, len, "%s: GCC (%d.%d.%d) %u-bit",
|
||||
msg_hash_to_str(MSG_COMPILER),
|
||||
__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__, (unsigned)
|
||||
(CHAR_BIT * sizeof(size_t)));
|
||||
#else
|
||||
snprintf(s, len, "Unknown compiler %u-bit",
|
||||
snprintf(s, len, "%s %u-bit",
|
||||
msg_hash_to_str(MSG_UNKNOWN_COMPILER),
|
||||
(unsigned)(CHAR_BIT * sizeof(size_t)));
|
||||
#endif
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user