diff --git a/intl/msg_hash_ar.h b/intl/msg_hash_ar.h index caa87f6899..aa390073be 100644 --- a/intl/msg_hash_ar.h +++ b/intl/msg_hash_ar.h @@ -4074,3 +4074,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_chs.h b/intl/msg_hash_chs.h index 0aad58d2ef..4d1800012f 100644 --- a/intl/msg_hash_chs.h +++ b/intl/msg_hash_chs.h @@ -5092,3 +5092,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_cht.h b/intl/msg_hash_cht.h index cd1be2610c..b0e2391af6 100644 --- a/intl/msg_hash_cht.h +++ b/intl/msg_hash_cht.h @@ -3850,3 +3850,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_de.h b/intl/msg_hash_de.h index 5978d29687..816c94bbfb 100644 --- a/intl/msg_hash_de.h +++ b/intl/msg_hash_de.h @@ -3979,3 +3979,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_el.h b/intl/msg_hash_el.h index 61e5e18069..ced42baaca 100644 --- a/intl/msg_hash_el.h +++ b/intl/msg_hash_el.h @@ -8056,3 +8056,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_eo.h b/intl/msg_hash_eo.h index d09493cef9..56e9538432 100644 --- a/intl/msg_hash_eo.h +++ b/intl/msg_hash_eo.h @@ -3738,3 +3738,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_es.h b/intl/msg_hash_es.h index 5f337e9240..be671ed3e9 100644 --- a/intl/msg_hash_es.h +++ b/intl/msg_hash_es.h @@ -8208,3 +8208,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_fr.h b/intl/msg_hash_fr.h index 4e9c153f5c..1f8c8f60da 100644 --- a/intl/msg_hash_fr.h +++ b/intl/msg_hash_fr.h @@ -8996,3 +8996,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_it.h b/intl/msg_hash_it.h index 8d30f9cf75..6791dd7d73 100644 --- a/intl/msg_hash_it.h +++ b/intl/msg_hash_it.h @@ -3959,3 +3959,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_ja.h b/intl/msg_hash_ja.h index c93acd61d2..08d78a39d8 100644 --- a/intl/msg_hash_ja.h +++ b/intl/msg_hash_ja.h @@ -9371,3 +9371,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_ko.h b/intl/msg_hash_ko.h index a793746e78..efe9efec9b 100644 --- a/intl/msg_hash_ko.h +++ b/intl/msg_hash_ko.h @@ -9203,3 +9203,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_nl.h b/intl/msg_hash_nl.h index 4eddf13e3b..7ac25236c3 100644 --- a/intl/msg_hash_nl.h +++ b/intl/msg_hash_nl.h @@ -3732,3 +3732,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_pl.h b/intl/msg_hash_pl.h index 0a4faf7018..a3b3462a57 100644 --- a/intl/msg_hash_pl.h +++ b/intl/msg_hash_pl.h @@ -4523,3 +4523,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_pt_br.h b/intl/msg_hash_pt_br.h index 1e2a16cf04..422d7eae8d 100644 --- a/intl/msg_hash_pt_br.h +++ b/intl/msg_hash_pt_br.h @@ -9283,3 +9283,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_pt_pt.h b/intl/msg_hash_pt_pt.h index 7d3f2afe62..9d231c6cbc 100644 --- a/intl/msg_hash_pt_pt.h +++ b/intl/msg_hash_pt_pt.h @@ -3804,3 +3804,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_ru.h b/intl/msg_hash_ru.h index 435cc68339..2755ff93b4 100644 --- a/intl/msg_hash_ru.h +++ b/intl/msg_hash_ru.h @@ -4002,3 +4002,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_tr.h b/intl/msg_hash_tr.h index 30788c4616..a5691924fb 100644 --- a/intl/msg_hash_tr.h +++ b/intl/msg_hash_tr.h @@ -9008,3 +9008,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index d0624a8484..6b870852bb 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -9507,3 +9507,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/intl/msg_hash_vn.h b/intl/msg_hash_vn.h index 4a0dc811eb..c49c3d7c22 100644 --- a/intl/msg_hash_vn.h +++ b/intl/msg_hash_vn.h @@ -3894,3 +3894,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_LOAD_DISC, "Load a physical media disc. You should first select the core (Load Core) you intend to use with the disc.") MSG_HASH(MENU_ENUM_SUBLABEL_DUMP_DISC, "Dump the physical media disc to internal storage. It will be saved as an image file.") +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + "Image Mode" + ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, + "Speech Mode" + ) diff --git a/menu/menu_setting.c b/menu/menu_setting.c index bbdb73f281..a7df186d56 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -2823,6 +2823,30 @@ static void setting_get_string_representation_uint_keyboard_gamepad_mapping_type #endif #ifdef HAVE_TRANSLATE +static void setting_get_string_representation_uint_ai_service_mode( + rarch_setting_t *setting, + char *s, size_t len) +{ + enum msg_hash_enums enum_idx = MSG_UNKNOWN; + if (!setting) + return; + + switch (*setting->value.target.unsigned_integer) + { + case 0: + enum_idx = MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE; + break; + case 1: + enum_idx = MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE; + break; + default: + break; + } + + if (enum_idx != 0) + strlcpy(s, msg_hash_to_str(enum_idx), len); +} + static void setting_get_string_representation_uint_ai_service_lang( rarch_setting_t *setting, char *s, size_t len) @@ -13103,6 +13127,8 @@ static bool setting_append_list( parent_group, general_write_handler, general_read_handler); + (*list)[list_info->index - 1].get_string_representation = + &setting_get_string_representation_uint_ai_service_mode; (*list)[list_info->index - 1].action_ok = &setting_action_ok_uint; menu_settings_list_current_add_range(list, list_info, 0, 1, 1, true, true); diff --git a/msg_hash.h b/msg_hash.h index 82cc070001..97476ca55f 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -2148,6 +2148,8 @@ enum msg_hash_enums MENU_ENUM_LABEL_VALUE_LANG_URDU, MENU_ENUM_LABEL_VALUE_LANG_WELSH, MENU_ENUM_LABEL_VALUE_LANG_YIDDISH, + MENU_ENUM_LABEL_VALUE_AI_SERVICE_IMAGE_MODE, + MENU_ENUM_LABEL_VALUE_AI_SERVICE_SPEECH_MODE, MENU_ENUM_LABEL_VALUE_NONE, MENU_ENUM_LABEL_VALUE_NO_INFORMATION_AVAILABLE,