diff --git a/application/modules/admin/translations/de.php b/application/modules/admin/translations/de.php index 3295ad111..0a717fe99 100644 --- a/application/modules/admin/translations/de.php +++ b/application/modules/admin/translations/de.php @@ -97,7 +97,7 @@ 'off' => 'Aus', 'yes' => 'Ja', 'no' => 'Nein', - 'httpOrMedia' => 'http:// oder Medien', + 'httpOrMedia' => 'https:// oder Medien', 'favicon' => 'Favicon', 'appleIcon' => 'Apple Touch Icon', 'backendFunctions' => 'Backend - Funktionen', @@ -181,6 +181,9 @@ 'addButtonBox' => 'Box anlegen', 'updateButtonBox' => 'Box aktualisieren', 'noBoxes' => 'Keine Boxen vorhanden', + 'multilingualContent' => 'Mehrsprachiger Inhalt', + 'addContentLanguage' => 'Sprache hinzufügen', + 'editContentLanguage' => 'Sprache bearbeiten', 'notVisible' => 'Nicht sichtbar für', 'selectAssignedGroups' => 'Ausgewählte Gruppen', 'askIfDeleteBox' => 'Sind Sie sicher, dass die Box "%s" entfernt werden soll?', diff --git a/application/modules/admin/translations/en.php b/application/modules/admin/translations/en.php index fbce3dbb1..aee93233d 100644 --- a/application/modules/admin/translations/en.php +++ b/application/modules/admin/translations/en.php @@ -97,7 +97,7 @@ 'off' => 'Off', 'yes' => 'Yes', 'no' => 'No', - 'httpOrMedia' => 'http:// or Media', + 'httpOrMedia' => 'https:// or Media', 'favicon' => 'Favicon', 'appleIcon' => 'Apple Touch Icon', 'backendFunctions' => 'Backend - Functions', @@ -181,6 +181,9 @@ 'addButtonBox' => 'Add box', 'updateButtonBox' => 'Update box', 'noBoxes' => 'No Boxes', + 'multilingualContent' => 'Multilingual content', + 'addContentLanguage' => 'Add a language', + 'editContentLanguage' => 'Edit the language', 'notVisible' => 'Not visible for', 'selectAssignedGroups' => 'Selected groups', 'askIfDeleteBox' => 'Are you sure you want delete the box "%s"?', diff --git a/application/modules/admin/views/admin/boxes/index.php b/application/modules/admin/views/admin/boxes/index.php index 1bf84fd72..55fc13d9e 100644 --- a/application/modules/admin/views/admin/boxes/index.php +++ b/application/modules/admin/views/admin/boxes/index.php @@ -8,7 +8,7 @@ - get('multilingual')): ?> + get('multilingual')) : ?> @@ -24,44 +24,44 @@ get('sorter')->getArrowHtml('title') ?> getTrans('boxTitle') ?>  - get('multilingual')): ?> + get('multilingual')) : ?> - getTranslator()->getLocaleList() as $key => $value): ?> - get('contentLanguage')): ?> + getTranslator()->getLocaleList() as $key => $value) : ?> + get('contentLanguage')) : ?> - + <?=$this->getTrans('multilingualContent') ?> - get('boxes'))): ?> - get('boxes') as $box): ?> + get('boxes'))) : ?> + get('boxes') as $box) : ?> getDeleteCheckbox('check_boxes', $box->getId()) ?> getEditIcon(['action' => 'treat', 'id' => $box->getId()]) ?> getDeleteIcon(['action' => 'delete', 'id' => $box->getId()]) ?> - getTitle() !== ''): ?> + getTitle() !== '') : ?> escape($box->getTitle()) ?> getTrans('noTitleBox') ?> - get('multilingual')): ?> + get('multilingual')) : ?> - getTranslator()->getLocaleList() as $key => $value): ?> - get('contentLanguage')): ?> + getTranslator()->getLocaleList() as $key => $value) : ?> + get('contentLanguage')) : ?> - get('boxMapper')->getSelfBoxByIdLocale($box->getId(), $key) != null): ?> - + get('boxMapper')->getSelfBoxByIdLocale($box->getId(), $key) != null) : ?> + - + diff --git a/application/modules/admin/views/admin/page/index.php b/application/modules/admin/views/admin/page/index.php index 10c423887..4113df8f2 100644 --- a/application/modules/admin/views/admin/page/index.php +++ b/application/modules/admin/views/admin/page/index.php @@ -8,7 +8,7 @@ - get('multilingual')): ?> + get('multilingual')) : ?> @@ -22,24 +22,22 @@ get('sorter')->getArrowHtml('title') ?> getTrans('pageTitle') ?>  - get('multilingual')) { - echo ''; + get('multilingual')) : ?> + + getTranslator()->getLocaleList() as $key => $value) : ?> + get('contentLanguage')) : ?> + + - foreach ($this->getTranslator()->getLocaleList() as $key => $value) { - if ($key == $this->get('contentLanguage')) { - continue; - } - echo ' '; - } - echo ''; - } - ?> + <?=$this->getTrans('multilingualContent') ?> + + + - get('pages'))): ?> - get('pages') as $page): ?> + get('pages'))) : ?> + get('pages') as $page) : ?> getDeleteCheckbox('check_pages', $page->getId()) ?> getEditIcon(['action' => 'treat', 'id' => $page->getId()]) ?> @@ -47,23 +45,21 @@ escape($page->getTitle()) ?> - get('multilingual')) { - echo ''; - foreach ($this->getTranslator()->getLocaleList() as $key => $value) { - if ($key == $this->get('contentLanguage')) { - continue; - } + get('multilingual')) : ?> + + getTranslator()->getLocaleList() as $key => $value) : ?> + get('contentLanguage')) : ?> + + - if ($this->get('pageMapper')->getPageByIdLocale($page->getId(), $key) != null) { - echo ''; - } else { - echo ''; - } - } - echo ''; - } - ?> + get('pageMapper')->getPageByIdLocale($page->getId(), $key) != null) : ?> + + + + + + +