From ffb6876bd8a0a051ab85700a92eddbb612696a88 Mon Sep 17 00:00:00 2001 From: fusionate Date: Wed, 4 Sep 2024 14:48:51 -0600 Subject: [PATCH] Default Settings: Use language variable for new Custom category filter. --- core/default_settings/app_languages.php | 28 +++++++++++++++++++++- core/default_settings/default_settings.php | 5 ++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/core/default_settings/app_languages.php b/core/default_settings/app_languages.php index eb58189536..129f90f951 100644 --- a/core/default_settings/app_languages.php +++ b/core/default_settings/app_languages.php @@ -1488,4 +1488,30 @@ $text['button-toggle']['zh-cn'] = "切换"; $text['button-toggle']['ja-jp'] = "トグル"; $text['button-toggle']['ko-kr'] = "비녀장"; -?> +$text['label-custom']['en-us'] = "Custom"; +$text['label-custom']['en-gb'] = "Custom"; +$text['label-custom']['ar-eg'] = "العرف"; +$text['label-custom']['de-at'] = "Zoll"; +$text['label-custom']['de-ch'] = "Zoll"; +$text['label-custom']['de-de'] = "Zoll"; +$text['label-custom']['el-gr'] = "Εθιμο"; +$text['label-custom']['es-cl'] = "Aduanas"; +$text['label-custom']['es-mx'] = "Aduanas"; +$text['label-custom']['fr-ca'] = "Custom"; +$text['label-custom']['fr-fr'] = "Custom"; +$text['label-custom']['he-il'] = "מותאם אישית"; +$text['label-custom']['it-it'] = "Personale"; +$text['label-custom']['ka-ge'] = "მორგებული(Custom)"; +$text['label-custom']['nl-nl'] = "Aangepast"; +$text['label-custom']['pl-pl'] = "Własne"; +$text['label-custom']['pt-br'] = "Personalizado"; +$text['label-custom']['pt-pt'] = "Personalizado"; +$text['label-custom']['ro-ro'] = "Personalizat"; +$text['label-custom']['ru-ru'] = "Пользователь"; +$text['label-custom']['sv-se'] = "Anpassad"; +$text['label-custom']['uk-ua'] = "Користування"; +$text['label-custom']['zh-cn'] = "风俗"; +$text['label-custom']['ja-jp'] = "カスタム"; +$text['label-custom']['ko-kr'] = "관습"; + +?> \ No newline at end of file diff --git a/core/default_settings/default_settings.php b/core/default_settings/default_settings.php index fe27af738a..ac3ab2b0d0 100644 --- a/core/default_settings/default_settings.php +++ b/core/default_settings/default_settings.php @@ -206,7 +206,7 @@ $categories = []; //add custom to the list of categories - $categories['custom']['formatted'] = 'Custom'; + $categories['custom']['formatted'] = $text['label-custom']; $categories['custom']['count'] = null; //add the other catefories to the array @@ -334,8 +334,9 @@ foreach ($categories as $category_name => $category) { $selected = (!empty($_GET['default_setting_category']) && $_GET['default_setting_category'] == $category_name) ? " selected='selected'" : null; echo " \n"; + if ($category['formatted'] == $text['label-custom']) { echo "\n"; } } - echo " \n"; echo " \n"; echo " "; }