Code

Re-run translations
[gosa.git] / gosa-core / plugins / admin / users / class_divListUsers.inc
index 53f13ee2831bf2ddc8d10ea9e075bce077432147..33bb37809a471fe3d6050c7a30c45520b5022ef6 100644 (file)
@@ -57,7 +57,6 @@ class divListUsers extends MultiSelectWindow
 
     /* Result page will look like a headpage */
     $this->SetHeadpageMode();
-    $this->SetInformation(_("This menu allows you to create, edit and delete selected users. Having a great number of users, you may want to use the range selectors on top of the user list."));
 
     $this->EnableAplhabet   (true);
   
@@ -82,16 +81,16 @@ class divListUsers extends MultiSelectWindow
     $this->AddHeader(array("string"=>_("Properties"),   "attach" => "style='width:166px;'"));
     $this->AddHeader(array("string"=>_("Actions"),      "attach" => "style='width:".$action_col_size."px;border-right:0px;text-align:right;'"));
     
-    $this->AddCheckBox("ShowTemplates"      ,_("Select to see template pseudo users")               ,_("Show templates")        , false);
-    $this->AddCheckBox("ShowFunctionalUsers",_("Select to see users that have only a GOsa object"),_("Show functional users") , true);
-    $this->AddCheckBox("ShowUnixUsers"      ,_("Select to see users that have posix settings")      ,_("Show unix users")       , true);
-    $this->AddCheckBox("ShowMailUsers"      ,_("Select to see users that have mail settings")       ,_("Show mail users")       , true);
-    $this->AddCheckBox("ShowSambaUsers"     ,_("Select to see users that have samba settings")      ,_("Show samba users")      , true);
-    $this->AddCheckBox("ShowProxyUsers"     ,_("Select to see users that have proxy settings")      ,_("Show proxy users")      , true);
+    $this->AddCheckBox("ShowTemplates"      ,msgPool::selectToView(_("Template"))             ,sprintf(_("Show %s"),_("templates")), false);
+    $this->AddCheckBox("ShowFunctionalUsers",msgPool::selectToView(_("GOsa object"),"enabled"),sprintf(_("Show %s"),_("functional users")), true);
+    $this->AddCheckBox("ShowUnixUsers"      ,msgPool::selectToView(_("Posix"),"enabled")      ,sprintf(_("Show %s"),_("POSIX users")), true);
+    $this->AddCheckBox("ShowMailUsers"      ,msgPool::selectToView(_("Mail"),"enabled")       ,sprintf(_("Show %s"),_("mail users")), true);
+    $this->AddCheckBox("ShowSambaUsers"     ,msgPool::selectToView(_("Samba"),"enabled")      ,sprintf(_("Show %s"),_("samba users")), true);
+    $this->AddCheckBox("ShowProxyUsers"     ,msgPool::selectToView(_("Proxy"),"enabled")      ,sprintf(_("Show %s"),_("proxy users")), true);
 
     /* Add SubSearch checkbox */
     $this->AddCheckBox(SEPERATOR);
-    $this->AddCheckBox("SubSearch",  _("Select to search within subtrees"), _("Search in subtrees"), false);
+    $this->AddCheckBox("SubSearch",  msgPool::selectToView("","subsearch"), msgPool::selectToView("","subsearch_small"), false);
 
     /*                  Name                 ,Text                              ,Default  , Connect with alphabet  */
     $this->AddRegex   ("Regex",     _("Display users matching"),"*" , true);
@@ -186,12 +185,18 @@ class divListUsers extends MultiSelectWindow
       " "._("Change password")."|"."multiple_password_change|\n";
     $s.= "..|<img src='images/edittrash.png' alt='' border='0' class='center'>".
       "&nbsp;"._("Remove")."|"."remove_multiple|\n";
-
-    if(class_available("DaemonEvent_notify")){
-      $events  = DaemonEvent::get_event_types();
-      $event = $events['BY_CLASS']['DaemonEvent_notify'];
-      $s.= "..|---|\n";
-      $s.= "..|".$event['MenuImage']."&nbsp;".$event['s_Menu_Name']."|trigger_event_DaemonEvent_notify\n";
+    $s.= "..|<img src='images/wizard.png' alt='' border='0' class='center'>".
+      "&nbsp;"._("Apply template")."|"."templatize_multiple|\n";
+
+    /* Add event tag */
+    if(class_available("DaemonEvent")){
+      $events  = DaemonEvent::get_event_types(USER_EVENT);
+      if(count($events['BY_CLASS'])){
+        $s.= "..|---|\n";
+        foreach($events['BY_CLASS'] as $name => $event){
+          $s.= "..|".$event['MenuImage']."&nbsp;".$event['s_Menu_Name']."|event_".$name."\n";
+        }
+      }
     }
 
     /* Add multiple copy & cut icons */
@@ -312,10 +317,10 @@ class divListUsers extends MultiSelectWindow
       if(isset($val['userPassword'][0]) && preg_match("/^\{[^\}]/",$val['userPassword'][0])){
         if(preg_match("/^[^\}]*+\}!/",$val['userPassword'][0])){
           $lock_status = "<input class='center' type='image' src='images/closedlock.png'
-            alt='"._("Deactivated")."' name='toggle_lock_status_%KEY%'>";
+            alt='"._("inactive")."' name='toggle_lock_status_%KEY%'>";
         }else{
           $lock_status = "<input class='center' type='image' src='images/openlock.png'
-            alt='"._("Active")."' name='toggle_lock_status_%KEY%'>";
+            alt='"._("active")."' name='toggle_lock_status_%KEY%'>";
         }
       }else{
         $lock_status = "<img src='images/empty.png' alt=' ' class='center'>";
@@ -323,7 +328,7 @@ class divListUsers extends MultiSelectWindow
 
       /* Generate edit icon */
       $action.= "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'
-        name='user_edit_%KEY%' title='"._("Edit user")."'>";
+        name='user_edit_%KEY%' title='".msgPool::editButton(_("user"))."'>";
 
       /* Add deactivate status if we are allowed to */
       if (preg_match("/w/",$acl_all)){
@@ -336,7 +341,7 @@ class divListUsers extends MultiSelectWindow
           name='user_chgpw_%KEY%' title='"._("Change password")."'>";
       }else{
         $action.= "<img class='center' src='images/empty.png' alt='&nbsp;' 
-          title='"._("You are not allowed to change the password for this user.")."'>";
+          title='"._("Not allowed")."'>";
       }
 
       /* Add snapshot icon */
@@ -350,7 +355,7 @@ class divListUsers extends MultiSelectWindow
           name='user_del_%KEY%' title='"._("Delete user")."'>";
       }else{
         $action.= "<img class='center' src='images/empty.png' alt='&nbsp;'  
-          title='"._("You are not allowed to remove this user.")."'>";
+          title='"._("Not allowed")."'>";
       }
 
       /* Create phonaccopunt informationm, if conencted && is phoneAccount */