summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/diag_system_activity.php4
-rw-r--r--usr/local/www/diag_system_pftop.php28
-rwxr-xr-xusr/local/www/diag_traceroute.php20
3 files changed, 26 insertions, 26 deletions
diff --git a/usr/local/www/diag_system_activity.php b/usr/local/www/diag_system_activity.php
index 18e6842..b94dc92 100644
--- a/usr/local/www/diag_system_activity.php
+++ b/usr/local/www/diag_system_activity.php
@@ -43,7 +43,7 @@ require("guiconfig.inc");
$pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
-$pgtitle = "Diagnostics: System Activity";
+$pgtitle = gettext("Diagnostics: System Activity");
if($_REQUEST['getactivity']) {
$text = `/usr/bin/top -HS`;
@@ -98,7 +98,7 @@ include("head.inc");
<table>
<tr><td>
<div name='cpuactivitydiv' id='cpuactivitydiv'>
- <b>Gathering CPU activity, please wait...
+ <b><?=gettext("Gathering CPU activity, please wait...");?>
</div>
</td></tr>
</table>
diff --git a/usr/local/www/diag_system_pftop.php b/usr/local/www/diag_system_pftop.php
index 6dcee5c..4ff5cec 100644
--- a/usr/local/www/diag_system_pftop.php
+++ b/usr/local/www/diag_system_pftop.php
@@ -42,7 +42,7 @@ require("guiconfig.inc");
$pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
-$pgtitle = "Diagnostics: PFTop";
+$pgtitle = gettext("Diagnostics: PFTop");
if($_REQUEST['getactivity']) {
if($_REQUEST['sorttype'])
@@ -99,18 +99,18 @@ else
Sort type:
<select name='sorttype' id='sorttype' onChange='this.form.submit();'>
<option value='<?=$sorttype?>'><?=$sorttype?></option>
- <option value='age'>age</option>
- <option value='bytes'>bytes</option>
- <option value='dest'>dest</option>
- <option value='dport'>dport</option>
- <option value='exp'>exp</option>
- <option value='none'>none</option>
- <option value='peak'>peak</option>
- <option value='pkt'>pkt</option>
- <option value='rate'>rate</option>
- <option value='size'>size</option>
- <option value='sport'>sport</option>
- <option value='src'>src</option>
+ <option value='age'><?=gettext("age");?></option>
+ <option value='bytes'><?=gettext("bytes");?></option>
+ <option value='dest'><?=gettext("dest");?></option>
+ <option value='dport'><?=gettext("dport");?></option>
+ <option value='exp'><?=gettext("exp");?></option>
+ <option value='none'><?=gettext("none");?></option>
+ <option value='peak'><?=gettext("peak");?></option>
+ <option value='pkt'><?=gettext("pkt");?></option>
+ <option value='rate'><?=gettext("rate");?></option>
+ <option value='size'><?=gettext("size");?></option>
+ <option value='sport'><?=gettext("sport");?></option>
+ <option value='src'><?=gettext("src");?></option>
</select>
<p/>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
@@ -123,7 +123,7 @@ else
<table>
<tr><td>
<div name='cpuactivitydiv' id='cpuactivitydiv'>
- <b>Gathering pfTOP activity, please wait...
+ <b><?=gettext("Gathering pfTOP activity, please wait...");?>
</div>
</td></tr>
</table>
diff --git a/usr/local/www/diag_traceroute.php b/usr/local/www/diag_traceroute.php
index 7f30bbe..75ffadf 100755
--- a/usr/local/www/diag_traceroute.php
+++ b/usr/local/www/diag_traceroute.php
@@ -42,7 +42,7 @@
require("guiconfig.inc");
-$pgtitle = array("Diagnostics","Traceroute");
+$pgtitle = array(gettext("Diagnostics"),gettext("Traceroute"));
include("head.inc");
?>
@@ -59,11 +59,11 @@ if ($_POST || $_REQUEST['host']) {
/* input validation */
$reqdfields = explode(" ", "host ttl");
- $reqdfieldsn = explode(",", "Host,ttl");
+ $reqdfieldsn = array(gettext("Host"),gettext("ttl"));
do_input_validation($_REQUEST, $reqdfields, $reqdfieldsn, &$input_errors);
if (($_REQUEST['ttl'] < 1) || ($_REQUEST['ttl'] > MAX_TTL)) {
- $input_errors[] = "Maximum number of hops must be between 1 and {MAX_TTL}";
+ $input_errors[] = sprintf(gettext("Maximum number of hops must be between 1 and '%s'", MAX_TLL);
}
if (!$input_errors) {
@@ -83,15 +83,15 @@ if (!isset($do_traceroute)) {
<form action="diag_traceroute.php" method="post" name="iform" id="iform">
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td colspan="2" valign="top" class="listtopic">Traceroute</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Traceroute");?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncellreq">Host</td>
+ <td width="22%" valign="top" class="vncellreq"><?=gettext("Host");?></td>
<td width="78%" class="vtable">
<?=$mandfldhtml;?><input name="host" type="text" class="formfld" id="host" size="20" value="<?=htmlspecialchars($host);?>"></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncellreq">Maximum number of hops</td>
+ <td width="22%" valign="top" class="vncellreq"><?=gettext("Maximum number of hops");?></td>
<td width="78%" class="vtable">
<select name="ttl" class="formfld" id="ttl">
<?php for ($i = 1; $i <= MAX_TTL; $i++): ?>
@@ -101,7 +101,7 @@ if (!isset($do_traceroute)) {
</tr>
<tr>
- <td width="22%" valign="top" class="vncellreq">Use ICMP</td>
+ <td width="22%" valign="top" class="vncellreq"><?=gettext("Use ICMP");?></td>
<td width="78%" class="vtable">
<input name="useicmp" type="checkbox"<?php if($_REQUEST['useicmp']) echo " CHECKED"; ?>>
</td>
@@ -109,12 +109,12 @@ if (!isset($do_traceroute)) {
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
- <input name="Submit" type="submit" class="formbtn" value="Traceroute">
+ <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Traceroute");?>">
</td>
</tr>
<tr>
<td valign="top" colspan="2">
- <p><span class="vexpl"><span class="red"><strong>Note: </strong></span> Traceroute may take a while to complete. You may hit the Stop button on your browser at any time to see the progress of failed traceroutes.<p>
+ <p><span class="vexpl"><span class="red"><b><?=gettext("Note");?>:</b></span><?=gettext("Traceroute may take a while to complete.". "You may hit the Stop button on your browser at any time to see the progress of failed traceroutes.");?><p>
<? if ($do_traceroute) {
echo "<font face='terminal' size='2'>";
echo("<br><strong>Traceroute output:</strong><br>");
@@ -133,7 +133,7 @@ if (!isset($do_traceroute)) {
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
- <span class="vexpl"><strong>Note: </strong></span> Multi-wan is not supported from this utility currently.
+ <span class="vexpl"><b><?=gettext("Note");?>:</b></span><?=gettext("Multi-wan is not supported from this utility currently.");?>
</td>
</tr>
</table>
OpenPOWER on IntegriCloud