Code

msgPoolized
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 8 Mar 2008 12:44:24 +0000 (12:44 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 8 Mar 2008 12:44:24 +0000 (12:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9461 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/nagios/personal/nagios/class_nagiosAccount.inc
gosa-plugins/nagios/personal/nagios/main.inc

index d9d6588440d58cfb0a34dd6deae6b188977901d9..1b7b580e52a95bd3f195fbdf533f1af6f6412efd 100644 (file)
@@ -102,7 +102,7 @@ class nagiosAccount extends plugin
     /* Do we represent a valid account? */
     if (!$this->is_account && $this->parent === NULL){
       $display= "<img alt=\"\"src=\"images/stop.png\" align=\"middle\">&nbsp;<b>".
-        _("This account has no nagios extensions.")."</b>";
+        msgPool::noValidextension(_("Nagios"))."</b>";
 
       $display.= back_to_main();
       return ($display);
@@ -111,10 +111,9 @@ class nagiosAccount extends plugin
     /* Show tab dialog headers */
     if ($this->parent !== NULL){
       if ($this->is_account){
-        $display= $this->show_disable_header(_("Remove nagios account"),
-            _("This account has nagios features enabled. You can disable them by clicking below."));
+        $display= $this->show_disable_header(msgPool::removeFeaturesButton(_("Nagios")), msgPool::featuresEnabled(_("Nagios")));
       } else {
-        $display= $this->show_enable_header(_("Create nagios account"), _("This account has nagios features disabled. You can enable them by clicking below."));
+        $display= $this->show_enable_header(msgPool::addFeaturesButton(_("Nagios")), msgPool::featuresDisabled(_("Nagios")));
         return($display);
       }
     }
index bf697b8f4e34b70bd92e454c23a6663d4b857e1b..21b136e7961551fb5491c905bf473d669e34e91b 100644 (file)
@@ -102,9 +102,9 @@ if (!$remove_lock){
 
     /* Are we in edit mode? */
     if (session::is_set('edit')){
-      $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;";
-      $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
+      $display.= "<input type=submit name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">\n";
       $info= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png').
              "\"> ".$ui->dn."&nbsp;";
     } else {
@@ -113,8 +113,8 @@ if (!$remove_lock){
 
       if(preg_match("/w/",$ui->get_permissions($ui->dn,"users/nagiosAccount"))){
         $info.= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lamp.png').
-          "\"> "._("Click the 'Edit' button below to change informations in this dialog");
-        $display.= "<input type=submit name=\"edit\" value=\""._("Edit")."\">\n";
+          "\"> ".msgPool::clickEditToChange();
+        $display.= "<input type=submit name=\"edit\" value=\"".msgPool::editButton()."\">\n";
       }
       $display.= "<input type=\"hidden\" name=\"ignore\">\n";
     }