Added translation using phrases

. added translation functionality by
-- adding loadPhrases-method in Controllers
-- replacing hardcoded html-text with $this->p->t(...)
This commit is contained in:
Cris
2018-05-09 12:36:35 +02:00
parent 8c00fb7be5
commit 1254e8d618
18 changed files with 274 additions and 268 deletions
@@ -20,6 +20,13 @@ class Messages extends VileSci_Controller
$this->load->library('WidgetLib');
$this->load->model('person/Person_model', 'PersonModel');
$this->loadPhrases(array(
'global',
'person',
'lehre',
'ui',
'infocenter'));
$this->_setAuthUID(); // sets property uid
}
@@ -74,6 +74,14 @@ class InfoCenter extends VileSci_Controller
$this->load->library('PersonLogLib');
$this->load->library('WidgetLib');
$this->loadPhrases(array(
'global',
'person',
'lehre',
'ui',
'infocenter',
'filter'));
$this->_setAuthUID(); // sets property uid
$this->load->library('PermissionLib');
@@ -591,13 +599,13 @@ class InfoCenter extends VileSci_Controller
$filtersarray = array(
'abgeschickt' => array(
'link' => '#',
'description' => 'Abgeschickt',
'description' => ucfirst($this->p->t('global', 'abgeschickt')),
'expand' => true,
'children' => array()
),
'nichtabgeschickt' => array(
'link' => '#',
'description' => 'Nicht abgeschickt',
'description' => ucfirst($this->p->t('global', 'nichtAbgeschickt')),
'expand' => true,
'children' => array()
)