diff --git a/intl/msg_hash_us.c b/intl/msg_hash_us.c index b39b5e5b44..df08444d45 100644 --- a/intl/msg_hash_us.c +++ b/intl/msg_hash_us.c @@ -3076,6 +3076,8 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg) return "Enable or disable network sharing of your folders."; case MENU_ENUM_SUBLABEL_BLUETOOTH_ENABLE: return "Enable or disable bluetooth."; + case MENU_ENUM_SUBLABEL_USER_LANGUAGE: + return "Sets the language of the interface. Requires a restart."; case MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE: return "Prevents your system's screensaver from becoming active."; case MENU_ENUM_SUBLABEL_VIDEO_MAX_SWAPCHAIN_IMAGES: diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index a6ffe988b0..057bd80055 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -136,6 +136,16 @@ static int action_bind_sublabel_bluetooth_enable( return 0; } +static int action_bind_sublabel_user_language( + file_list_t *list, + unsigned type, unsigned i, + const char *label, const char *path, + char *s, size_t len) +{ + strlcpy(s, msg_hash_to_str(MENU_ENUM_SUBLABEL_USER_LANGUAGE), len); + return 0; +} + static int action_bind_sublabel_max_swapchain_images( file_list_t *list, unsigned type, unsigned i, @@ -441,6 +451,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, case MENU_ENUM_LABEL_BLUETOOTH_ENABLE: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_bluetooth_enable); break; + case MENU_ENUM_LABEL_USER_LANGUAGE: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_user_language); + break; case MENU_ENUM_LABEL_SUSPEND_SCREENSAVER_ENABLE: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_suspend_screensaver_enable); break; diff --git a/msg_hash.h b/msg_hash.h index e7238be32f..4fec60b6d1 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -1943,6 +1943,7 @@ enum msg_hash_enums MENU_ENUM_SUBLABEL_SSH_ENABLE, MENU_ENUM_SUBLABEL_SAMBA_ENABLE, MENU_ENUM_SUBLABEL_BLUETOOTH_ENABLE, + MENU_ENUM_SUBLABEL_USER_LANGUAGE, MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE, MENU_ENUM_SUBLABEL_FPS_SHOW, MENU_ENUM_SUBLABEL_VIDEO_MAX_SWAPCHAIN_IMAGES,