mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
Add more translatable strings
This commit is contained in:
parent
0d2d24a619
commit
dbb6c156b3
@ -155,7 +155,11 @@ static void event_save_files(void)
|
||||
{
|
||||
unsigned type = global->savefiles->elems[i].attr.i;
|
||||
const char *path = global->savefiles->elems[i].data;
|
||||
RARCH_LOG("Saving RAM type #%u to \"%s\".\n", type, path);
|
||||
RARCH_LOG("%s #%u %s \"%s\".\n",
|
||||
msg_hash_to_str(MSG_SAVING_RAM_TYPE),
|
||||
type,
|
||||
msg_hash_to_str(MSG_TO),
|
||||
path);
|
||||
save_ram_file(path, type);
|
||||
}
|
||||
}
|
||||
@ -228,13 +232,16 @@ static void event_disk_control_set_eject(bool new_state, bool print_log)
|
||||
*msg = '\0';
|
||||
|
||||
if (control->set_eject_state(new_state))
|
||||
snprintf(msg, sizeof(msg), "%s virtual disk tray.",
|
||||
new_state ? "Ejected" : "Closed");
|
||||
snprintf(msg, sizeof(msg), "%s %s",
|
||||
new_state ? "Ejected" : "Closed",
|
||||
msg_hash_to_str(MSG_VIRTUAL_DISK_TRAY));
|
||||
else
|
||||
{
|
||||
error = true;
|
||||
snprintf(msg, sizeof(msg), "Failed to %s virtual disk tray.",
|
||||
new_state ? "eject" : "close");
|
||||
snprintf(msg, sizeof(msg), "%s %s %s",
|
||||
msg_hash_to_str(MSG_FAILED_TO),
|
||||
new_state ? "eject" : "close",
|
||||
msg_hash_to_str(MSG_VIRTUAL_DISK_TRAY));
|
||||
}
|
||||
|
||||
if (*msg)
|
||||
|
@ -20,6 +20,14 @@ const char *msg_hash_to_str_us(uint32_t hash)
|
||||
{
|
||||
switch (hash)
|
||||
{
|
||||
case MSG_VIRTUAL_DISK_TRAY:
|
||||
return "virtual disk tray.";
|
||||
case MSG_FAILED_TO:
|
||||
return "Failed to";
|
||||
case MSG_TO:
|
||||
return "to";
|
||||
case MSG_SAVING_RAM_TYPE:
|
||||
return "Saving RAM type";
|
||||
case MSG_FAILED_TO_LOAD_MOVIE_FILE:
|
||||
return "Failed to load movie file";
|
||||
case MSG_GRAB_MOUSE_STATE:
|
||||
|
@ -83,6 +83,14 @@
|
||||
|
||||
#define MSG_FAILED_TO_LOAD_MOVIE_FILE 0x9455a5a9U
|
||||
|
||||
#define MSG_FAILED_TO 0x768f6dacU
|
||||
|
||||
#define MSG_SAVING_RAM_TYPE 0x9cd21d2dU
|
||||
|
||||
#define MSG_TO 0x005979a8U
|
||||
|
||||
#define MSG_VIRTUAL_DISK_TRAY 0x4aa37f15U
|
||||
|
||||
const char *msg_hash_to_str(uint32_t hash);
|
||||
|
||||
const char *msg_hash_to_str_fr(uint32_t hash);
|
||||
|
Loading…
x
Reference in New Issue
Block a user