summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8f4655b)
raw | patch | inline | side by side (parent: 8f4655b)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 8 Mar 2008 12:44:24 +0000 (12:44 +0000) | ||
committer | cajus <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 | patch | blob | history | |
gosa-plugins/nagios/personal/nagios/main.inc | patch | blob | history |
diff --git a/gosa-plugins/nagios/personal/nagios/class_nagiosAccount.inc b/gosa-plugins/nagios/personal/nagios/class_nagiosAccount.inc
index d9d6588440d58cfb0a34dd6deae6b188977901d9..1b7b580e52a95bd3f195fbdf533f1af6f6412efd 100644 (file)
/* Do we represent a valid account? */
if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\"src=\"images/stop.png\" align=\"middle\"> <b>".
- _("This account has no nagios extensions.")."</b>";
+ msgPool::noValidextension(_("Nagios"))."</b>";
$display.= back_to_main();
return ($display);
/* 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 bf697b8f4e34b70bd92e454c23a6663d4b857e1b..21b136e7961551fb5491c905bf473d669e34e91b 100644 (file)
/* 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.= " ";
- $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." ";
} else {
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";
}