X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fplugins%2Fadmin%2Facl%2Fclass_aclManagement.inc;h=88e0f3607fdf5530c9130a33d7fbf4017c54b0bd;hb=ae98fd3a7307b032bc0e7a5c44be1c7dc38091d5;hp=b6f97d368aa7efa0d07140a2a7208ab7ec4e3c9e;hpb=5f9cc66e9b9a37e62621851b28c0eb9075e370aa;p=gosa.git diff --git a/gosa-core/plugins/admin/acl/class_aclManagement.inc b/gosa-core/plugins/admin/acl/class_aclManagement.inc index b6f97d368..88e0f3607 100644 --- a/gosa-core/plugins/admin/acl/class_aclManagement.inc +++ b/gosa-core/plugins/admin/acl/class_aclManagement.inc @@ -23,7 +23,7 @@ class aclManagement extends plugin { /* Plugin definitions */ - var $plHeadline = "ACLs"; + var $plHeadline = "ACL"; var $plDescription = "Manage access control lists"; /* Dialog attributes */ @@ -160,7 +160,7 @@ class aclManagement extends plugin $this->acltabs= new aclroletab($this->config, NULL,$this->dn); $this->acltabs->set_acl_base($this->DivListACL->selectedBase); }else{ - msg_dialog::display(_("Permission error"), _("You have no permission to create a new role!"), ERROR_DIALOG); + msg_dialog::display(_("Permission error"), msgPool::permCreate(), ERROR_DIALOG); } } @@ -197,7 +197,7 @@ class aclManagement extends plugin /* Set ACL and move DN to the headline */ session::set('objectinfo',$this->dn); }else{ - msg_dialog::display(_("Permission error"), _("You have no permission to edit this ACL!"), ERROR_DIALOG); + msg_dialog::display(_("Permission error"), msgPool::permModify(), ERROR_DIALOG); } } @@ -242,7 +242,7 @@ class aclManagement extends plugin /* Lock the current entry, so nobody will edit it during deletion */ add_lock ($this->dn, $this->ui->dn); - $smarty->assign("info", sprintf(_("You're about to delete the acl %s."), @LDAP::fix($this->dn))); + $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn))); $smarty->assign("is_role",true); return($smarty->fetch(get_template_path('remove.tpl', TRUE))); @@ -250,7 +250,7 @@ class aclManagement extends plugin /* Obviously the acl isn't allowed to delete. Show message and clean session. */ - msg_dialog::display(_("Permission error"), _("You have no permission to delete this entry!"), ERROR_DIALOG); + msg_dialog::display(_("Permission error"), msgPool::permDelete(), ERROR_DIALOG); } } @@ -274,7 +274,7 @@ class aclManagement extends plugin /* Normally this shouldn't be reached, send some extra logs to notify the administrator */ - msg_dialog::display(_("Permission error"), _("You have no permission to delete this entry!"), ERROR_DIALOG); + msg_dialog::display(_("Permission error"), msgPool::permDelete(), ERROR_DIALOG); if(isset($this->ui->uid)){ new log("security","aclroles/".get_class($this),$this->dn,array(),"Warning: '".$this->ui->uid."' tried to trick acl role deletion."); @@ -306,14 +306,14 @@ class aclManagement extends plugin /* Lock the current entry, so nobody will edit it during deletion */ add_lock ($this->dn, $this->ui->dn); - $smarty->assign("info", sprintf(_("You're about to delete the acl %s."), @LDAP::fix($this->dn))); + $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn),_("acl"))); $smarty->assign("is_role",false); return($smarty->fetch(get_template_path('remove.tpl', TRUE))); } else { /* Obviously the acl isn't allowed to delete. Show message and clean session. */ - msg_dialog::display(_("Permission error"), _("You have no permission to delete this entry!"), ERROR_DIALOG); + msg_dialog::display(_("Permission error"), msgPool::permDelete(), ERROR_DIALOG); } } @@ -337,7 +337,7 @@ class aclManagement extends plugin /* Normally this shouldn't be reached, send some extra logs to notify the administrator */ - msg_dialog::display(_("Permission error"), _("You have no permission to delete this entry!"), ERROR_DIALOG); + msg_dialog::display(_("Permission error"),msgPool::permDelete(), ERROR_DIALOG); if(isset($this->ui->uid)){ new log("security","aclroles/".get_class($this),$this->dn,array(),"Warning: '".$this->ui->uid."' tried to trick acl role deletion."); @@ -395,7 +395,7 @@ class aclManagement extends plugin } else { /* Ok. There seem to be errors regarding to the tab data, show message and continue as usual. */ - msgDialog::displayChecks($message); + msg_dialog::displayChecks($message); } } @@ -418,16 +418,16 @@ class aclManagement extends plugin /* Skip displaying save/cancel if there is a sub dialog open */ if (!isset($this->acltabs->dialog) || !$this->acltabs->dialog){ $display.= "

\n"; -// $display.= "\n"; +// $display.= "\n"; $display.= " \n"; /* Skip Apply if it is a new entry */ #if ($this->dn != "new"){ - # $display.= "\n"; + # $display.= "\n"; # $display.= " \n"; #} - // $display.= "\n"; + // $display.= "\n"; $display.= "

"; } }