Code

Updated strings
[gosa.git] / gosa-core / include / class_management.inc
index 1cc964db6e3cb0905bf37a36ca4d0a9dc20d7075..6915a6e0dfcc50872faaa94affc4a018556f0ea2 100644 (file)
@@ -122,6 +122,7 @@ class management
 
     $this->registerAction("config-filter","editFilter");
     $this->registerAction("saveFilter","saveFilter");
+    $this->registerAction("cancelFilter","cancelFilter");
 
     // To temporay disable the filter caching UNcomment this line.
     #session::global_un_set(get_class($this)."_filter");
@@ -255,7 +256,7 @@ class management
 
       // Display ok, (apply) and cancel buttons
       $str.= "<p style=\"text-align:right\">\n";
-      $str.= "<button type=\"submit\" name=\"edit_finish\" style=\"width:80px\">".msgPool::okButton()."</button>\n";
+      $str.= "<button type=\"submit\" name=\"edit_finish\">".msgPool::okButton()."</button>\n";
       $str.= "&nbsp;\n";
       if($this->displayApplyBtn){
         $str.= "<button type=\"submit\" name=\"edit_apply\">".msgPool::applyButton()."</button>\n";
@@ -287,7 +288,7 @@ class management
 
     // Check permissons for each target 
     $h = $this->getHeadpage();
-    $oTypes = $h->objectTypes;
+    $oTypes = array_reverse($h->objectTypes);
     foreach($target as $dn){
       $entry = $h->getEntry($dn);
       $obj   = $h->getObjectType($oTypes, $entry['objectClass']);
@@ -360,7 +361,7 @@ class management
 
     // Check permissons for each target 
     $h = $this->getHeadpage();
-    $oTypes = $h->objectTypes;
+    $oTypes = array_reverse($h->objectTypes);
     foreach($this->dns as $key => $dn){
       $entry = $h->getEntry($dn);
       $obj   = $h->getObjectType($oTypes, $entry['objectClass']);
@@ -456,7 +457,7 @@ class management
         $this->dialogObject->parent = &$this;
 
       }else{
-        msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to create a snapshot for %s."),$entry),
+        msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to create a snapshot for %s!"),$entry),
             ERROR_DIALOG);
       }
     }
@@ -503,7 +504,7 @@ class management
       @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,$this->dn,"Snaptshot restored!");
       $this->closeDialogs();
     }else{
-      msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to restore a snapshot for %s."),$entry),
+      msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to restore a snapshot for %s!"),$entry),
           ERROR_DIALOG);
     }
   }
@@ -540,7 +541,7 @@ class management
         $this->dialogObject->display_restore_dialog = true;
         $this->dialogObject->parent = &$this;
       }else{
-        msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to restore a snapshot for %s."),$entry),
+        msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to restore a snapshot for %s!"),$entry),
             ERROR_DIALOG);
       } 
     }else{
@@ -554,7 +555,7 @@ class management
         $this->dialogObject->display_restore_dialog = true;
         $this->dialogObject->parent = &$this;
       }else{
-        msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to restore a snapshot for %s."),$entry),
+        msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to restore a snapshot for %s!"),$entry),
             ERROR_DIALOG);
       } 
     }
@@ -613,7 +614,7 @@ class management
         $this->tabObject->parent = &$this;
         @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,$this->dn,"Create new entry initiated!");
       } else {
-        msg_dialog::display(_("Error"), sprintf(_("No tab declaration for '%s' found in your configuration file. Cannot create plugin instance!"), $tabType), ERROR_DIALOG);
+        msg_dialog::display(_("Error"), sprintf(_("No tab definition for '%s' found in configuration file: cannot create plugin instance!"), $tabType), ERROR_DIALOG);
       }
     }
   }
@@ -672,7 +673,7 @@ class management
       set_object_info($this->dn);
       $user = get_lock($this->dn);
       if ($user != ""){
-        return(gen_locked_message ($user, $this->dn,TRUE));
+        return(gen_locked_message ($user, array($this->dn),TRUE));
       }
       add_lock ($this->dn, $this->ui->dn);
 
@@ -729,6 +730,7 @@ class management
       }
   }
 
+
   /*! \brief  Save filter modifcations.
    */
   protected function saveFilter()