diff --git a/Theme/backend/accounts-create.tpl.php b/Theme/backend/accounts-create.tpl.php index e0ddf44..b9e23ea 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->getText('Admin', 'Backend', 'Account') ?> + = $this->getText('Account') ?> - = $this->l11n->getText('Admin', 'Backend', 'Type') ?> + = $this->getText('Type') ?> - = $this->l11n->getText('Admin', 'Backend', 'Person') ?> - = $this->l11n->getText('Admin', 'Backend', 'Organization') ?> + = $this->getText('Person') ?> + = $this->getText('Organization') ?> - = $this->l11n->getText('Admin', 'Backend', 'Status') ?> + = $this->getText('Status') ?> - = $this->l11n->getText('Admin', 'Backend', 'Active') ?> - = $this->l11n->getText('Admin', 'Backend', 'Inactive') ?> - = $this->l11n->getText('Admin', 'Backend', 'Timeout') ?> - = $this->l11n->getText('Admin', 'Backend', 'Banned') ?> + = $this->getText('Active') ?> + = $this->getText('Inactive') ?> + = $this->getText('Timeout') ?> + = $this->getText('Banned') ?> - = $this->l11n->getText('Admin', 'Backend', 'Username') ?> + = $this->getText('Username') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name1') ?> + = $this->getText('Name1') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name2') ?> + = $this->getText('Name2') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name3') ?> + = $this->getText('Name3') ?> - = $this->l11n->getText('Admin', 'Backend', 'Email') ?> + = $this->getText('Email') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name3') ?> + = $this->getText('Name3') ?> - + - = $this->l11n->getText('Admin', 'Backend', 'Groups') ?> + = $this->getText('Groups') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name') ?> + = $this->getText('Name') ?> - + - = $this->l11n->getText('Admin', 'Backend', 'Permissions') ?> + = $this->getText('Permissions') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name') ?> + = $this->getText('Name') ?> - + diff --git a/Theme/backend/accounts-list.tpl.php b/Theme/backend/accounts-list.tpl.php index 5fef9cb..e94c38b 100644 --- a/Theme/backend/accounts-list.tpl.php +++ b/Theme/backend/accounts-list.tpl.php @@ -30,14 +30,14 @@ echo $this->getData('nav')->render(); - = $this->l11n->getText('Admin', 'Backend', 'Groups'); ?> + = $this->getText('Groups'); ?> - = $this->l11n->getText(0, 'Backend', 'ID'); ?> - = $this->l11n->getText('Admin', 'Backend', 'Status'); ?> - = $this->l11n->getText('Admin', 'Backend', 'Name'); ?> - = $this->l11n->getText('Admin', 'Backend', 'Activity'); ?> - = $this->l11n->getText('Admin', 'Backend', 'Created'); ?> + = $this->getText('ID'); ?> + = $this->getText('Status'); ?> + = $this->getText('Name'); ?> + = $this->getText('Activity'); ?> + = $this->getText('Created'); ?> = $footerView->render(); ?> @@ -51,7 +51,7 @@ echo $this->getData('nav')->render(); = $value->getCreatedAt()->format('Y-m-d H:i:s'); ?> - = $this->l11n->getText(0, 'Backend', 'Empty'); ?> + = $this->getText('Empty'); ?> diff --git a/Theme/backend/accounts-single.tpl.php b/Theme/backend/accounts-single.tpl.php index 6f7fd3f..70b94b5 100644 --- a/Theme/backend/accounts-single.tpl.php +++ b/Theme/backend/accounts-single.tpl.php @@ -21,66 +21,66 @@ $account = $this->getData('account'); echo $this->getData('nav')->render(); ?> - = $this->l11n->getText('Admin', 'Backend', 'Account') ?> + = $this->getText('Account') ?> - = $this->l11n->getText(0, 'Backend', 'ID') ?> + = $this->getText('ID') ?> - = $this->l11n->getText('Admin', 'Backend', 'Type') ?> + = $this->getText('Type') ?> - getType() === \phpOMS\Account\AccountType::USER ? ' selected' : ''; ?>>= $this->l11n->getText('Admin', 'Backend', 'Person') ?> - getType() === \phpOMS\Account\AccountType::GROUP ? ' selected' : ''; ?>>= $this->l11n->getText('Admin', 'Backend', 'Organization') ?> + getType() === \phpOMS\Account\AccountType::USER ? ' selected' : ''; ?>>= $this->getText('Person') ?> + getType() === \phpOMS\Account\AccountType::GROUP ? ' selected' : ''; ?>>= $this->getText('Organization') ?> - = $this->l11n->getText('Admin', 'Backend', 'Status') ?> + = $this->getText('Status') ?> - getStatus() === \phpOMS\Account\AccountStatus::ACTIVE ? ' selected' : ''; ?>>= $this->l11n->getText('Admin', 'Backend', 'Active') ?> - getStatus() === \phpOMS\Account\AccountStatus::INACTIVE ? ' selected' : ''; ?>>= $this->l11n->getText('Admin', 'Backend', 'Inactive') ?> - getStatus() === \phpOMS\Account\AccountStatus::TIMEOUT ? ' selected' : ''; ?>>= $this->l11n->getText('Admin', 'Backend', 'Timeout') ?> - getStatus() === \phpOMS\Account\AccountStatus::BANNED ? ' selected' : ''; ?>>= $this->l11n->getText('Admin', 'Backend', 'Banned') ?> + getStatus() === \phpOMS\Account\AccountStatus::ACTIVE ? ' selected' : ''; ?>>= $this->getText('Active') ?> + getStatus() === \phpOMS\Account\AccountStatus::INACTIVE ? ' selected' : ''; ?>>= $this->getText('Inactive') ?> + getStatus() === \phpOMS\Account\AccountStatus::TIMEOUT ? ' selected' : ''; ?>>= $this->getText('Timeout') ?> + getStatus() === \phpOMS\Account\AccountStatus::BANNED ? ' selected' : ''; ?>>= $this->getText('Banned') ?> - = $this->l11n->getText('Admin', 'Backend', 'Username') ?> + = $this->getText('Username') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name1') ?> + = $this->getText('Name1') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name2') ?> + = $this->getText('Name2') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name3') ?> + = $this->getText('Name3') ?> - = $this->l11n->getText('Admin', 'Backend', 'Email') ?> + = $this->getText('Email') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name3') ?> + = $this->getText('Name3') ?> - + - = $this->l11n->getText('Admin', 'Backend', 'Groups') ?> + = $this->getText('Groups') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name') ?> + = $this->getText('Name') ?> - + - = $this->l11n->getText('Admin', 'Backend', 'Permissions') ?> + = $this->getText('Permissions') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name') ?> + = $this->getText('Name') ?> - + diff --git a/Theme/backend/groups-create.tpl.php b/Theme/backend/groups-create.tpl.php index 2cda78a..8d92ecf 100644 --- a/Theme/backend/groups-create.tpl.php +++ b/Theme/backend/groups-create.tpl.php @@ -20,44 +20,44 @@ echo $this->getData('nav')->render(); ?> - = $this->l11n->getText('Admin', 'Backend', 'Group') ?> + = $this->getText('Group') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name') ?> + = $this->getText('Name') ?> - = $this->l11n->getText('Admin', 'Backend', 'Description') ?> + = $this->getText('Description') ?> - + - = $this->l11n->getText('Admin', 'Backend', 'Parent') ?> + = $this->getText('Parent') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name') ?> + = $this->getText('Name') ?> - + - = $this->l11n->getText('Admin', 'Backend', 'Permissions') ?> + = $this->getText('Permissions') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name') ?> + = $this->getText('Name') ?> - + diff --git a/Theme/backend/groups-list.tpl.php b/Theme/backend/groups-list.tpl.php index b23d89b..30d09d4 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->getText('Admin', 'Backend', 'Groups'); ?> + = $this->getText('Groups'); ?> - = $this->l11n->getText(0, 'Backend', 'ID'); ?> - = $this->l11n->getText('Admin', 'Backend', 'Name'); ?> - = $this->l11n->getText('Admin', 'Backend', 'Parents'); ?> - = $this->l11n->getText('Admin', 'Backend', 'Children'); ?> - = $this->l11n->getText('Admin', 'Backend', 'Members'); ?> + = $this->getText('ID'); ?> + = $this->getText('Name'); ?> + = $this->getText('Parents'); ?> + = $this->getText('Children'); ?> + = $this->getText('Members'); ?> = $footerView->render(); ?> @@ -49,7 +49,7 @@ echo $this->getData('nav')->render(); ?> - = $this->l11n->getText(0, 'Backend', 'Empty'); ?> + = $this->getText('Empty'); ?> diff --git a/Theme/backend/groups-single.tpl.php b/Theme/backend/groups-single.tpl.php index 58fdc75..bc10fae 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->getText('Admin', 'Backend', 'Group') ?> + = $this->getText('Group') ?> - = $this->l11n->getText(0, 'Backend', 'ID') ?> + = $this->getText('ID') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name') ?> + = $this->getText('Name') ?> - = $this->l11n->getText('Admin', 'Backend', 'Description') ?> + = $this->getText('Description') ?> = $group->getDescription(); ?> - + - = $this->l11n->getText('Admin', 'Backend', 'Parent') ?> + = $this->getText('Parent') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name') ?> + = $this->getText('Name') ?> - + - = $this->l11n->getText('Admin', 'Backend', 'Permissions') ?> + = $this->getText('Permissions') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name') ?> + = $this->getText('Name') ?> - + - = $this->l11n->getText('Admin', 'Backend', 'Accounts') ?> + = $this->getText('Accounts') ?> - = $this->l11n->getText('Admin', 'Backend', 'Name') ?> + = $this->getText('Name') ?> - + diff --git a/Theme/backend/modules-list.tpl.php b/Theme/backend/modules-list.tpl.php index c9d8830..33695af 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->getText('Admin', 'Backend', 'Modules'); ?> + = $this->getText('Modules'); ?> - = $this->l11n->getText(0, 'Backend', 'ID'); ?> - = $this->l11n->getText('Admin', 'Backend', 'Name'); ?> - = $this->l11n->getText('Admin', 'Backend', 'Version'); ?> - = $this->l11n->getText('Admin', 'Backend', 'Status'); ?> + = $this->getText('ID'); ?> + = $this->getText('Name'); ?> + = $this->getText('Version'); ?> + = $this->getText('Status'); ?> = $footerView->render(); ?> @@ -49,14 +49,14 @@ $footerView->setResults(count($modules)); = $module['name']['external']; ?> = $module['version']; ?> l11n->getText('Admin', 'Backend', 'Active')); + echo strtolower($this->getText('Active')); elseif (in_array($module['name']['internal'], $installed)) - echo strtolower($this->l11n->getText('Admin', 'Backend', 'Inactive')); + echo strtolower($this->getText('Inactive')); else - echo strtolower($this->l11n->getText('Admin', 'Backend', 'Available')); ?> + echo strtolower($this->getText('Available')); ?> - = $this->l11n->getText(0, 'Backend', 'Empty'); ?> + = $this->getText('Empty'); ?> diff --git a/Theme/backend/modules-single.tpl.php b/Theme/backend/modules-single.tpl.php index 2f5a3ec..6b84b9e 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->getText('Admin', 'Backend', 'Name') ?> + = $this->getText('Name') ?> = $modules[$id]['name']['external']; ?> - = $this->l11n->getText('Admin', 'Backend', 'Version') ?> + = $this->getText('Version') ?> = $modules[$id]['version'] ?> - = $this->l11n->getText('Admin', 'Backend', 'CreatedBy') ?> + = $this->getText('CreatedBy') ?> = $modules[$id]['creator']['name'] ?> - = $this->l11n->getText('Admin', 'Backend', 'Website') ?> + = $this->getText('Website') ?> = $modules[$id]['creator']['website'] ?> - = $this->l11n->getText('Admin', 'Backend', 'Description') ?> + = $this->getText('Description') ?> = $modules[$id]['description'] ?> = $this->l11n->getText('Admin', 'Backend', 'Deactivate') ?> + data-reload="= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/status?status=deactivate&module=' . $id); ?>">= $this->getText('Deactivate') ?> - = $this->l11n->getText('Admin', 'Backend', 'Uninstall') ?> - = $this->l11n->getText('Admin', 'Backend', 'Activate') ?> + = $this->getText('Uninstall') ?> + = $this->getText('Activate') ?> - = $this->l11n->getText('Admin', 'Backend', 'Install') ?> - = $this->l11n->getText('Admin', 'Backend', 'Delete') ?> + = $this->getText('Install') ?> + = $this->getText('Delete') ?> - = $this->l11n->getText('Admin', 'Backend', 'Settings') ?> + = $this->getText('Settings') ?> @@ -70,7 +70,7 @@ $id = $this->request->getData('id') ?? 1; - = $this->l11n->getText('Admin', 'Backend', 'Groups') ?> + = $this->getText('Groups') ?> @@ -78,7 +78,7 @@ $id = $this->request->getData('id') ?? 1; - = $this->l11n->getText('Admin', 'Backend', 'Permissions') ?> + = $this->getText('Permissions') ?> diff --git a/Theme/backend/settings-general.tpl.php b/Theme/backend/settings-general.tpl.php index 2cd1392..2db817a 100644 --- a/Theme/backend/settings-general.tpl.php +++ b/Theme/backend/settings-general.tpl.php @@ -35,63 +35,63 @@ $currencies = \phpOMS\Localization\ISO4217EnumArray::getConstants(); ?> - = $this->l11n->getText('Admin', 'Backend', 'Settings') ?> + = $this->getText('Settings') ?> - = $this->l11n->getText('Admin', 'Backend', 'OrganizationName') ?> + = $this->getText('OrganizationName') ?> - = $this->l11n->getText('Admin', 'Backend', 'PasswordRegex') ?> + = $this->getText('PasswordRegex') ?> - + - = $this->l11n->getText('Admin', 'Backend', 'Localization') ?> + = $this->getText('Localization') ?> - = $this->l11n->getText('Admin', 'Backend', 'Country') ?> + = $this->getText('Country') ?> $country) : ?> >= $country; ?> - = $this->l11n->getText('Admin', 'Backend', 'Timezone') ?> + = $this->getText('Timezone') ?> $timezone) : ?> >= $timezone; ?> - = $this->l11n->getText('Admin', 'Backend', 'Timeformat') ?> + = $this->getText('Timeformat') ?> $timeformat) : ?> >= $timeformat; ?> - = $this->l11n->getText('Admin', 'Backend', 'Language') ?> + = $this->getText('Language') ?> $language) : ?> >= $language; ?> - = $this->l11n->getText('Admin', 'Backend', 'Currency') ?> + = $this->getText('Currency') ?> $currency) : ?> >= $currency[0]; ?> - = $this->l11n->getText('Admin', 'Backend', 'Numberformat') ?> - = $this->l11n->getText('Admin', 'Backend', 'DecimalPoint') ?> - = $this->l11n->getText('Admin', 'Backend', 'ThousandsSeparator') ?> + = $this->getText('Numberformat') ?> + = $this->getText('DecimalPoint') ?> + = $this->getText('ThousandsSeparator') ?> - +