Code

msgPool
[gosa.git] / gosa-core / plugins / admin / acl / class_aclManagement.inc
index 198817bc4ff59a7b6fe628748794eeea27b3b3df..88e0f3607fdf5530c9130a33d7fbf4017c54b0bd 100644 (file)
@@ -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.");
@@ -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.= "<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.= "&nbsp;\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.= "&nbsp;\n";
           #}
 
-  //        $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
+  //        $display.= "<input type=submit name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">\n";
           $display.= "</p>";
         }
       }