From dc1307028a3cb9b070eedec4e18bef77333054a6 Mon Sep 17 00:00:00 2001 From: fusionate Date: Mon, 23 Jan 2023 19:31:18 +0000 Subject: [PATCH] Default/Domain/User Settings: Implement select field for input_toggle_style options. --- core/default_settings/app_languages.php | 69 +++++++++++++++++++ .../default_settings/default_setting_edit.php | 7 ++ core/default_settings/default_settings.php | 3 + core/domain_settings/app_languages.php | 69 +++++++++++++++++++ core/domain_settings/domain_setting_edit.php | 7 ++ core/domain_settings/domain_settings.php | 3 + core/user_settings/app_languages.php | 69 +++++++++++++++++++ core/user_settings/user_setting_edit.php | 7 ++ core/user_settings/user_settings.php | 3 + core/users/app_languages.php | 69 +++++++++++++++++++ themes/default/app_config.php | 2 +- 11 files changed, 307 insertions(+), 1 deletion(-) diff --git a/core/default_settings/app_languages.php b/core/default_settings/app_languages.php index 90e03dee1c..1b36c64aad 100644 --- a/core/default_settings/app_languages.php +++ b/core/default_settings/app_languages.php @@ -211,6 +211,75 @@ $text['option-button_icons_never']['ru-ru'] = "Never"; $text['option-button_icons_never']['sv-se'] = "Never"; $text['option-button_icons_never']['uk-ua'] = "Never"; +$text['option-select']['en-us'] = "Select"; +$text['option-select']['en-gb'] = "Select"; +$text['option-select']['ar-eg'] = ""; +$text['option-select']['de-at'] = "Auswählen"; //copied from de-de +$text['option-select']['de-ch'] = "Auswählen"; //copied from de-de +$text['option-select']['de-de'] = "Auswählen"; +$text['option-select']['el-gr'] = "Επιλέξτε"; +$text['option-select']['es-cl'] = "Seleccionar"; +$text['option-select']['es-mx'] = "Seleccionar"; //copied from es-cl +$text['option-select']['fr-ca'] = "Sélectionner"; //copied from fr-fr +$text['option-select']['fr-fr'] = "Sélectionner"; +$text['option-select']['he-il'] = ""; +$text['option-select']['it-it'] = "Selezionare"; +$text['option-select']['nl-nl'] = ""; +$text['option-select']['pl-pl'] = "Wybierz"; +$text['option-select']['pt-br'] = "Selecionar"; //copied from pt-pt +$text['option-select']['pt-pt'] = "Selecionar"; +$text['option-select']['ro-ro'] = ""; +$text['option-select']['ru-ru'] = "Выбрать"; +$text['option-select']['sv-se'] = "Välj"; +$text['option-select']['uk-ua'] = ""; +$text['option-select']['tr-tr'] = "Seç"; + +$text['option-switch_round']['en-us'] = "Round Switch"; +$text['option-switch_round']['en-gb'] = "Round Switch"; +$text['option-switch_round']['ar-eg'] = "Round Switch"; +$text['option-switch_round']['de-at'] = "Round Switch"; +$text['option-switch_round']['de-ch'] = "Round Switch"; +$text['option-switch_round']['de-de'] = "Round Switch"; +$text['option-switch_round']['el-gr'] = "Round Switch"; +$text['option-switch_round']['es-cl'] = "Round Switch"; +$text['option-switch_round']['es-mx'] = "Round Switch"; +$text['option-switch_round']['fr-ca'] = "Round Switch"; +$text['option-switch_round']['fr-fr'] = "Round Switch"; +$text['option-switch_round']['he-il'] = "Round Switch"; +$text['option-switch_round']['it-it'] = "Round Switch"; +$text['option-switch_round']['nl-nl'] = "Round Switch"; +$text['option-switch_round']['pl-pl'] = "Round Switch"; +$text['option-switch_round']['pt-br'] = "Round Switch"; +$text['option-switch_round']['pt-pt'] = "Round Switch"; +$text['option-switch_round']['ro-ro'] = "Round Switch"; +$text['option-switch_round']['ru-ru'] = "Round Switch"; +$text['option-switch_round']['sv-se'] = "Round Switch"; +$text['option-switch_round']['uk-ua'] = "Round Switch"; +$text['option-switch_round']['tr-tr'] = "Round Switch"; + +$text['option-switch_square']['en-us'] = "Square Switch"; +$text['option-switch_square']['en-gb'] = "Square Switch"; +$text['option-switch_square']['ar-eg'] = "Square Switch"; +$text['option-switch_square']['de-at'] = "Square Switch"; +$text['option-switch_square']['de-ch'] = "Square Switch"; +$text['option-switch_square']['de-de'] = "Square Switch"; +$text['option-switch_square']['el-gr'] = "Square Switch"; +$text['option-switch_square']['es-cl'] = "Square Switch"; +$text['option-switch_square']['es-mx'] = "Square Switch"; +$text['option-switch_square']['fr-ca'] = "Square Switch"; +$text['option-switch_square']['fr-fr'] = "Square Switch"; +$text['option-switch_square']['he-il'] = "Square Switch"; +$text['option-switch_square']['it-it'] = "Square Switch"; +$text['option-switch_square']['nl-nl'] = "Square Switch"; +$text['option-switch_square']['pl-pl'] = "Square Switch"; +$text['option-switch_square']['pt-br'] = "Square Switch"; +$text['option-switch_square']['pt-pt'] = "Square Switch"; +$text['option-switch_square']['ro-ro'] = "Square Switch"; +$text['option-switch_square']['ru-ru'] = "Square Switch"; +$text['option-switch_square']['sv-se'] = "Square Switch"; +$text['option-switch_square']['uk-ua'] = "Square Switch"; +$text['option-switch_square']['tr-tr'] = "Square Switch"; + $text['message-toggled']['en-us'] = "Toggle Completed"; $text['message-toggled']['en-gb'] = "Toggle Completed"; $text['message-toggled']['ar-eg'] = "الانتهاء من تبديل"; diff --git a/core/default_settings/default_setting_edit.php b/core/default_settings/default_setting_edit.php index a5931b1664..ad1255dc67 100644 --- a/core/default_settings/default_setting_edit.php +++ b/core/default_settings/default_setting_edit.php @@ -665,6 +665,13 @@ echo " \n"; echo " \n"; } + elseif ($category == "theme" && $subcategory == "input_toggle_style" && $name == "text" ) { + echo " \n"; + } elseif ($category == "users" && $subcategory == "username_format" && $name == "text" ) { echo " \n"; } + elseif ($category == "theme" && $subcategory == "input_toggle_style" && $name == "text" ) { + echo " \n"; + } elseif ($category == "users" && $subcategory == "username_format" && $name == "text" ) { echo " \n"; } + elseif ($user_setting_category == "theme" && $user_setting_subcategory == "input_toggle_style" && $user_setting_name == "text" ) { + echo " \n"; + } elseif ($user_setting_category == "users" && $user_setting_subcategory == "username_format" && $user_setting_name == "text" ) { echo "