From 61a4259b411b7558ab1f8738454d1f74c16b747d Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Wed, 29 Dec 2021 13:31:28 +0100 Subject: [PATCH] fixes #1590 Handle advanced features + section title translation --- .../default/template/maintenance_actions.tpl | 17 ++++++++++++++--- language/en_UK/admin.lang.php | 4 ++++ language/fr_FR/admin.lang.php | 4 ++++ 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/admin/themes/default/template/maintenance_actions.tpl b/admin/themes/default/template/maintenance_actions.tpl index badbacdbf..e82bfcc80 100644 --- a/admin/themes/default/template/maintenance_actions.tpl +++ b/admin/themes/default/template/maintenance_actions.tpl @@ -121,7 +121,7 @@ $(".delete-size-check").click( function () { {if $isWebmaster == 1}
- Global Gallery Actions + {'Global Gallery Actions'|translate}
{if (isset($U_MAINT_LOCK_GALLERY))} {'Lock gallery'|@translate} @@ -135,7 +135,7 @@ $(".delete-size-check").click( function () {
- Purge Actions + {'Purge Actions'|@translate}
{'Purge user cache'|@translate} {'Delete orphan tags'|@translate} @@ -147,8 +147,19 @@ $(".delete-size-check").click( function () {
+{if isset($advanced_features) and !(count($advanced_features) < 1)} +
+ {'Advanced features'|@translate} +
+ {foreach from=$advanced_features item=feature key=key name=name} + {$feature.CAPTION} + {/foreach} +
+
+{/if} +
- Purge Cache + {'Purge Cache'|@translate}
diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php index 8228509f7..f51f64ecc 100644 --- a/language/en_UK/admin.lang.php +++ b/language/en_UK/admin.lang.php @@ -1251,3 +1251,7 @@ $lang['%s plugins found'] = '%s plugins found'; $lang['%s plugin found'] = '%s plugin found'; $lang['%s status is required to edit parameters.'] = '%s status is required to edit parameters.'; $lang['Edit photo #%s'] = 'Edit photo #%s'; +$lang['Advanced features'] = 'Advanced features'; +$lang['Global Gallery Actions'] = 'Global Gallery Actions'; +$lang['Purge Actions'] = 'Purge Actions'; +$lang['Purge Cache'] = 'Purge Cache'; diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php index f2419616b..13ca45b97 100644 --- a/language/fr_FR/admin.lang.php +++ b/language/fr_FR/admin.lang.php @@ -1253,3 +1253,7 @@ $lang['Webmaster status required'] = 'Statut Webmaster nécéssaire'; $lang['%s plugins found'] = '%s plugins trouvés'; $lang['%s plugin found'] = '%s plugin trouvé'; $lang['%s status is required to edit parameters.'] = 'Le statut %s est nécéssaire pour modifier les paramètres.'; +$lang['Advanced features'] = 'Fonctionnalités avancées'; +$lang['Global Gallery Actions'] = 'Actions sur la gallerie'; +$lang['Purge Actions'] = 'Actions de purge'; +$lang['Purge Cache'] = 'Purger le cache';