More translatable strings

This commit is contained in:
twinaphex 2016-08-22 13:41:11 +02:00
parent b0a8f72724
commit 7c19b2fac5
3 changed files with 29 additions and 3 deletions

View File

@ -1298,7 +1298,9 @@ static void command_event_set_savestate_auto_index(void)
dir_list_free(dir_list);
settings->state_slot = max_idx;
RARCH_LOG("Found last state slot: #%d\n", settings->state_slot);
RARCH_LOG("%s: #%d\n",
msg_hash_to_str(MSG_VALUE_FOUND_LAST_STATE_SLOT),
settings->state_slot);
}
static bool event_init_content(void)
@ -2068,8 +2070,8 @@ bool command_event(enum event_command cmd, void *data)
if (!settings->audio.mute_enable && !audio_driver_start())
{
RARCH_ERR("Failed to start audio driver. "
"Will continue without audio.\n");
RARCH_ERR("%s\n",
msg_hash_to_str(MSG_VALUE_FAILED_TO_START_AUDIO_DRIVER));
audio_driver_unset_active();
}
break;

View File

@ -1866,6 +1866,14 @@ static const char *menu_hash_to_str_us_label_enum(enum msg_hash_enums msg)
switch (msg)
{
case MSG_SHUTTING_DOWN:
return "shutting_down";
case MSG_REBOOTING:
return "rebooting";
case MSG_FAILED_TO_START_AUDIO_DRIVER:
return "failed_to_start_audio_driver";
case MSG_FOUND_LAST_STATE_SLOT:
return "found_last_state_slot";
case MSG_CONNECT_DEVICE_FROM_A_VALID_PORT:
return "connect_device_from_a_valid_port";
case MSG_DISCONNECT_DEVICE_FROM_A_VALID_PORT:
@ -2927,6 +2935,14 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
switch (msg)
{
case MSG_VALUE_SHUTTING_DOWN:
return "Shutting down";
case MSG_VALUE_REBOOTING:
return "Rebooting";
case MSG_VALUE_FAILED_TO_START_AUDIO_DRIVER:
return "Failed to start audio driver. Will continue without audio.";
case MSG_VALUE_FOUND_LAST_STATE_SLOT:
return "Found last state slot";
case MSG_VALUE_CONNECT_DEVICE_FROM_A_VALID_PORT:
return "Connect device from a valid port.";
case MSG_VALUE_DISCONNECT_DEVICE_FROM_A_VALID_PORT:

View File

@ -127,6 +127,14 @@ enum msg_hash_enums
MSG_INFLATED_CHECKSUM_DID_NOT_MATCH_CRC32,
MSG_FAILED_TO_EXTRACT_CONTENT_FROM_COMPRESSED_FILE,
MSG_FILE_NOT_FOUND,
MSG_SHUTTING_DOWN,
MSG_VALUE_SHUTTING_DOWN,
MSG_REBOOTING,
MSG_VALUE_REBOOTING,
MSG_FAILED_TO_START_AUDIO_DRIVER,
MSG_VALUE_FAILED_TO_START_AUDIO_DRIVER,
MSG_FOUND_LAST_STATE_SLOT,
MSG_VALUE_FOUND_LAST_STATE_SLOT,
MSG_RESTORED_OLD_SAVE_STATE,
MSG_NO_STATE_HAS_BEEN_LOADED_YET,
MSG_NO_SAVE_STATE_HAS_BEEN_OVERWRITTEN_YET,