diff --git a/Theme/Backend/accounts-create.tpl.php b/Theme/Backend/accounts-create.tpl.php index 8b38f6b..c806419 100644 --- a/Theme/Backend/accounts-create.tpl.php +++ b/Theme/Backend/accounts-create.tpl.php @@ -16,64 +16,64 @@ echo $this->getData('nav')->render(); ?> - = $this->l11n->lang['Admin']['Account'] ?> + = $this->l11n->getText('Admin', 'Account') ?> - = $this->l11n->lang['Admin']['Type'] ?> + = $this->l11n->getText('Admin', 'Type') ?> - = $this->l11n->lang['Admin']['Person'] ?> - = $this->l11n->lang['Admin']['Organization'] ?> + = $this->l11n->getText('Admin', 'Person') ?> + = $this->l11n->getText('Admin', 'Organization') ?> - = $this->l11n->lang['Admin']['Status'] ?> + = $this->l11n->getText('Admin', 'Status') ?> - = $this->l11n->lang['Admin']['Active'] ?> - = $this->l11n->lang['Admin']['Inactive'] ?> - = $this->l11n->lang['Admin']['Timeout'] ?> - = $this->l11n->lang['Admin']['Banned'] ?> + = $this->l11n->getText('Admin', 'Active') ?> + = $this->l11n->getText('Admin', 'Inactive') ?> + = $this->l11n->getText('Admin', 'Timeout') ?> + = $this->l11n->getText('Admin', 'Banned') ?> - = $this->l11n->lang['Admin']['Username'] ?> + = $this->l11n->getText('Admin', 'Username') ?> - = $this->l11n->lang['Admin']['Name1'] ?> + = $this->l11n->getText('Admin', 'Name1') ?> - = $this->l11n->lang['Admin']['Name2'] ?> + = $this->l11n->getText('Admin', 'Name2') ?> - = $this->l11n->lang['Admin']['Name3'] ?> + = $this->l11n->getText('Admin', 'Name3') ?> - = $this->l11n->lang['Admin']['Email'] ?> + = $this->l11n->getText('Admin', 'Email') ?> - = $this->l11n->lang['Admin']['Name3'] ?> + = $this->l11n->getText('Admin', 'Name3') ?> - + - = $this->l11n->lang['Admin']['Groups'] ?> + = $this->l11n->getText('Admin', 'Groups') ?> - = $this->l11n->lang['Admin']['Name'] ?> + = $this->l11n->getText('Admin', 'Name') ?> - + - = $this->l11n->lang['Admin']['Permissions'] ?> + = $this->l11n->getText('Admin', 'Permissions') ?> - = $this->l11n->lang['Admin']['Name'] ?> + = $this->l11n->getText('Admin', 'Name') ?> - + diff --git a/Theme/Backend/groups-list.tpl.php b/Theme/Backend/groups-list.tpl.php index c55786a..787512d 100644 --- a/Theme/Backend/groups-list.tpl.php +++ b/Theme/Backend/groups-list.tpl.php @@ -28,14 +28,14 @@ echo $this->getData('nav')->render(); ?> - = $this->l11n->lang['Admin']['Groups']; ?> + = $this->l11n->getText('Admin', 'Groups'); ?> - = $this->l11n->lang[0]['ID']; ?> - = $this->l11n->lang['Admin']['Name']; ?> - = $this->l11n->lang['Admin']['Parents']; ?> - = $this->l11n->lang['Admin']['Children']; ?> - = $this->l11n->lang['Admin']['Members']; ?> + = $this->l11n->getText(0, 'ID'); ?> + = $this->l11n->getText('Admin', 'Name'); ?> + = $this->l11n->getText('Admin', 'Parents'); ?> + = $this->l11n->getText('Admin', 'Children'); ?> + = $this->l11n->getText('Admin', 'Members'); ?> = $footerView->render(); ?> @@ -49,7 +49,7 @@ echo $this->getData('nav')->render(); ?> - = $this->l11n->lang[0]['Empty']; ?> + = $this->l11n->getText(0, 'Empty'); ?> diff --git a/Theme/backend/groups-single.tpl.php b/Theme/backend/groups-single.tpl.php index 908177b..2b82832 100644 --- a/Theme/backend/groups-single.tpl.php +++ b/Theme/backend/groups-single.tpl.php @@ -22,60 +22,60 @@ $group = $this->getData('group'); echo $this->getData('nav')->render(); ?> - = $this->l11n->lang['Admin']['Group'] ?> + = $this->l11n->getText('Admin', 'Group') ?> - = $this->l11n->lang[0]['ID'] ?> + = $this->l11n->getText(0, 'ID') ?> - = $this->l11n->lang['Admin']['Name'] ?> + = $this->l11n->getText('Admin', 'Name') ?> - = $this->l11n->lang['Admin']['Description'] ?> + = $this->l11n->getText('Admin', 'Description') ?> = $group->getDescription(); ?> - + - = $this->l11n->lang['Admin']['Parent'] ?> + = $this->l11n->getText('Admin', 'Parent') ?> - = $this->l11n->lang['Admin']['Name'] ?> + = $this->l11n->getText('Admin', 'Name') ?> - + - = $this->l11n->lang['Admin']['Permissions'] ?> + = $this->l11n->getText('Admin', 'Permissions') ?> - = $this->l11n->lang['Admin']['Name'] ?> + = $this->l11n->getText('Admin', 'Name') ?> - + - = $this->l11n->lang['Admin']['Accounts'] ?> + = $this->l11n->getText('Admin', 'Accounts') ?> - = $this->l11n->lang['Admin']['Name'] ?> + = $this->l11n->getText('Admin', 'Name') ?> - + diff --git a/Theme/backend/modules-list.tpl.php b/Theme/backend/modules-list.tpl.php index c98d873..948b9cd 100644 --- a/Theme/backend/modules-list.tpl.php +++ b/Theme/backend/modules-list.tpl.php @@ -31,13 +31,13 @@ $footerView->setResults(count($modules)); - = $this->l11n->lang['Admin']['Modules']; ?> + = $this->l11n->getText('Admin', 'Modules'); ?> - = $this->l11n->lang[0]['ID']; ?> - = $this->l11n->lang['Admin']['Name']; ?> - = $this->l11n->lang['Admin']['Version']; ?> - = $this->l11n->lang['Admin']['Status']; ?> + = $this->l11n->getText(0, 'ID'); ?> + = $this->l11n->getText('Admin', 'Name'); ?> + = $this->l11n->getText('Admin', 'Version'); ?> + = $this->l11n->getText('Admin', 'Status'); ?> = $footerView->render(); ?> @@ -49,14 +49,14 @@ $footerView->setResults(count($modules)); = $module['name']['external']; ?> = $module['version']; ?> l11n->lang['Admin']['Active']); + echo strtolower($this->l11n->getText('Admin', 'Active')); elseif (in_array($module['name']['internal'], $installed)) - echo strtolower($this->l11n->lang['Admin']['Inactive']); + echo strtolower($this->l11n->getText('Admin', 'Inactive')); else - echo strtolower($this->l11n->lang['Admin']['Available']); ?> + echo strtolower($this->l11n->getText('Admin', 'Available')); ?> - = $this->l11n->lang[0]['Empty']; ?> + = $this->l11n->getText(0, 'Empty'); ?> diff --git a/Theme/backend/modules-single.tpl.php b/Theme/backend/modules-single.tpl.php index f0d370b..d18e724 100644 --- a/Theme/backend/modules-single.tpl.php +++ b/Theme/backend/modules-single.tpl.php @@ -31,38 +31,38 @@ $id = $this->request->getData('id') ?? 1; - = $this->l11n->lang['Admin']['Name'] ?> + = $this->l11n->getText('Admin', 'Name') ?> = $modules[$id]['name']['external']; ?> - = $this->l11n->lang['Admin']['Version'] ?> + = $this->l11n->getText('Admin', 'Version') ?> = $modules[$id]['version'] ?> - = $this->l11n->lang['Admin']['CreatedBy'] ?> + = $this->l11n->getText('Admin', 'CreatedBy') ?> = $modules[$id]['creator']['name'] ?> - = $this->l11n->lang['Admin']['Website'] ?> + = $this->l11n->getText('Admin', 'Website') ?> = $modules[$id]['creator']['website'] ?> - = $this->l11n->lang['Admin']['Description'] ?> + = $this->l11n->getText('Admin', 'Description') ?> = $modules[$id]['description'] ?> = $this->l11n->lang['Admin']['Deactivate'] ?> + data-reload="= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/status?status=deactivate&module=' . $id); ?>">= $this->l11n->getText('Admin', 'Deactivate') ?> - = $this->l11n->lang['Admin']['Uninstall'] ?> - = $this->l11n->lang['Admin']['Activate'] ?> + = $this->l11n->getText('Admin', 'Uninstall') ?> + = $this->l11n->getText('Admin', 'Activate') ?> - = $this->l11n->lang['Admin']['Install'] ?> - = $this->l11n->lang['Admin']['Delete'] ?> + = $this->l11n->getText('Admin', 'Install') ?> + = $this->l11n->getText('Admin', 'Delete') ?> - = $this->l11n->lang['Admin']['Settings'] ?> + = $this->l11n->getText('Admin', 'Settings') ?> @@ -70,7 +70,7 @@ $id = $this->request->getData('id') ?? 1; - = $this->l11n->lang['Admin']['Groups'] ?> + = $this->l11n->getText('Admin', 'Groups') ?> @@ -78,7 +78,7 @@ $id = $this->request->getData('id') ?? 1; - = $this->l11n->lang['Admin']['Permissions'] ?> + = $this->l11n->getText('Admin', 'Permissions') ?>