From 2af7e97eac0a432241d22cb9f68bbe82bd679b38 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/calendar-dashboard.tpl.php | 16 ++++++++-------- Theme/backend/calendar-dashboard.tpl.php | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Theme/Backend/calendar-dashboard.tpl.php b/Theme/Backend/calendar-dashboard.tpl.php index 0d0d510..eefdcd0 100644 --- a/Theme/Backend/calendar-dashboard.tpl.php +++ b/Theme/Backend/calendar-dashboard.tpl.php @@ -8,10 +8,10 @@ $calendar = $this->getData('calendar');
  • @@ -21,9 +21,9 @@ $calendar = $this->getData('calendar');
    getDate()->getFirstDayOfMonth() <= $i*7+$j+1 && $calendar->getDate()->getDaysOfMonth() >= $i*7+$j+1) { - echo ($i*7+$j+1) . ' ' . $this->l11n->lang[0][jddayofweek($j, 1)]; + echo ($i*7+$j+1) . ' ' . $this->l11n->getText(0, jddayofweek($j, 1)); } else { - echo (($i*7+$j+1)-$calendar->getDate()->getDaysOfMonth()) . ' ' . $this->l11n->lang[0][jddayofweek($j, 1)]; + echo (($i*7+$j+1)-$calendar->getDate()->getDaysOfMonth()) . ' ' . $this->l11n->getText(0, jddayofweek($j, 1)); } ?>
      getData('calendar');
    - +
    - + diff --git a/Theme/backend/calendar-dashboard.tpl.php b/Theme/backend/calendar-dashboard.tpl.php index 0d0d510..eefdcd0 100644 --- a/Theme/backend/calendar-dashboard.tpl.php +++ b/Theme/backend/calendar-dashboard.tpl.php @@ -8,10 +8,10 @@ $calendar = $this->getData('calendar');
  • @@ -21,9 +21,9 @@ $calendar = $this->getData('calendar');
    getDate()->getFirstDayOfMonth() <= $i*7+$j+1 && $calendar->getDate()->getDaysOfMonth() >= $i*7+$j+1) { - echo ($i*7+$j+1) . ' ' . $this->l11n->lang[0][jddayofweek($j, 1)]; + echo ($i*7+$j+1) . ' ' . $this->l11n->getText(0, jddayofweek($j, 1)); } else { - echo (($i*7+$j+1)-$calendar->getDate()->getDaysOfMonth()) . ' ' . $this->l11n->lang[0][jddayofweek($j, 1)]; + echo (($i*7+$j+1)-$calendar->getDate()->getDaysOfMonth()) . ' ' . $this->l11n->getText(0, jddayofweek($j, 1)); } ?>
      getData('calendar');
    - +
    - +