mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Add more translatable strings
This commit is contained in:
parent
52db4d226a
commit
e4be1f53a3
@ -2098,6 +2098,16 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
|
||||
return "Error parsing arguments.";
|
||||
case MSG_ERROR:
|
||||
return "Error";
|
||||
case MSG_MEMORY:
|
||||
return "Memory";
|
||||
case MSG_IN_BYTES:
|
||||
return "in bytes";
|
||||
case MSG_IN_MEGABYTES:
|
||||
return "in megabytes";
|
||||
case MSG_IN_GIGABYTES:
|
||||
return "in gigabytes";
|
||||
case MSG_INTERFACE:
|
||||
return "Interface";
|
||||
case MSG_FAILED_TO_PATCH:
|
||||
return "Failed to patch";
|
||||
case MSG_CONTENT_PATCHED_SUCCESSFULLY_IN:
|
||||
|
@ -610,7 +610,8 @@ static int menu_displaylist_parse_network_info(menu_displaylist_info_t *info)
|
||||
for (k = 0; k < list->size; k++)
|
||||
{
|
||||
char tmp[PATH_MAX_LENGTH] = {0};
|
||||
snprintf(tmp, sizeof(tmp), "Interface (%s) : %s\n",
|
||||
snprintf(tmp, sizeof(tmp), "%s (%s) : %s\n",
|
||||
msg_hash_to_str(MSG_INTERFACE),
|
||||
list->entries[k].name, list->entries[k].host);
|
||||
menu_entries_add_enum(info->list, tmp, "",
|
||||
MSG_UNKNOWN, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
||||
@ -821,49 +822,67 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
snprintf(tmp, sizeof(tmp),
|
||||
"Memory (in bytes): %Iu/%Iu B",
|
||||
"%s %s: %Iu/%Iu B",
|
||||
msg_hash_to_str(MSG_MEMORY),
|
||||
msg_hash_to_str(MSG_IN_BYTES),
|
||||
memory_used,
|
||||
memory_total
|
||||
);
|
||||
snprintf(tmp2, sizeof(tmp2),
|
||||
"Memory (in megabytes): %Iu/%Iu MB",
|
||||
"%s %s: %Iu/%Iu MB",
|
||||
msg_hash_to_str(MSG_MEMORY),
|
||||
msg_hash_to_str(MSG_IN_MEGABYTES),
|
||||
bytes_to_mb(memory_used),
|
||||
bytes_to_mb(memory_total)
|
||||
);
|
||||
snprintf(tmp3, sizeof(tmp3),
|
||||
"Memory (in gigabytes): %Iu/%Iu GB",
|
||||
"%s %s: %Iu/%Iu GB",
|
||||
msg_hash_to_str(MSG_MEMORY),
|
||||
msg_hash_to_str(MSG_IN_GIGABYTES),
|
||||
bytes_to_gb(memory_used),
|
||||
bytes_to_gb(memory_total)
|
||||
);
|
||||
#elif defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L
|
||||
snprintf(tmp, sizeof(tmp),
|
||||
"Memory (in bytes) : %llu/%llu B",
|
||||
"%s %s : %llu/%llu B",
|
||||
msg_hash_to_str(MSG_MEMORY),
|
||||
msg_hash_to_str(MSG_IN_BYTES),
|
||||
(unsigned long long)memory_used,
|
||||
(unsigned long long)memory_total
|
||||
);
|
||||
snprintf(tmp2, sizeof(tmp2),
|
||||
"Memory (in megabytes) : %llu/%llu MB",
|
||||
"%s %s : %llu/%llu MB",
|
||||
msg_hash_to_str(MSG_MEMORY),
|
||||
msg_hash_to_str(MSG_IN_MEGABYTES),
|
||||
(unsigned long long)bytes_to_mb(memory_used),
|
||||
(unsigned long long)bytes_to_mb(memory_total)
|
||||
);
|
||||
snprintf(tmp3, sizeof(tmp3),
|
||||
"Memory (in gigabytes): %llu/%llu GB",
|
||||
"%s %s: %llu/%llu GB",
|
||||
msg_hash_to_str(MSG_MEMORY),
|
||||
msg_hash_to_str(MSG_IN_GIGABYTES),
|
||||
(unsigned long long)bytes_to_gb(memory_used),
|
||||
(unsigned long long)bytes_to_gb(memory_total)
|
||||
);
|
||||
#else
|
||||
snprintf(tmp, sizeof(tmp),
|
||||
"Memory (in bytes): %lu/%lu B",
|
||||
"%s %s: %lu/%lu B",
|
||||
msg_hash_to_str(MSG_MEMORY),
|
||||
msg_hash_to_str(MSG_IN_BYTES),
|
||||
memory_used,
|
||||
memory_total
|
||||
);
|
||||
snprintf(tmp2, sizeof(tmp2),
|
||||
"Memory (in megabytes) : %lu/%lu MB",
|
||||
"%s %s : %lu/%lu MB",
|
||||
msg_hash_to_str(MSG_MEMORY),
|
||||
msg_hash_to_str(MSG_IN_MEGABYTES),
|
||||
bytes_to_mb(memory_used),
|
||||
bytes_to_mb(memory_total)
|
||||
);
|
||||
snprintf(tmp3, sizeof(tmp3),
|
||||
"Memory (in gigabytes) : %lu/%lu GB",
|
||||
"%s %s : %lu/%lu GB",
|
||||
msg_hash_to_str(MSG_MEMORY),
|
||||
msg_hash_to_str(MSG_IN_GIGABYTES),
|
||||
bytes_to_gb(memory_used),
|
||||
bytes_to_gb(memory_total)
|
||||
);
|
||||
|
@ -765,7 +765,11 @@ enum msg_hash_enums
|
||||
MENU_ENUM_LABEL_NO_SHADER_PARAMETERS,
|
||||
MENU_ENUM_LABEL_VALUE_NO_ITEMS,
|
||||
|
||||
|
||||
MSG_INTERFACE,
|
||||
MSG_MEMORY,
|
||||
MSG_IN_BYTES,
|
||||
MSG_IN_MEGABYTES,
|
||||
MSG_IN_GIGABYTES,
|
||||
|
||||
MENU_ENUM_LABEL_ARCHIVE_MODE,
|
||||
MENU_ENUM_LABEL_VALUE_ARCHIVE_MODE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user