diff --git a/application/controllers/api/frontend/v1/organisation/StudiengangEP.php b/application/controllers/api/frontend/v1/organisation/StudiengangEP.php index 7a600a4ff..5f8e3466c 100644 --- a/application/controllers/api/frontend/v1/organisation/StudiengangEP.php +++ b/application/controllers/api/frontend/v1/organisation/StudiengangEP.php @@ -63,9 +63,10 @@ class StudiengangEP extends FHCAPI_Controller */ public function getAllowed() { + $this->loadPhrases([ 'global' ]); $this->load->library('form_validation'); - $this->form_validation->set_rules('permissions[]', 'Permissions', 'required'); + $this->form_validation->set_rules('permissions[]', $this->p->t('global', 'permissions'), 'required'); if (!$this->form_validation->run()) $this->terminateWithValidationErrors($this->form_validation->error_array()); diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index f5105a28c..1d1e21046 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -1353,6 +1353,26 @@ $phrases = array( ) ) ), + array( + 'app' => 'core', + 'category' => 'global', + 'phrase' => 'permissions', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Rechte', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Permissions', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), array( 'app' => 'core', 'category' => 'global',