From 960341e25ddd395ca46dc3cbafc34c7aa03bb413 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Mon, 8 Apr 2024 15:08:20 +0200 Subject: [PATCH] adds more profil phrasen error messages --- application/controllers/Cis/ProfilUpdate.php | 4 +- system/phrasesupdate.php | 41 ++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/application/controllers/Cis/ProfilUpdate.php b/application/controllers/Cis/ProfilUpdate.php index 86fa57b22..6daf11dcf 100755 --- a/application/controllers/Cis/ProfilUpdate.php +++ b/application/controllers/Cis/ProfilUpdate.php @@ -670,7 +670,7 @@ class ProfilUpdate extends Auth_Controller $this->PersonModel->addJoin("public.tbl_kontakt","public.tbl_kontakt.person_id = public.tbl_person.person_id"); $zustellKontakteArray = $this->PersonModel->loadWhere(["public.tbl_person.person_id"=>$this->pid, "zustellung"=>TRUE]); if(!isSuccess($zustellKontakteArray)){ - return error("error when querying zustellkontakte"); + return error($this->p->t('profilUpdate','profilUpdate_loadingZustellkontakte_error')); } $zustellKontakteArray = hasData($zustellKontakteArray) ? getData($zustellKontakteArray) : null; @@ -692,7 +692,7 @@ class ProfilUpdate extends Auth_Controller $this->PersonModel->addJoin("public.tbl_adresse","public.tbl_adresse.person_id = public.tbl_person.person_id"); $zustellAdressenArray = $this->PersonModel->loadWhere(["public.tbl_person.person_id"=>$this->pid, "zustelladresse"=>TRUE]); if(!isSuccess($zustellAdressenArray)){ - return error("error when querying zustelladressen"); + return error($this->p->t('profilUpdate','profilUpdate_loadingZustellAdressen_error')); } $zustellAdressenArray = hasData($zustellAdressenArray) ? getData($zustellAdressenArray) : null; diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index f3ad131a7..4c9bec056 100755 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -25600,6 +25600,47 @@ array( ) ) ), + array( + 'app' => 'core', + 'category' => 'profilUpdate', + 'phrase' => 'profilUpdate_loadingZustellkontakte_error', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Ein Fehler ist während dem laden der Zustellkontakte aufgetreten', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'An error occurred when querying zustellkontakte', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'core', + 'category' => 'profilUpdate', + 'phrase' => 'profilUpdate_loadingZustellAdressen_error', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Ein Fehler ist während dem laden der Zustelladressen aufgetreten', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'An error occurred when querying zustelladressen', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), +