From cd19e23129f18a64394506e8bd0296e1a8097426 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/surveys-create.tpl.php | 40 ++++++++++++++-------------- Theme/Backend/surveys-list.tpl.php | 12 ++++----- Theme/backend/surveys-create.tpl.php | 40 ++++++++++++++-------------- Theme/backend/surveys-list.tpl.php | 12 ++++----- 4 files changed, 52 insertions(+), 52 deletions(-) diff --git a/Theme/Backend/surveys-create.tpl.php b/Theme/Backend/surveys-create.tpl.php index 1fae1be..341e829 100644 --- a/Theme/Backend/surveys-create.tpl.php +++ b/Theme/Backend/surveys-create.tpl.php @@ -16,42 +16,42 @@ echo $this->getData('nav')->render(); ?>
-

l11n->lang['Surveys']['Survey'] ?>

+

l11n->getText('Surveys', 'Survey') ?>

-
-
+
-
-
-
+
-
+ +
-

l11n->lang['Surveys']['Section'] ?>

+

l11n->getText('Surveys', 'Section') ?>

-
-
-
-
+
@@ -59,19 +59,19 @@ echo $this->getData('nav')->render(); ?>
-

l11n->lang['Surveys']['Question'] ?>

+

l11n->getText('Surveys', 'Question') ?>

-
-
-
-
+
diff --git a/Theme/Backend/surveys-list.tpl.php b/Theme/Backend/surveys-list.tpl.php index d2687b3..65255b1 100644 --- a/Theme/Backend/surveys-list.tpl.php +++ b/Theme/Backend/surveys-list.tpl.php @@ -23,13 +23,13 @@ echo $this->getData('nav')->render(); ?>
- + -
l11n->lang['Surveys']['Surveys'] ?>l11n->getText('Surveys', 'Surveys') ?>
l11n->lang['Surveys']['Status']; ?> - l11n->lang['Surveys']['Title']; ?> - l11n->lang['Surveys']['Created']; ?> - l11n->lang['Surveys']['Creator']; ?> + l11n->getText('Surveys', 'Status'); ?> + l11n->getText('Surveys', 'Title'); ?> + l11n->getText('Surveys', 'Created'); ?> + l11n->getText('Surveys', 'Creator'); ?>
render(); ?> @@ -37,7 +37,7 @@ echo $this->getData('nav')->render(); ?> $value) : $count++; ?> -
l11n->lang[0]['Empty']; ?> +
l11n->getText(0, 'Empty'); ?>
diff --git a/Theme/backend/surveys-create.tpl.php b/Theme/backend/surveys-create.tpl.php index 1fae1be..341e829 100644 --- a/Theme/backend/surveys-create.tpl.php +++ b/Theme/backend/surveys-create.tpl.php @@ -16,42 +16,42 @@ echo $this->getData('nav')->render(); ?>
-

l11n->lang['Surveys']['Survey'] ?>

+

l11n->getText('Surveys', 'Survey') ?>

-
-
+
-
-
-
+
-
+ +
-

l11n->lang['Surveys']['Section'] ?>

+

l11n->getText('Surveys', 'Section') ?>

-
-
-
-
+
@@ -59,19 +59,19 @@ echo $this->getData('nav')->render(); ?>
-

l11n->lang['Surveys']['Question'] ?>

+

l11n->getText('Surveys', 'Question') ?>

-
-
-
-
+
diff --git a/Theme/backend/surveys-list.tpl.php b/Theme/backend/surveys-list.tpl.php index d2687b3..65255b1 100644 --- a/Theme/backend/surveys-list.tpl.php +++ b/Theme/backend/surveys-list.tpl.php @@ -23,13 +23,13 @@ echo $this->getData('nav')->render(); ?>
- + -
l11n->lang['Surveys']['Surveys'] ?>l11n->getText('Surveys', 'Surveys') ?>
l11n->lang['Surveys']['Status']; ?> - l11n->lang['Surveys']['Title']; ?> - l11n->lang['Surveys']['Created']; ?> - l11n->lang['Surveys']['Creator']; ?> + l11n->getText('Surveys', 'Status'); ?> + l11n->getText('Surveys', 'Title'); ?> + l11n->getText('Surveys', 'Created'); ?> + l11n->getText('Surveys', 'Creator'); ?>
render(); ?> @@ -37,7 +37,7 @@ echo $this->getData('nav')->render(); ?> $value) : $count++; ?> -
l11n->lang[0]['Empty']; ?> +
l11n->getText(0, 'Empty'); ?>