Sublabel for the user language

This commit is contained in:
Jean-André Santoni 2016-10-25 11:14:52 +02:00
parent c8da8f81a5
commit 6ca877cdda
3 changed files with 16 additions and 0 deletions

View File

@ -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:

View File

@ -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;

View File

@ -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,