From 5b021b5a840aa1449c5f3a0ed89ad46e725bdb4d 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/media-create.tpl.php | 8 ++++---- Theme/Backend/media-list.tpl.php | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Theme/Backend/media-create.tpl.php b/Theme/Backend/media-create.tpl.php index 1608b77..e09d0ae 100644 --- a/Theme/Backend/media-create.tpl.php +++ b/Theme/Backend/media-create.tpl.php @@ -19,15 +19,15 @@ echo $this->getData('nav')->render(); ?>
-

l11n->lang['Media']['Upload']; ?>

+

l11n->getText('Media', 'Upload'); ?>

-
+
-
+
-
+
diff --git a/Theme/Backend/media-list.tpl.php b/Theme/Backend/media-list.tpl.php index 14e6c93..c269df0 100644 --- a/Theme/Backend/media-list.tpl.php +++ b/Theme/Backend/media-list.tpl.php @@ -26,14 +26,14 @@ $footerView->setPage(1); echo $this->getData('nav')->render(); ?>
- + -
l11n->lang['Media']['Media']; ?>l11n->getText('Media', 'Media'); ?>
l11n->lang['Media']['Name']; ?> - l11n->lang['Media']['Type']; ?> - l11n->lang['Media']['Size']; ?> - l11n->lang['Media']['Creator']; ?> - l11n->lang['Media']['Created']; ?> + l11n->getText('Media', 'Name'); ?> + l11n->getText('Media', 'Type'); ?> + l11n->getText('Media', 'Size'); ?> + l11n->getText('Media', 'Creator'); ?> + l11n->getText('Media', 'Created'); ?>
render(); ?> @@ -48,7 +48,7 @@ echo $this->getData('nav')->render(); ?> getCreatedAt()->format('Y-m-d H:i:s'); ?> -
l11n->lang[0]['Empty']; ?> +
l11n->getText(0, 'Empty'); ?>