From 8a7a3fd5f43969d71c564cf1aec671519762c994 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 2 Jul 2016 14:14:31 +0200 Subject: [PATCH] Language display optimized Language is now no longer direct array access but provided through a function. This can be later used to hot load language files instead of pre-loading them. --- Theme/Backend/checklist-list.tpl.php | 14 ++++----- .../Backend/checklist-template-create.tpl.php | 30 +++++++++---------- Theme/Backend/checklist-template-list.tpl.php | 14 ++++----- Theme/backend/checklist-list.tpl.php | 14 ++++----- 4 files changed, 36 insertions(+), 36 deletions(-) diff --git a/Theme/Backend/checklist-list.tpl.php b/Theme/Backend/checklist-list.tpl.php index 60a0272..6143f1c 100644 --- a/Theme/Backend/checklist-list.tpl.php +++ b/Theme/Backend/checklist-list.tpl.php @@ -28,14 +28,14 @@ echo $this->getData('nav')->render(); ?>
- + - @@ -49,7 +49,7 @@ echo $this->getData('nav')->render(); ?> -
l11n->lang['Checklist']['Checklists']; ?>l11n->getText('Checklist', 'Checklists'); ?>
l11n->lang[0]['ID']; ?> - l11n->lang['Checklist']['Status']; ?> - l11n->lang['Checklist']['Name']; ?> - l11n->lang['Checklist']['Creator']; ?> - l11n->lang['Checklist']['Created']; ?> + l11n->getText(0, 'ID'); ?> + l11n->getText('Checklist', 'Status'); ?> + l11n->getText('Checklist', 'Name'); ?> + l11n->getText('Checklist', 'Creator'); ?> + l11n->getText('Checklist', 'Created'); ?>
render(); ?>
l11n->lang[0]['Empty']; ?> + l11n->getText(0, 'Empty'); ?>
diff --git a/Theme/Backend/checklist-template-create.tpl.php b/Theme/Backend/checklist-template-create.tpl.php index d39c043..3272e6a 100644 --- a/Theme/Backend/checklist-template-create.tpl.php +++ b/Theme/Backend/checklist-template-create.tpl.php @@ -20,44 +20,44 @@ echo $this->getData('nav')->render(); ?>
-

l11n->lang['Checklist']['General']; ?>

+

l11n->getText('Checklist', 'General'); ?>

-
+
-
+
-
+
- -
+ +
-
+
-

l11n->lang['Checklist']['Tasks']; ?>

+

l11n->getText('Checklist', 'Tasks'); ?>

-
+
-
+
-
+
-
+
- -
+ +
-
+
diff --git a/Theme/Backend/checklist-template-list.tpl.php b/Theme/Backend/checklist-template-list.tpl.php index 851fe81..a65a0fa 100644 --- a/Theme/Backend/checklist-template-list.tpl.php +++ b/Theme/Backend/checklist-template-list.tpl.php @@ -28,14 +28,14 @@ echo $this->getData('nav')->render(); ?>
- + - @@ -49,7 +49,7 @@ echo $this->getData('nav')->render(); ?> -
l11n->lang['Checklist']['Templates']; ?>l11n->getText('Checklist', 'Templates'); ?>
l11n->lang[0]['ID']; ?> - l11n->lang['Checklist']['Status']; ?> - l11n->lang['Checklist']['Name']; ?> - l11n->lang['Checklist']['Creator']; ?> - l11n->lang['Checklist']['Created']; ?> + l11n->getText(0, 'ID'); ?> + l11n->getText('Checklist', 'Status'); ?> + l11n->getText('Checklist', 'Name'); ?> + l11n->getText('Checklist', 'Creator'); ?> + l11n->getText('Checklist', 'Created'); ?>
render(); ?>
l11n->lang[0]['Empty']; ?> + l11n->getText(0, 'Empty'); ?>
diff --git a/Theme/backend/checklist-list.tpl.php b/Theme/backend/checklist-list.tpl.php index 60a0272..6143f1c 100644 --- a/Theme/backend/checklist-list.tpl.php +++ b/Theme/backend/checklist-list.tpl.php @@ -28,14 +28,14 @@ echo $this->getData('nav')->render(); ?>
- + - @@ -49,7 +49,7 @@ echo $this->getData('nav')->render(); ?> -
l11n->lang['Checklist']['Checklists']; ?>l11n->getText('Checklist', 'Checklists'); ?>
l11n->lang[0]['ID']; ?> - l11n->lang['Checklist']['Status']; ?> - l11n->lang['Checklist']['Name']; ?> - l11n->lang['Checklist']['Creator']; ?> - l11n->lang['Checklist']['Created']; ?> + l11n->getText(0, 'ID'); ?> + l11n->getText('Checklist', 'Status'); ?> + l11n->getText('Checklist', 'Name'); ?> + l11n->getText('Checklist', 'Creator'); ?> + l11n->getText('Checklist', 'Created'); ?>
render(); ?>
l11n->lang[0]['Empty']; ?> + l11n->getText(0, 'Empty'); ?>