From d3648ef6a6b2177eabc8724ccf9e7ba3771e09b9 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/support-list.tpl.php | 14 +++++++------- Theme/Backend/ticket-create.tpl.php | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Theme/Backend/support-list.tpl.php b/Theme/Backend/support-list.tpl.php index c1491dd..67d209b 100644 --- a/Theme/Backend/support-list.tpl.php +++ b/Theme/Backend/support-list.tpl.php @@ -20,15 +20,15 @@ echo $this->getData('nav')->render(); ?>
- + - -
l11n->lang['Support']['Tickets']; ?>l11n->getText('Support', 'Tickets'); ?>
l11n->lang[0]['ID']; ?> - l11n->lang['Support']['Status']; ?> - l11n->lang['Support']['Priority']; ?> - l11n->lang['Support']['Title']; ?> - l11n->lang['Support']['Responsible']; ?> +
l11n->getText(0, 'ID'); ?> + l11n->getText('Support', 'Status'); ?> + l11n->getText('Support', 'Priority'); ?> + l11n->getText('Support', 'Title'); ?> + l11n->getText('Support', 'Responsible'); ?>
l11n->lang[0]['Empty']; ?> +
l11n->getText(0, 'Empty'); ?>
diff --git a/Theme/Backend/ticket-create.tpl.php b/Theme/Backend/ticket-create.tpl.php index 2633f44..cb6471a 100644 --- a/Theme/Backend/ticket-create.tpl.php +++ b/Theme/Backend/ticket-create.tpl.php @@ -19,22 +19,22 @@ echo $this->getData('nav')->render(); ?>
-

l11n->lang['Support']['Ticket'] ?>

+

l11n->getText('Support', 'Ticket') ?>

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