From fc152f87a98b6beaa5cf57445fff9fbfbd36f437 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/rnd-create.tpl.php | 34 ++++++++++++++++---------------- Theme/Backend/rnd-list.tpl.php | 14 ++++++------- Theme/backend/rnd-list.tpl.php | 14 ++++++------- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/Theme/Backend/rnd-create.tpl.php b/Theme/Backend/rnd-create.tpl.php index 69c81b4..b793a50 100644 --- a/Theme/Backend/rnd-create.tpl.php +++ b/Theme/Backend/rnd-create.tpl.php @@ -16,35 +16,35 @@ echo $this->getData('nav')->render(); ?>
-

l11n->lang['ResearchDevelopment']['Project']; ?>

+

l11n->getText('ResearchDevelopment', 'Project'); ?>

-
+
-
+
-
+
-
+
-
+
-
+
-
+
- -
+ +
diff --git a/Theme/Backend/rnd-list.tpl.php b/Theme/Backend/rnd-list.tpl.php index 065a341..a98256c 100644 --- a/Theme/Backend/rnd-list.tpl.php +++ b/Theme/Backend/rnd-list.tpl.php @@ -28,14 +28,14 @@ echo $this->getData('nav')->render(); ?>
- + - @@ -49,7 +49,7 @@ echo $this->getData('nav')->render(); ?> -
l11n->lang['ResearchDevelopment']['Projects']; ?>l11n->getText('ResearchDevelopment', 'Projects'); ?>
l11n->lang[0]['ID']; ?> - l11n->lang['ResearchDevelopment']['Status']; ?> - l11n->lang['ResearchDevelopment']['Name']; ?> - l11n->lang['ResearchDevelopment']['Creator']; ?> - l11n->lang['ResearchDevelopment']['Created']; ?> + l11n->getText(0, 'ID'); ?> + l11n->getText('ResearchDevelopment', 'Status'); ?> + l11n->getText('ResearchDevelopment', 'Name'); ?> + l11n->getText('ResearchDevelopment', 'Creator'); ?> + l11n->getText('ResearchDevelopment', 'Created'); ?>
render(); ?>
l11n->lang[0]['Empty']; ?> + l11n->getText(0, 'Empty'); ?>
diff --git a/Theme/backend/rnd-list.tpl.php b/Theme/backend/rnd-list.tpl.php index 065a341..a98256c 100644 --- a/Theme/backend/rnd-list.tpl.php +++ b/Theme/backend/rnd-list.tpl.php @@ -28,14 +28,14 @@ echo $this->getData('nav')->render(); ?>
- + - @@ -49,7 +49,7 @@ echo $this->getData('nav')->render(); ?> -
l11n->lang['ResearchDevelopment']['Projects']; ?>l11n->getText('ResearchDevelopment', 'Projects'); ?>
l11n->lang[0]['ID']; ?> - l11n->lang['ResearchDevelopment']['Status']; ?> - l11n->lang['ResearchDevelopment']['Name']; ?> - l11n->lang['ResearchDevelopment']['Creator']; ?> - l11n->lang['ResearchDevelopment']['Created']; ?> + l11n->getText(0, 'ID'); ?> + l11n->getText('ResearchDevelopment', 'Status'); ?> + l11n->getText('ResearchDevelopment', 'Name'); ?> + l11n->getText('ResearchDevelopment', 'Creator'); ?> + l11n->getText('ResearchDevelopment', 'Created'); ?>
render(); ?>
l11n->lang[0]['Empty']; ?> + l11n->getText(0, 'Empty'); ?>