From 7b8d8800fccccaf0039658dec482e710237764a2 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 21 Aug 2022 13:49:20 +0200 Subject: [PATCH] (cq) replace repeated strings with variables --- templates/settings/admin-form.php | 28 +++++++++++++++------------- templates/settings/personal-form.php | 8 +++++--- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/templates/settings/admin-form.php b/templates/settings/admin-form.php index 59a5143..bd01e59 100644 --- a/templates/settings/admin-form.php +++ b/templates/settings/admin-form.php @@ -39,6 +39,8 @@ $choicesSizes = [ 'Big' => 'big', ]; +$labelShowHideApps = 'Show and hide the list of applications'; +$labelReset = 'Reset to default'; ?>
@@ -67,7 +69,7 @@ $choicesSizes = [ class="side-menu-setting side-menu-setting-live" value=""> -
@@ -107,7 +109,7 @@ $choicesSizes = [ class="side-menu-setting side-menu-setting-live" value=""> -
@@ -127,7 +129,7 @@ $choicesSizes = [ class="side-menu-setting side-menu-setting-live" value=""> -
@@ -147,7 +149,7 @@ $choicesSizes = [ class="side-menu-setting" value=""> -
@@ -255,7 +257,7 @@ $choicesSizes = [ class="side-menu-setting" value=""> -
@@ -295,7 +297,7 @@ $choicesSizes = [ class="side-menu-setting" value=""> -
@@ -315,7 +317,7 @@ $choicesSizes = [ class="side-menu-setting" value=""> -
@@ -335,7 +337,7 @@ $choicesSizes = [ class="side-menu-setting" value=""> -
@@ -649,7 +651,7 @@ $choicesSizes = [
- 🖱️ t('Show and hide the list of applications')); ?> + 🖱️ t($labelShowHideApps)); ?>
- 🖱️ t('Show and hide the list of applications')); ?> + 🖱️ t($labelShowHideApps)); ?>
- 🖱️ t('Show and hide the list of applications')); ?> + 🖱️ t($labelShowHideApps)); ?>
- 🖱️ t('Show and hide the list of applications')); ?> + 🖱️ t($labelShowHideApps)); ?>
- 🖱️ t('Show and hide the list of applications')); ?> + 🖱️ t($labelShowHideApps)); ?>