From fc074ff98cf2a167a3d56a03b9c652406c674aa0 Mon Sep 17 00:00:00 2001 From: cajus Date: Sat, 8 Mar 2008 12:44:24 +0000 Subject: [PATCH] msgPoolized git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9461 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../nagios/personal/nagios/class_nagiosAccount.inc | 7 +++---- gosa-plugins/nagios/personal/nagios/main.inc | 8 ++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/gosa-plugins/nagios/personal/nagios/class_nagiosAccount.inc b/gosa-plugins/nagios/personal/nagios/class_nagiosAccount.inc index d9d658844..1b7b580e5 100644 --- a/gosa-plugins/nagios/personal/nagios/class_nagiosAccount.inc +++ b/gosa-plugins/nagios/personal/nagios/class_nagiosAccount.inc @@ -102,7 +102,7 @@ class nagiosAccount extends plugin /* Do we represent a valid account? */ if (!$this->is_account && $this->parent === NULL){ $display= "\"\"src=\"images/stop.png\" ". - _("This account has no nagios extensions.").""; + msgPool::noValidextension(_("Nagios")).""; $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); } } diff --git a/gosa-plugins/nagios/personal/nagios/main.inc b/gosa-plugins/nagios/personal/nagios/main.inc index bf697b8f4..21b136e79 100644 --- a/gosa-plugins/nagios/personal/nagios/main.inc +++ b/gosa-plugins/nagios/personal/nagios/main.inc @@ -102,9 +102,9 @@ if (!$remove_lock){ /* Are we in edit mode? */ if (session::is_set('edit')){ - $display.= "\n"; + $display.= "\n"; $display.= " "; - $display.= "\n"; + $display.= "\n"; $info= "\"\" ".$ui->dn." "; } else { @@ -113,8 +113,8 @@ if (!$remove_lock){ if(preg_match("/w/",$ui->get_permissions($ui->dn,"users/nagiosAccount"))){ $info.= "\"\" "._("Click the 'Edit' button below to change informations in this dialog"); - $display.= "\n"; + "\"> ".msgPool::clickEditToChange(); + $display.= "\n"; } $display.= "\n"; } -- 2.30.2