adds phrasen for profil in php controller and adds error message phrasen

This commit is contained in:
SimonGschnell
2024-04-08 15:03:08 +02:00
parent b77e56161d
commit 1b04d70839
7 changed files with 683 additions and 68 deletions
+57 -37
View File
@@ -40,6 +40,17 @@ class ProfilUpdate extends Auth_Controller
$this->load->model('person/Benutzer_model', 'BenutzerModel');
// Load language phrases
$this->loadPhrases(
array(
'ui',
'global',
'person',
'profil',
'profilUpdate'
)
);
$this->load->library('DmsLib');
$this->load->library('PermissionLib');
@@ -63,11 +74,20 @@ class ProfilUpdate extends Auth_Controller
$email = $uid . "@" . DOMAIN;
//? translation of the english version of the status to german
$status_de = $status == 'accepted' ? 'akzeptiert' : 'abgelehnt';
$status_de = "";
switch($status){
case 'Akzeptiert': $status_de = "Akzeptiert"; break;
case 'Accepted': $status_de = "Akzeptiert"; break;
case 'Abgelehnt': $status_de = "Abgelent"; break;
case 'Rejected': $status_de = "Abgelent"; break;
case 'Ausstehend': $status_de = "Ausstehend"; break;
case 'Pending': $status_de = "Ausstehend"; break;
default: $status_de = "default?"; break;
}
$mail_res = sendSanchoMail("profil_update_response",['topic'=>$topic,'status_de'=>$status_de,'status_en'=>$status,'href'=>APP_ROOT.'Cis/Profil'],$email,("Profil Änderung ".$status));
$mail_res = sendSanchoMail("profil_update_response",['topic'=>$topic,'status_de'=>$status_de,'status_en'=>$status,'href'=>APP_ROOT.'Cis/Profil'],$email,("Profil Änderung ".$this->p->t('profilUpdate', 'pending')));
if(!$mail_res){
show_error("failed to send email to " . $email);
show_error($this->p->t('profilUpdate','profilUpdate_email_error'));
}
}
@@ -79,7 +99,7 @@ class ProfilUpdate extends Auth_Controller
$isMitarbeiter_res = $this->MitarbeiterModel->isMitarbeiter($uid);
if(isError($isMitarbeiter_res)){
show_error("was not able to check whether ".$uid." is a mitarbeiter");
show_error($this->p->t('profilUpdate','profilUpdate_mitarbeiterCheck_error'));
}
$isMitarbeiter_res = getData($isMitarbeiter_res);
@@ -97,13 +117,13 @@ class ProfilUpdate extends Auth_Controller
if(hasData($res)){
array_push($emails,MAIL_GST);
}else{
show_error("no Mitarbeiter with uid: ".$uid ." found");
show_error($this->p->t('profilUpdate','profilUpdate_mitarbeiterCheck_error'));
}
}else{
//? if it is not a mitarbeiter, check whether it is a student and send email to studiengang
$isStudent_res = $this->StudentModel->isStudent($uid);
if(isError($isStudent_res)){
show_error("was not able to check whether ".$uid." is a student");
show_error($this->p->t('profilUpdate','profilUpdate_studentCheck_error'));
}
$isStudent_res = getData($isStudent_res);
if($isStudent_res){
@@ -134,7 +154,7 @@ class ProfilUpdate extends Auth_Controller
}
foreach($mail_res as $m_res){
if(!$m_res){
show_error("error occured when sending email.");
show_error($this->p->t('profilUpdate','profilUpdate_email_error'));
}
}
@@ -166,12 +186,12 @@ class ProfilUpdate extends Auth_Controller
}else{
show_error("Missing necessary permissions");
show_error($this->p->t('profilUpdate','profilUpdate_permission_error'));
return;
}
}else{
show_error("The requested document is not an attachment for any profil update");
show_error($this->p->t('profilUpdate','profilUpdate_dms_error'));
return;
}
@@ -189,12 +209,12 @@ class ProfilUpdate extends Auth_Controller
//? if replace is set it contains the profil_update_id in which the attachment_id has to be replaced
if(isset($replace)){
$this->ProfilUpdateModel->addSelect(["attachment_id"]);
$attachmentID = $this->ProfilUpdateModel->load([$replace]);
if(isError($attachmentID)){
return json_encode(error("Error loading ProfilUpdate resource"));
$profilUpdate = $this->ProfilUpdateModel->load([$replace]);
if(isError($profilUpdate)){
return json_encode(error($this->p->t('profilUpdate','profilUpdate_loading_error')));
}
//? get the attachmentID
$dms_id = hasData($attachmentID) ? getData($attachmentID)[0]->attachment_id : null;
$dms_id = hasData($profilUpdate) ? getData($profilUpdate)[0]->attachment_id : null;
//? delete old dms_file of Profil Update
$this->deleteOldVersionFile($dms_id);
@@ -250,7 +270,7 @@ class ProfilUpdate extends Auth_Controller
array_push($res, $this->DmsVersionModel->delete([$dms_id,$version]));
}
}else{
echo json_encode(error("No version of the file has been found"));
echo json_encode(error($this->p->t('profilUpdate','profilUpdate_dmsVersion_error')));
}
//? returns a result for each deleted dms_file
@@ -280,7 +300,7 @@ class ProfilUpdate extends Auth_Controller
$this->ProfilUpdateModel->addSelect(["attachment_id"]);
$attachmentID = $this->ProfilUpdateModel->load([$id]);
if(isError($attachmentID)){
return json_encode(error("Error loading ProfilUpdate resource"));
return json_encode(error($this->p->t('profilUpdate','profilUpdate_loading_error')));
}
//? get the attachmentID
$dms_id = hasData($attachmentID) ? getData($attachmentID)[0]->attachment_id : null;
@@ -289,7 +309,7 @@ class ProfilUpdate extends Auth_Controller
$this->DmsVersionModel->addSelect(["name", "dms_id"]);
$attachment = $this->DmsVersionModel->load([$dms_id,0]);
if(isError($attachment)){
return json_encode(error("Error loading DmsVersion resource"));
return json_encode(error($this->p->t('profilUpdate','profilUpdate_dmsVersion_error')));
}
$attachment = hasData($attachment) ? getData($attachment) : null;
//? returns {name:..., dms_id:...}
@@ -304,7 +324,7 @@ class ProfilUpdate extends Auth_Controller
$payload = $json->payload;
$identifier = property_exists($json->payload,"kontakt_id")? "kontakt_id" : (property_exists($json->payload,"adresse_id")? "adresse_id" : null);
$data = ["topic"=>$json->topic,"uid" => $this->uid, "requested_change" => json_encode($payload), "insertamum" => "NOW()", "insertvon"=>$this->uid,"status"=>"pending" ];
$data = ["topic"=>$json->topic,"uid" => $this->uid, "requested_change" => json_encode($payload), "insertamum" => "NOW()", "insertvon"=>$this->uid,"status"=>$this->p->t('profilUpdate', 'pending') ];
//? insert fileID in the dataset if sent with post request
if(isset($json->fileID)){
@@ -315,13 +335,13 @@ class ProfilUpdate extends Auth_Controller
//? loops over all updateRequests from a user to validate if the new request is valid
$res = $this->ProfilUpdateModel->getProfilUpdatesWhere(["uid"=>$this->uid]);
if(isError($res)){
show_error("Error occured while querying the profil update requests of UID: ".$uid);
show_error($this->p->t('profilUpdate','profilUpdate_loading_error'));
}
$res = hasData($res)? getData($res):null;
//? the user cannot delete a zustelladresse/kontakt
if( isset($payload->delete) && $payload->{$identifier=="kontakt_id"? "zustellung":"zustelladresse"}){
echo json_encode(error("cannot delete resource marked as zustellung"));
echo json_encode(error($this->p->t('profilUpdate','profilUpdate_deleteZustellung_error')));
return;
}
@@ -330,14 +350,14 @@ class ProfilUpdate extends Auth_Controller
$adr = $this->AdresseModel->load($payload->$identifier);
$adr = getData($adr)[0];
if($adr->heimatadresse){
echo json_encode(error("cannot delete adresse marked as heimatadresse"));
echo json_encode(error($this->p->t('profilUpdate','profilUpdate_deleteZustellung_error')));
return;
}
}
if($res){
$pending_changes = array_filter($res, function($element) {
return $element->status == 'pending';
return $element->status == 'Pending' || $element->status == 'Ausstehend';
});
foreach($pending_changes as $update_request){
@@ -346,13 +366,13 @@ class ProfilUpdate extends Auth_Controller
//? the user can add as many new kontakte/adressen as he likes
if( !isset($payload->add) && property_exists($existing_change,$identifier) && property_exists($payload,$identifier) && $existing_change->$identifier == $payload->$identifier){
//? the kontakt_id / adresse_id of a change has to be unique
echo json_encode(error("cannot change the same resource twice"));
echo json_encode(error($this->p->t('profilUpdate','profilUpdate_changeTwice_error')));
return;
}
//? if it is not updating any kontakt/adresse, the topic has to be unique
elseif(!$identifier && $update_request->topic == $json->topic ){
echo json_encode(error("A request to change " . $json->topic . " is already open"));
echo json_encode(error($this->p->t('profilUpdate','profilUpdate_changeTopicTwice_error',['0'=>$update_request->topic])));
return;
}
}}
@@ -417,7 +437,7 @@ class ProfilUpdate extends Auth_Controller
$res = $this->StudentModel->execReadOnlyQuery($query,[$student_uid]);
if(!isSuccess($res)){
show_error("was not able to query the oe_einheit of Student: ".$student_uid);
show_error($this->p->t('profilUpdate','profilUpdate_loadingOE_error'));
}
$res = hasData($res) ? getData($res) : [];
$res = array_map(
@@ -447,7 +467,7 @@ class ProfilUpdate extends Auth_Controller
//! check for required information
if(!isset($id) || !isset($uid) || !isset($personID) || !isset($requested_change) || !isset($topic)){
return json_encode(error("missing required information"));
return json_encode(error($this->p->t('profilUpdate','profilUpdate_requiredInformation_error')));
}
$is_mitarbeiter_profil_update = getData($this->MitarbeiterModel->isMitarbeiter($uid));
@@ -468,7 +488,7 @@ class ProfilUpdate extends Auth_Controller
$requested_change['adresse_id'] = $insertID;
$update_res = $this->updateRequestedChange($id,$requested_change);
if(isError($update_res)){
echo json_encode(error("was not able to add addresse_id " . $insertID . " to profilRequest " . $id ));
echo json_encode(error($this->p->t('profilUpdate','profilUpdate_address_error',[$insertID, $id]) ));
return;
}
}
@@ -494,15 +514,15 @@ class ProfilUpdate extends Auth_Controller
$result = $this->PersonModel->update($personID,[$topic=>$requested_change["value"]]);
if(isError($result)){
echo json_encode(error("was not able to update Person Information: " . $topic . " with value : " . $requested_change));
echo json_encode(error($this->p->t('profilUpdate','profilUpdate_insert_error')));
return;
}
}
$this->sendEmail_onProfilUpdate_response($uid,$topic,"accepted");
$this->sendEmail_onProfilUpdate_response($uid,$topic,$this->p->t('profilUpdate','accepted'));
echo json_encode($this->setStatusOnUpdateRequest($id, "accepted", $status_message, $requested_change));
echo json_encode($this->setStatusOnUpdateRequest($id, $this->p->t('profilUpdate','accepted'), $status_message, $requested_change));
}else{
show_error("You have not the necessary permissions to accept this profil_update");
show_error($this->p->t('profilUpdate','profilUpdate_permission_error'));
}
@@ -525,10 +545,10 @@ class ProfilUpdate extends Auth_Controller
$this->permissionlib->isBerechtigt('mitarbeiter/stammdaten',"suid") && $is_mitarbeiter_profil_update
)
{
$this->sendEmail_onProfilUpdate_response($uid,$topic,"rejected");
echo json_encode($this->setStatusOnUpdateRequest($id, "rejected", $status_message));
$this->sendEmail_onProfilUpdate_response($uid,$topic,$this->p->t('profilUpdate','rejected'));
echo json_encode($this->setStatusOnUpdateRequest($id, $this->p->t('profilUpdate','rejected'), $status_message));
}else{
show_error("You have not the necessary permissions to accept this profil_update");
show_error($this->p->t('profilUpdate','profilUpdate_permission_error'));
}
@@ -559,7 +579,7 @@ class ProfilUpdate extends Auth_Controller
$insertID = $this->KontaktModel->insert($requested_change);
$insert_kontakt_id = $insertID;
if(isError($insert_kontakt_id)){
show_error("was not able to insert new kontakt");
show_error($this->p->t('profilUpdate','profilUpdate_insertKontakt_error'));
}
$insert_kontakt_id = hasData($insert_kontakt_id)? getData($insert_kontakt_id):null;
if($insert_kontakt_id){
@@ -580,7 +600,7 @@ class ProfilUpdate extends Auth_Controller
$update_kontakt_id = $this->KontaktModel->update($kontakt_id,$requested_change);
if(isError($update_kontakt_id)){
show_error("was not able to update kontakt");
show_error($this->p->t('profilUpdate','profilUpdate_updateKontakt_error'));
}
$update_kontakt_id = hasData($update_kontakt_id) ? getData($update_kontakt_id) : null;
if($update_kontakt_id){
@@ -615,7 +635,7 @@ class ProfilUpdate extends Auth_Controller
$insertID = $this->AdresseModel->insert($requested_change);
$insert_adresse_id = $insertID;
if(isError($insert_adresse_id)){
show_error("was not able to insert new adresse");
show_error($this->p->t('profilUpdate','profilUpdate_insertAdresse_error'));
}
$insert_adresse_id = hasData($insert_adresse_id) ? getData($insert_adresse_id) : null;
if($insert_adresse_id){
@@ -633,7 +653,7 @@ class ProfilUpdate extends Auth_Controller
$requested_change['updatevon'] = getAuthUID();
$update_adresse_id = $this->AdresseModel->update($adresse_id,$requested_change);
if(isError($update_adresse_id)){
show_error("was not able to insert new adresse");
show_error($this->p->t('profilUpdate','profilUpdate_updateAdresse_error'));
}
$update_adresse_id = hasData($update_adresse_id) ? getData($update_adresse_id) : null;
if($update_adresse_id){
+7 -7
View File
@@ -236,11 +236,11 @@ const profilApp = Vue.createApp({
view: null,
data: {
Personen_Informationen: {
title: "Personen Informationen",
title: this.$p.t('profil','personenInformationen'),
view: null,
data: {
vorname: {
title: "vorname",
title: this.$p.t('person','vorname'),
view: "TextInputDokument",
withFiles: true,
data: {
@@ -249,7 +249,7 @@ const profilApp = Vue.createApp({
},
},
nachname: {
title: "nachname",
title: this.$p.t('person','nachname'),
view: "TextInputDokument",
withFiles: true,
data: {
@@ -258,7 +258,7 @@ const profilApp = Vue.createApp({
},
},
titel: {
title: "titel",
title: this.$p.t('global','titel'),
view: "TextInputDokument",
withFiles: true,
data: {
@@ -267,7 +267,7 @@ const profilApp = Vue.createApp({
},
},
postnomen: {
title: "postnomen",
title: this.$p.t('profil','postnomen'),
view: "TextInputDokument",
withFiles: true,
data: {
@@ -278,7 +278,7 @@ const profilApp = Vue.createApp({
},
},
Private_Kontakte: {
title: "Private Kontakte",
title: this.$p.t('profil','privateAdressen'),
data: this.data.kontakte
?.filter((item) => {
return !this.data.profilUpdates?.some(
@@ -296,7 +296,7 @@ const profilApp = Vue.createApp({
}),
},
Private_Adressen: {
title: "Private Adressen",
title: this.$p.t('profil','privateAdressen'),
data: this.data.adressen
?.filter((item) => {
return !this.data.profilUpdates?.some((update) => {
+2 -2
View File
@@ -1,6 +1,6 @@
import fhcapifactory from "../api/fhcapifactory.js";
import ProfilUpdateView from "../../components/Cis/ProfilUpdate/ProfilUpdateView.js";
import Phrasen from "../../plugin/Phrasen.js";
Vue.$fhcapi = fhcapifactory;
@@ -20,5 +20,5 @@ const app = Vue.createApp({
}
});
app.use(Phrasen).mount("#content");
app.mount("#content");
@@ -14,7 +14,7 @@ export default {
props: {
title: {
type: String,
default: this.$p.t('profilUpdate','profilUpdateRequest'),
},
value: {
type: Object,
@@ -132,7 +132,7 @@ export default {
</div>
<div v-if="data.status!=='pending'" class="form-underline mb-2 col-12 col-sm-6">
<div v-if="data.status!==$p.t('profilUpdate','pending')" class="form-underline mb-2 col-12 col-sm-6">
<div class="form-underline-titel">{{$p.t('profilUpdate','statusDate')}}: </div>
<!-- only status timestamp and status message can be null in the database -->
<span class="form-underline-content" >{{data.status_timestamp?data.status_timestamp:'-'}}</span>
@@ -170,7 +170,7 @@ export default {
</div>
<!-- Row with the status message is only visible if the request is not pending and the message is not empty -->
<div v-if="data.status !=='pending' && data.status_message" class="row">
<div v-if="data.status !== $p.t('profilUpdate','pending') && data.status_message" class="row">
<div class="col">
<div class="form-underline mb-2 ">
<div class="form-underline-titel">{{$p.t('profilUpdate','statusMessage')}}</div>
@@ -206,7 +206,7 @@ export default {
</template>
<template v-if="data.status === 'pending'" v-slot:footer>
<template v-if="data.status === $p.t('profilUpdate','pending')" v-slot:footer>
<div class="form-underline flex-fill">
<div class="form-underline-titel">{{$p.t('global','nachricht')}}</div>
@@ -322,7 +322,7 @@ export default{
template: /*html*/`
<div>
<accept-deny-update v-if="showModal" ref="AcceptDenyModal" @hideBsModal="hideAcceptDenyModal" :value="JSON.parse(JSON.stringify(modalData))" :setLoading="setLoading" ></accept-deny-update>
<accept-deny-update :title="$p.t('profilUpdate','profilUpdateRequest')" v-if="showModal" ref="AcceptDenyModal" @hideBsModal="hideAcceptDenyModal" :value="JSON.parse(JSON.stringify(modalData))" :setLoading="setLoading" ></accept-deny-update>
<div class="form-underline flex-fill ">
<div class="form-underline-titel">{{$p.t('ui','anzeigen')}} </div>
+24 -11
View File
@@ -9,9 +9,12 @@
CONSTRAINT tbl_profil_update_status_pk PRIMARY KEY(status_kurzbz)
);
INSERT INTO public.tbl_profil_update_status VALUES ('pending','Profil Änderungen die neu erstellt wurden und noch nicht akzeptiert oder abgelehnt wurden'),
('accepted','Profil Änderungen die akzeptiert wurden'),
('rejected','Profil Änderungen die abgelehn wurden');";
INSERT INTO public.tbl_profil_update_status VALUES ('Ausstehend','Profil Änderungen die noch nicht bearbeitet wurden'),
('Pending','Profil updates that were not processed yet'),
('Akzeptiert','Profil Änderungen die akzeptiert wurden'),
('Accepted','Profil updates that were accepted'),
('Abgelehnt','Profil Änderungen die abgelehn wurden'),
('Rejected','Profil updates that were rejected');";
if(!$db->db_query($qry))
echo '<strong>public.tbl_profil_update_status: '.$db->db_last_error().'</strong><br>';
@@ -28,16 +31,26 @@
CONSTRAINT tbl_profil_update_topic_pk PRIMARY KEY(topic_kurzbz)
);
INSERT INTO public.tbl_profil_update_topic VALUES ('vorname','Vorname aktualisieren'),
('nachname','Nachname aktualisieren'),
('titel','Titel aktualisieren'),
('postnomen','Postnomen aktualisieren'),
INSERT INTO public.tbl_profil_update_topic VALUES ('Vorname','Vorname aktualisieren'),
('First name','Update first name'),
('Nachname','Nachname aktualisieren'),
('Last name','Update last name'),
('Titel','Titel aktualisieren'),
('Title','Update title'),
('Postnomen','Postnomen aktualisieren'),
('post-nominals','Update post-nominals'),
('Private Kontakte','Kontakt aktualisieren'),
('Delete Kontakte','Kontakt löschen'),
('Add Kontakte','Kontakt hinzufügen'),
('Private Contacts','Update contact'),
('Kontakt löschen','Kontakt löschen'),
('Delete contact','Delete contact'),
('Kontakt hinzufügen','Kontakt hinzufügen'),
('Add contact','Add contact'),
('Private Adressen','Adresse aktualisieren'),
('Delete Adressen','Adresse löschen'),
('Add Adressen','Adresse hinzufügen');";
('Private Addresses','Update address'),
('Adresse löschen','Adresse löschen'),
('Delete address','Delete address'),
('Adresse hinzufügen','Adresse löschen'),
('Add address','Add address');";
if(!$db->db_query($qry))
echo '<strong>public.tbl_profil_update_topic: '.$db->db_last_error().'</strong><br>';
+588 -6
View File
@@ -5214,7 +5214,7 @@ The invoice will be sent to you again. <u><strong>The amount is only to be trans
),
array(
'sprache' => 'English',
'text' => 'An Error occured. Password change failed.',
'text' => 'An Error occurred. Password change failed.',
'description' => '',
'insertvon' => 'system'
)
@@ -24161,19 +24161,39 @@ array(
array(
'app' => 'core',
'category' => 'profil',
'phrase' => 'privateKontakte',
'phrase' => 'personenInformationen',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Private Kontakte',
'description' => 'Profil Kategorie in der die ganzen privaten Kontakte einer Person aufgelistet werden',
'text' => 'Personen Informationen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Private Contacts',
'description' => 'Profile category in which all private contacts of a person are listed',
'text' => 'Person Information',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profil',
'phrase' => 'postnomen',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Postnomen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'post-nominals',
'description' => '',
'insertvon' => 'system'
)
)
@@ -25020,6 +25040,568 @@ array(
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'deleteContact',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Kontakt löschen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Delete contact',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'deleteAddress',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Adresse löschen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Delete address',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'addContact',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Kontakt hinzufügen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Add contact',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'addContact',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Adresse hinzufügen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Add address',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'vorname',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Vorname',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'First name',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'nachname',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Nachname',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Last name',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'title',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Titel',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Title',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'pending',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ausstehend',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Pending',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'accepted',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Akzeptiert',
'description' => 'Profil Änderungen die akzeptiert wurden',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Accepted',
'description' => 'Profil updates that were accepted',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'rejected',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Abgelehnt',
'description' => 'Profil Änderungen die abgelehnt wurden',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Rejected',
'description' => 'Profil updates that were rejected',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUdate_address_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Nicht möglich adressenID {0} für profil Änderung {1} hinzuzufügen',
'description' => 'Fehlermeldung wenn die AdressenID bereits in einer Profil Änderung verwendet wurde',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'was not able to add addressID {0} to profilRequest {1}',
'description' => 'Error message when the addressID was already used for another profil update',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_permission_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Notwendinge Berechtigungen fehlen',
'description' => 'Fehlermeldung wenn notwendige Berechtigungen für Aktionen fehlen',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Missing necessary permission',
'description' => 'Error message if necessary permissions are missing',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_dms_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Das angeforderte Dokument ist kein Anhang einer Profil Änderung',
'description' => 'Fehlermeldung wenn ein Dokument angefordert wird, das nicht im zusammenhang mit einer Profil Änderung ist',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'The requested document is not an attachment for any profil update',
'description' => 'Error message if a document is requested that is not connected with a profil update',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_email_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler ist aufgetreten beim sender der Email',
'description' => 'Fehlermeldung wenn ein Fehler beim senden einer Email auftritt',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred when sending an email',
'description' => 'Error message if an error occurred while sending emails',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_studentCheck_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler ist aufgetreten beim Überprüfen ob die Person ein Student ist',
'description' => 'Fehlermeldung wenn ein Fehler beim überprüfen eines Studenten auftritt',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred while checking if the person is a student',
'description' => 'Error message if an error occurred when checking if a person is a student',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_mitarbeiterCheck_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler ist aufgetreten, es wurde kein Mitarbeiter mit der gleichen uid gefunden',
'description' => 'Fehlermeldung wenn ein Fehler beim überprüfen eines Mitarbeiter auftritt',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred while checking if the person is a mitarbeiter',
'description' => 'Error message if an error occurred when checking if a person is a mitarbeiter',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_loading_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler beim laden der Profil Änderung ist aufgetreten',
'description' => 'Fehlermeldung wenn ein Fehler beim laden einer Profil Änderung auftritt',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred while loading the profil update',
'description' => 'Error message if an error occurred when loading a profil update',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_dmsVersion_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler beim laden der Dms Version ist aufgetreten',
'description' => 'Fehlermeldung wenn ein Fehler beim laden einer Dms Version auftritt',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred while loading the dms version',
'description' => 'Error message if an error occurred when loading a dms version',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_deleteZustellung_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler ist aufgetretten, man kann keine Zustellung löschen',
'description' => 'Fehlermeldung wenn versucht wird eine Zustellungsresource zu löschen',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred, it is not possible to delete a resource marked as zustellung',
'description' => 'Error message if someone tried to delete a resource that is marked as zustellung',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_changeTwice_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler ist aufgetretten, man kann die gleiche Profil Information nicht zweimal ändern',
'description' => 'Fehlermeldung wenn versucht wird eine Information zweimal zu ändern',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred, it is not possible to change the same profil information twice',
'description' => 'Error message if someone tried to change the same profil information twice',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_changeTopicTwice_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Eine Anfrage {0} ist bereits geöffnet worden',
'description' => 'Wenn die Profil Änderung nicht über Kontakte oder Adressen ist dann darf das Topic nur einmalig verändert werden',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'A request to change {0} is already open',
'description' => 'if the profil update is not about contacts or addresses then the topic has to be unique',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_loadingOE_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler beim laden der oe_einheit ist aufgetreten',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred, when loading the oe_einheit',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_requiredInformation_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler ist aufgetreten, notwendige Informationen fehlen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred, required informations are missing',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_insert_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler ist beim hinzufügen der Profil Änderung aufgetreten',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred during the insertion of the profil update',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_insertKontakt_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler ist beim hinzufügen des Kontaktes aufgetreten',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred during the insertion of the contact',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_insertAdresse_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler ist beim hinzufügen der Adresse aufgetreten',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred during the insertion of the address',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_updateKontakt_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler ist beim ändern eines Kontaktes aufgetreten',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred while updating a profil update contact',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdate_updateAdresse_error',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ein Fehler ist beim ändern einer Adresse aufgetreten',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'An error occurred while updating a profil update address',
'description' => '',
'insertvon' => 'system'
)
)
),