From 15fabe8f5830d6ddf4a677a5ec792e0dc569c3ac Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 5 Jul 2016 19:00:30 +0200 Subject: [PATCH] Dynamic language loading --- Theme/Backend/mid-side.tpl.php | 4 ++-- Theme/Backend/mid.tpl.php | 2 +- Theme/Backend/side.tpl.php | 4 ++-- Theme/Backend/splash.tpl.php | 2 +- Theme/Backend/top.tpl.php | 2 +- Theme/backend/mid-side.tpl.php | 4 ++-- Theme/backend/mid.tpl.php | 2 +- Theme/backend/side.tpl.php | 4 ++-- Theme/backend/top.tpl.php | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Theme/Backend/mid-side.tpl.php b/Theme/Backend/mid-side.tpl.php index e3b5349..db967b0 100644 --- a/Theme/Backend/mid-side.tpl.php +++ b/Theme/Backend/mid-side.tpl.php @@ -20,7 +20,7 @@ /* Looping through all links */ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::CONTENT_SIDE])) { echo '
' - . '

' . $this->l11n->getText(0, 'Navigation') + . '

' . $this->l11n->getText(0, 'Backend', 'Navigation') . '' . '

' . '
' @@ -31,7 +31,7 @@ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::CONTENT_SIDE])) /** @var array $data */ if ($link['nav_parent'] == $data[1]) { echo '
  • ' - . $this->l11n->getText(5, $link['nav_name']) . ''; + . $this->l11n->getText(5, 'Backend', $link['nav_name']) . ''; } } } diff --git a/Theme/Backend/mid.tpl.php b/Theme/Backend/mid.tpl.php index e98bd71..6eb8df0 100644 --- a/Theme/Backend/mid.tpl.php +++ b/Theme/Backend/mid.tpl.php @@ -23,7 +23,7 @@ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::CONTENT])) { foreach ($parent as $link) { if ($link['nav_parent'] == $this->parent) { echo '
  • ' - . $this->l11n->getText('Navigation', $link['nav_name']) . ''; + . $this->l11n->getText('Navigation', 'Backend', $link['nav_name']) . ''; } } } diff --git a/Theme/Backend/side.tpl.php b/Theme/Backend/side.tpl.php index c5225c4..798e776 100644 --- a/Theme/Backend/side.tpl.php +++ b/Theme/Backend/side.tpl.php @@ -25,12 +25,12 @@ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::SIDE])) : ?> - l11n->getText('Navigation', $parent['nav_name']); ?>
  • - l11n->getText('Navigation', $link['nav_name']); ?> + l11n->getText('Navigation', 'Backend', $link['nav_name']); ?> diff --git a/Theme/Backend/splash.tpl.php b/Theme/Backend/splash.tpl.php index 94c78ff..b8a26fb 100644 --- a/Theme/Backend/splash.tpl.php +++ b/Theme/Backend/splash.tpl.php @@ -24,7 +24,7 @@ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::CONTENT])) : diff --git a/Theme/Backend/top.tpl.php b/Theme/Backend/top.tpl.php index f8264df..e038848 100644 --- a/Theme/Backend/top.tpl.php +++ b/Theme/Backend/top.tpl.php @@ -27,7 +27,7 @@ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::TOP])): ?> - l11n->getText('Navigation', $link['nav_name']); ?> + l11n->getText('Navigation', 'Backend', $link['nav_name']); ?> diff --git a/Theme/backend/mid-side.tpl.php b/Theme/backend/mid-side.tpl.php index e3b5349..db967b0 100644 --- a/Theme/backend/mid-side.tpl.php +++ b/Theme/backend/mid-side.tpl.php @@ -20,7 +20,7 @@ /* Looping through all links */ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::CONTENT_SIDE])) { echo '
    ' - . '

    ' . $this->l11n->getText(0, 'Navigation') + . '

    ' . $this->l11n->getText(0, 'Backend', 'Navigation') . '' . '

    ' . '
    ' @@ -31,7 +31,7 @@ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::CONTENT_SIDE])) /** @var array $data */ if ($link['nav_parent'] == $data[1]) { echo '
  • ' - . $this->l11n->getText(5, $link['nav_name']) . ''; + . $this->l11n->getText(5, 'Backend', $link['nav_name']) . ''; } } } diff --git a/Theme/backend/mid.tpl.php b/Theme/backend/mid.tpl.php index e98bd71..6eb8df0 100644 --- a/Theme/backend/mid.tpl.php +++ b/Theme/backend/mid.tpl.php @@ -23,7 +23,7 @@ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::CONTENT])) { foreach ($parent as $link) { if ($link['nav_parent'] == $this->parent) { echo '
  • ' - . $this->l11n->getText('Navigation', $link['nav_name']) . ''; + . $this->l11n->getText('Navigation', 'Backend', $link['nav_name']) . ''; } } } diff --git a/Theme/backend/side.tpl.php b/Theme/backend/side.tpl.php index c5225c4..798e776 100644 --- a/Theme/backend/side.tpl.php +++ b/Theme/backend/side.tpl.php @@ -25,12 +25,12 @@ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::SIDE])) : ?> - l11n->getText('Navigation', $parent['nav_name']); ?>
  • - l11n->getText('Navigation', $link['nav_name']); ?> + l11n->getText('Navigation', 'Backend', $link['nav_name']); ?> diff --git a/Theme/backend/top.tpl.php b/Theme/backend/top.tpl.php index f8264df..e038848 100644 --- a/Theme/backend/top.tpl.php +++ b/Theme/backend/top.tpl.php @@ -27,7 +27,7 @@ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::TOP])): ?> - l11n->getText('Navigation', $link['nav_name']); ?> + l11n->getText('Navigation', 'Backend', $link['nav_name']); ?>