Revision d0033721
Added by Carlos Eduardo Ramos almost 15 years ago
usr/local/www/status_graph.php | ||
---|---|---|
59 | 59 |
else |
60 | 60 |
$curif = "wan"; |
61 | 61 |
|
62 |
$pgtitle = array("Status","Traffic Graph");
|
|
62 |
$pgtitle = array(gettext("Status"),gettext("Traffic Graph"));
|
|
63 | 63 |
|
64 | 64 |
include("head.inc"); |
65 | 65 |
|
... | ... | |
149 | 149 |
|
150 | 150 |
<?php include("fbegin.inc"); ?> |
151 | 151 |
<?php |
152 |
$ifdescrs = array('wan' => 'WAN', 'lan' => 'LAN');
|
|
152 |
$ifdescrs = array('wan' => gettext('WAN'), 'lan' => gettext('LAN'));
|
|
153 | 153 |
|
154 | 154 |
for($j = 1; isset($config['interfaces']['opt' . $j]); $j++) { |
155 | 155 |
if(isset($config['interfaces']['opt' . $j]['enable'])) |
... | ... | |
173 | 173 |
?> |
174 | 174 |
</select> |
175 | 175 |
</form> |
176 |
<p><span class="red"><strong>Note:</strong></span> the <a href="http://www.adobe.com/svg/viewer/install/" target="_blank">Adobe SVG Viewer</a>, Firefox 1.5 or later or other browser supporting SVG is required to view the graph.
|
|
176 |
<p><span class="red"><strong><?=gettext("Note"); ?>:</strong></span> <?=gettext("the"); ?> <a href="http://www.adobe.com/svg/viewer/install/" target="_blank"><?=gettext("Adobe SVG Viewer"); ?></a>, <?=gettext("Firefox 1.5 or later or other browser supporting SVG is required to view the graph"); ?>.
|
|
177 | 177 |
<p><form method="post" action="status_graph.php"> |
178 | 178 |
</form> |
179 | 179 |
<p> |
... | ... | |
181 | 181 |
<div class="widgetdiv" style="padding: 5px; float:left; width:46%"> |
182 | 182 |
<object data="graph.php?ifnum=<?=$curif;?>&ifname=<?=rawurlencode($ifdescrs[$curif]);?>" type="image/svg+xml" width="<?=$width;?>" height="<?=$height;?>"> |
183 | 183 |
<param name="src" value="graph.php?ifnum=<?=$curif;?>&ifname=<?=rawurlencode($ifdescrs[$curif]);?>" /> |
184 |
Your browser does not support the type SVG! You need to either use Firefox or download the Adobe SVG plugin.
|
|
184 |
<?=gettext("Your browser does not support the type SVG! You need to either use Firefox or download the Adobe SVG plugin"); ?>.
|
|
185 | 185 |
</object> |
186 | 186 |
</div> |
187 | 187 |
<div class="widgetdiv" style="padding: 5px; float:right; width:48%"> |
188 | 188 |
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
189 | 189 |
<tr> |
190 |
<td class="listtopic" valign="top">Host IP</td>
|
|
191 |
<td class="listtopic" valign="top">Bandwidth In</td>
|
|
192 |
<td class="listtopic" valign="top">Bandwidth Out</td>
|
|
190 |
<td class="listtopic" valign="top"><?=gettext("Host IP"); ?></td>
|
|
191 |
<td class="listtopic" valign="top"><?=gettext("Bandwidth In"); ?></td>
|
|
192 |
<td class="listtopic" valign="top"><?=gettext("Bandwidth Out"); ?></td>
|
|
193 | 193 |
</tr> |
194 | 194 |
<tr id="host0" style="display:none"> |
195 | 195 |
<td id="hostip0" class="vncell"> |
Also available in: Unified diff
Implement gettext() calls on status_graph.php