Revision 8d712c32
Added by Carlos Eduardo Ramos almost 15 years ago
usr/local/www/status_gateway_groups.php | ||
---|---|---|
45 | 45 |
$config['gateways']['gateway_group'] = array(); |
46 | 46 |
|
47 | 47 |
$a_gateway_groups = &$config['gateways']['gateway_group']; |
48 |
$changedesc = "Gateway Groups: ";
|
|
48 |
$changedesc = gettext("Gateway Groups") . ": ";
|
|
49 | 49 |
|
50 | 50 |
$gateways_status = return_gateways_status(); |
51 | 51 |
|
52 |
$pgtitle = array("Status","Gateway Groups");
|
|
52 |
$pgtitle = array(gettext("Status"),gettext("Gateway Groups"));
|
|
53 | 53 |
include("head.inc"); |
54 | 54 |
|
55 | 55 |
?> |
... | ... | |
61 | 61 |
<td> |
62 | 62 |
<?php |
63 | 63 |
$tab_array = array(); |
64 |
$tab_array[0] = array("Gateways", false, "status_gateways.php");
|
|
65 |
$tab_array[1] = array("Groups", true, "status_gateway_groups.php");
|
|
64 |
$tab_array[0] = array(gettext("Gateways"), false, "status_gateways.php");
|
|
65 |
$tab_array[1] = array(gettext("Groups"), true, "status_gateway_groups.php");
|
|
66 | 66 |
display_top_tabs($tab_array); |
67 | 67 |
?> |
68 | 68 |
</td></tr> |
... | ... | |
71 | 71 |
<div id="mainarea"> |
72 | 72 |
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> |
73 | 73 |
<tr> |
74 |
<td width="20%" class="listhdrr">Group Name</td>
|
|
75 |
<td width="50%" class="listhdrr">Gateways</td>
|
|
76 |
<td width="30%" class="listhdr">Description</td>
|
|
74 |
<td width="20%" class="listhdrr"><?=gettext("Group Name"); ?></td>
|
|
75 |
<td width="50%" class="listhdrr"><?=gettext("Gateways"); ?></td>
|
|
76 |
<td width="30%" class="listhdr"><?=gettext("Description"); ?></td>
|
|
77 | 77 |
</tr> |
78 | 78 |
<?php $i = 0; foreach ($a_gateway_groups as $gateway_group): ?> |
79 | 79 |
<tr> |
... | ... | |
97 | 97 |
|
98 | 98 |
echo "<tr>"; |
99 | 99 |
foreach($priorities as $number => $tier) { |
100 |
echo "<td width='120'>Tier $number</td>";
|
|
100 |
printf(gettext("%sTier %s%s"), "<td width='120'>", $number, "</td>");
|
|
101 | 101 |
} |
102 | 102 |
echo "</tr>\n"; |
103 | 103 |
|
... | ... | |
120 | 120 |
if($p == $c) { |
121 | 121 |
$status = $gateways_status[$monitor]['status']; |
122 | 122 |
if (stristr($status, "down")) { |
123 |
$online = "Offline";
|
|
123 |
$online = gettext("Offline");
|
|
124 | 124 |
$bgcolor = "lightcoral"; |
125 | 125 |
} elseif (stristr($status, "loss")) { |
126 |
$online = "Warning, Packetloss";
|
|
126 |
$online = gettext("Warning, Packetloss");
|
|
127 | 127 |
$bgcolor = "khaki"; |
128 | 128 |
} elseif (stristr($status, "delay")) { |
129 |
$online = "Warning, Latency";
|
|
129 |
$online = gettext("Warning, Latency");
|
|
130 | 130 |
$bgcolor = "khaki"; |
131 | 131 |
} elseif ($status == "none") { |
132 |
$online = "Online";
|
|
132 |
$online = gettext("Online");
|
|
133 | 133 |
$bgcolor = "lightgreen"; |
134 | 134 |
} else { |
135 |
$online = "Unknown";
|
|
135 |
$online = gettext("Unknown");
|
|
136 | 136 |
$bgcolor = "lightblue"; |
137 | 137 |
} |
138 | 138 |
echo "<td bgcolor='$bgcolor'>". htmlspecialchars($member) .", $online</td>"; |
Also available in: Unified diff
Implement gettext() calls on status_gateway_groups.php