diff --git a/gosa-core/plugins/admin/acl/class_aclManagement.inc b/gosa-core/plugins/admin/acl/class_aclManagement.inc
index 198817bc4ff59a7b6fe628748794eeea27b3b3df..88e0f3607fdf5530c9130a33d7fbf4017c54b0bd 100644 (file)
class aclManagement extends plugin
{
/* Plugin definitions */
- var $plHeadline = "ACLs";
+ var $plHeadline = "ACL";
var $plDescription = "Manage access control lists";
/* Dialog attributes */
$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);
}
}
/* 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);
}
}
/* 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)));
/* 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);
}
}
/* 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.");
/* 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);
}
}
/* 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.");
/* Skip displaying save/cancel if there is a sub dialog open */
if (!isset($this->acltabs->dialog) || !$this->acltabs->dialog){
$display.= "<p style=\"text-align:right\">\n";
-// $display.= "<input type=submit name=\"edit_finish\" style=\"width:80px\" value=\""._("Ok")."\">\n";
+// $display.= "<input type=submit name=\"edit_finish\" style=\"width:80px\" value=\"".msgPool::okButton()."\">\n";
$display.= " \n";
/* Skip Apply if it is a new entry */
#if ($this->dn != "new"){
- # $display.= "<input type=submit name=\"edit_apply\" value=\""._("Apply")."\">\n";
+ # $display.= "<input type=submit name=\"edit_apply\" value=\"".msgPool::applyButton()."\">\n";
# $display.= " \n";
#}
- // $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
+ // $display.= "<input type=submit name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">\n";
$display.= "</p>";
}
}