From 1f7b695950e494752c93bc7a3aa0e1272dc4761c Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Ramos Date: Thu, 15 Jul 2010 15:18:55 -0300 Subject: [PATCH] Corrections gettext implementation on load_balancer_monitor_edit.php --- usr/local/www/load_balancer_monitor_edit.php | 46 ++++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/usr/local/www/load_balancer_monitor_edit.php b/usr/local/www/load_balancer_monitor_edit.php index a302492b8e..630e31d4f4 100755 --- a/usr/local/www/load_balancer_monitor_edit.php +++ b/usr/local/www/load_balancer_monitor_edit.php @@ -63,7 +63,7 @@ if (isset($id) && $a_monitor[$id]) { $pconfig['options']['code'] = 200; } -$changedesc = "Load Balancer: Monitor: "; +$changedesc = gettext("Load Balancer: Monitor:") . " "; $changecount = 0; if ($_POST) { @@ -85,7 +85,7 @@ if ($_POST) { /* input validation */ $reqdfields = explode(" ", "name type desc"); - $reqdfieldsn = explode(",", "Name,Type,Description"); + $reqdfieldsn = array(gettext("Name"),gettext("Type"),gettext("Description")); do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); @@ -139,7 +139,7 @@ if ($_POST) { if(isset($id) && $a_monitor[$id]) $monent = $a_monitor[$id]; if($monent['name'] != "") - $changedesc .= " modified '{$monent['name']}' monitor:"; + $changedesc .= " " . sprintf(gettext("modified '%s' monitor"), $monent['name']) . ":"; update_if_changed("name", $monent['name'], $pconfig['name']); update_if_changed("type", $monent['type'], $pconfig['type']); @@ -187,13 +187,13 @@ if ($_POST) { } } -$pgtitle = array(gettext("Services", "Load Balancer","Monitor","Edit")); +$pgtitle = array(gettext("Services"),gettext("Load Balancer"),gettext("Monitor"),gettext("Edit")); #$statusurl = "status_lb_vs.php"; $statusurl = "status_lb_pool.php"; $logurl = "diag_logs_relayd.php"; include("head.inc"); -$types = array("icmp" => "ICMP", "tcp" => "TCP", "http" => "HTTP", "https" => "HTTPS", "send" => "Send/Expect"); +$types = array("icmp" => gettext("ICMP"), "tcp" => gettext("TCP"), "http" => gettext("HTTP"), "https" => gettext("HTTPS"), "send" => gettext("Send/Expect")); ?> @@ -226,22 +226,22 @@ function updateType(t){
- + - + - + - + > - +
gettext("Edit Load Balancer - Monitor entry")
gettext("Name") size="16" maxlength="16">
gettext("Description") size="64">
Type
HTTP - + - + - + @@ -295,23 +295,23 @@ function updateType(t){ > - +
gettext("Path") size="64">
gettext("Host") - size="64">
gettext("Hostname for Host: header if needed.") + size="64">
gettext("HTTP Code")
HTTPS - + - + - + @@ -329,17 +329,17 @@ function updateType(t){ > - +
Path size="64">
Host - size="64">
gettext("Hostname for Host: header if needed.") + size="64">
gettext("HTTP Code")
gettext("Send/Expect") - + - + @@ -350,7 +350,7 @@ function updateType(t){
gettext("Send string") size="64">
gettext("Expect string") size="64">
  - + " onclick="history.back()">