From 2e2ba374678fe283fed9f3c70981213bfdf571fe Mon Sep 17 00:00:00 2001 From: zoltanvb Date: Sat, 3 Feb 2024 12:39:18 +0100 Subject: [PATCH] Localization for a few narrator-only strings. --- intl/msg_hash_us.h | 8 ++++++++ msg_hash.h | 3 +++ retroarch.c | 8 +++++--- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index e7237165cac..108e9e5620b 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -16078,3 +16078,11 @@ MSG_HASH( MSG_IOS_TOUCH_MOUSE_DISABLED, "Touch mouse is disabled" ) +MSG_HASH( + MSG_ACCESSIBILITY_STARTUP, + "RetroArch accessibility on. Main Menu Load Core." + ) +MSG_HASH( + MSG_AI_SERVICE_STOPPED, + "stopped." + ) diff --git a/msg_hash.h b/msg_hash.h index b56852f3222..cbf75532043 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -2867,6 +2867,9 @@ enum msg_hash_enums MENU_LABEL(AI_SERVICE_TEXT_POSITION), MENU_LABEL(AI_SERVICE_TEXT_PADDING), + MSG_ACCESSIBILITY_STARTUP, + MSG_AI_SERVICE_STOPPED, + MENU_LABEL(ON), MENU_LABEL(OFF), MENU_LABEL(DISABLED), diff --git a/retroarch.c b/retroarch.c index a15e24872ef..3a264a0b8a2 100644 --- a/retroarch.c +++ b/retroarch.c @@ -5315,7 +5315,8 @@ bool command_event(enum event_command cmd, void *data) accessibility_speak_priority( accessibility_enable, accessibility_narrator_speech_speed, - "stopped.", 10); + (char*)msg_hash_to_str(MSG_AI_SERVICE_STOPPED), + 10); #endif } else @@ -5329,7 +5330,8 @@ bool command_event(enum event_command cmd, void *data) accessibility_speak_priority( accessibility_enable, accessibility_narrator_speech_speed, - "stopped.", 10); + (char*)msg_hash_to_str(MSG_AI_SERVICE_STOPPED), + 10); else #endif { @@ -7387,7 +7389,7 @@ bool retroarch_main_init(int argc, char *argv[]) accessibility_speak_priority( accessibility_enable, accessibility_narrator_speech_speed, - "RetroArch accessibility on. Main Menu Load Core.", + (char*)msg_hash_to_str(MSG_ACCESSIBILITY_STARTUP), 10); #endif