From 121a52e615a58850d95972523255f69c0f04afa1 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/production-list.tpl.php | 20 ++++++++++---------- Theme/backend/production-list.tpl.php | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Theme/Backend/production-list.tpl.php b/Theme/Backend/production-list.tpl.php index 5bbb108..bc55597 100644 --- a/Theme/Backend/production-list.tpl.php +++ b/Theme/Backend/production-list.tpl.php @@ -28,17 +28,17 @@ echo $this->getData('nav')->render(); ?>
- + - @@ -52,7 +52,7 @@ echo $this->getData('nav')->render(); ?> -
l11n->lang['Production']['Productions']; ?>l11n->getText('Production', 'Productions'); ?>
l11n->lang['Production']['Status']; ?> - l11n->lang[0]['ID']; ?> - l11n->lang[0]['ID']; ?> - l11n->lang['Production']['Article']; ?> - l11n->lang['Production']['Quantity']; ?> - l11n->lang['Production']['Start']; ?> - l11n->lang['Production']['Due']; ?> - l11n->lang['Production']['Done']; ?> + l11n->getText('Production', 'Status'); ?> + l11n->getText(0, 'ID'); ?> + l11n->getText(0, 'ID'); ?> + l11n->getText('Production', 'Article'); ?> + l11n->getText('Production', 'Quantity'); ?> + l11n->getText('Production', 'Start'); ?> + l11n->getText('Production', 'Due'); ?> + l11n->getText('Production', 'Done'); ?>
render(); ?>
l11n->lang[0]['Empty']; ?> + l11n->getText(0, 'Empty'); ?>
diff --git a/Theme/backend/production-list.tpl.php b/Theme/backend/production-list.tpl.php index 5bbb108..bc55597 100644 --- a/Theme/backend/production-list.tpl.php +++ b/Theme/backend/production-list.tpl.php @@ -28,17 +28,17 @@ echo $this->getData('nav')->render(); ?>
- + - @@ -52,7 +52,7 @@ echo $this->getData('nav')->render(); ?> -
l11n->lang['Production']['Productions']; ?>l11n->getText('Production', 'Productions'); ?>
l11n->lang['Production']['Status']; ?> - l11n->lang[0]['ID']; ?> - l11n->lang[0]['ID']; ?> - l11n->lang['Production']['Article']; ?> - l11n->lang['Production']['Quantity']; ?> - l11n->lang['Production']['Start']; ?> - l11n->lang['Production']['Due']; ?> - l11n->lang['Production']['Done']; ?> + l11n->getText('Production', 'Status'); ?> + l11n->getText(0, 'ID'); ?> + l11n->getText(0, 'ID'); ?> + l11n->getText('Production', 'Article'); ?> + l11n->getText('Production', 'Quantity'); ?> + l11n->getText('Production', 'Start'); ?> + l11n->getText('Production', 'Due'); ?> + l11n->getText('Production', 'Done'); ?>
render(); ?>
l11n->lang[0]['Empty']; ?> + l11n->getText(0, 'Empty'); ?>