summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_gateway_groups.php
diff options
context:
space:
mode:
authorCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-07-21 17:43:24 -0300
committerCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-07-21 17:43:24 -0300
commit8d712c32c2feb783508272a515635caf6003f8a9 (patch)
tree61ebf8a9895832eac9d80840a6eac8d9120924b4 /usr/local/www/status_gateway_groups.php
parent637101d58c7191318c38c598a0645fb49f9d9cea (diff)
downloadpfsense-8d712c32c2feb783508272a515635caf6003f8a9.zip
pfsense-8d712c32c2feb783508272a515635caf6003f8a9.tar.gz
Implement gettext() calls on status_gateway_groups.php
Diffstat (limited to 'usr/local/www/status_gateway_groups.php')
-rwxr-xr-xusr/local/www/status_gateway_groups.php26
1 files changed, 13 insertions, 13 deletions
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");
<td>
<?php
$tab_array = array();
- $tab_array[0] = array("Gateways", false, "status_gateways.php");
- $tab_array[1] = array("Groups", true, "status_gateway_groups.php");
+ $tab_array[0] = array(gettext("Gateways"), false, "status_gateways.php");
+ $tab_array[1] = array(gettext("Groups"), true, "status_gateway_groups.php");
display_top_tabs($tab_array);
?>
</td></tr>
@@ -71,9 +71,9 @@ include("head.inc");
<div id="mainarea">
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
- <td width="20%" class="listhdrr">Group Name</td>
- <td width="50%" class="listhdrr">Gateways</td>
- <td width="30%" class="listhdr">Description</td>
+ <td width="20%" class="listhdrr"><?=gettext("Group Name"); ?></td>
+ <td width="50%" class="listhdrr"><?=gettext("Gateways"); ?></td>
+ <td width="30%" class="listhdr"><?=gettext("Description"); ?></td>
</tr>
<?php $i = 0; foreach ($a_gateway_groups as $gateway_group): ?>
<tr>
@@ -97,7 +97,7 @@ include("head.inc");
echo "<tr>";
foreach($priorities as $number => $tier) {
- echo "<td width='120'>Tier $number</td>";
+ printf(gettext("%sTier %s%s"), "<td width='120'>", $number, "</td>");
}
echo "</tr>\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 "<td bgcolor='$bgcolor'>". htmlspecialchars($member) .", $online</td>";
OpenPOWER on IntegriCloud