From 8d712c32c2feb783508272a515635caf6003f8a9 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Ramos Date: Wed, 21 Jul 2010 17:43:24 -0300 Subject: Implement gettext() calls on status_gateway_groups.php --- usr/local/www/status_gateway_groups.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/status_gateway_groups.php b/usr/local/www/status_gateway_groups.php index 5ed4aa9..c282d36 100755 --- a/usr/local/www/status_gateway_groups.php +++ b/usr/local/www/status_gateway_groups.php @@ -45,11 +45,11 @@ if (!is_array($config['gateways']['gateway_group'])) $config['gateways']['gateway_group'] = array(); $a_gateway_groups = &$config['gateways']['gateway_group']; -$changedesc = "Gateway Groups: "; +$changedesc = gettext("Gateway Groups") . ": "; $gateways_status = return_gateways_status(); -$pgtitle = array("Status","Gateway Groups"); +$pgtitle = array(gettext("Status"),gettext("Gateway Groups")); include("head.inc"); ?> @@ -61,8 +61,8 @@ include("head.inc"); @@ -71,9 +71,9 @@ include("head.inc");
- - - + + + @@ -97,7 +97,7 @@ include("head.inc"); echo ""; foreach($priorities as $number => $tier) { - echo ""; + printf(gettext("%sTier %s%s"), ""); } echo "\n"; @@ -120,19 +120,19 @@ include("head.inc"); if($p == $c) { $status = $gateways_status[$monitor]['status']; if (stristr($status, "down")) { - $online = "Offline"; + $online = gettext("Offline"); $bgcolor = "lightcoral"; } elseif (stristr($status, "loss")) { - $online = "Warning, Packetloss"; + $online = gettext("Warning, Packetloss"); $bgcolor = "khaki"; } elseif (stristr($status, "delay")) { - $online = "Warning, Latency"; + $online = gettext("Warning, Latency"); $bgcolor = "khaki"; } elseif ($status == "none") { - $online = "Online"; + $online = gettext("Online"); $bgcolor = "lightgreen"; } else { - $online = "Unknown"; + $online = gettext("Unknown"); $bgcolor = "lightblue"; } echo ""; -- cgit v1.1
Group NameGatewaysDescription
Tier $number", $number, "
". htmlspecialchars($member) .", $online