summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_traceroute.php
diff options
context:
space:
mode:
authorRafael Lucas <rafalucas.unicamp@gmail.com>2010-06-18 00:01:50 -0300
committerRafael Lucas <rafalucas.unicamp@gmail.com>2010-06-18 00:01:50 -0300
commit6132751b0a44d6eb404f09c4d693b2381624c072 (patch)
treece141a5063e358c3426d8307ea87abba12646d3a /usr/local/www/diag_traceroute.php
parenta57e6af8c984f422042a4a58ab6b35708ed72fa7 (diff)
downloadpfsense-6132751b0a44d6eb404f09c4d693b2381624c072.zip
pfsense-6132751b0a44d6eb404f09c4d693b2381624c072.tar.gz
Implement gettext() calls at the files: "diag_traceroute.php", "diag_system_pftop.php", "diag_system_activity.php"
Diffstat (limited to 'usr/local/www/diag_traceroute.php')
-rwxr-xr-xusr/local/www/diag_traceroute.php20
1 files changed, 10 insertions, 10 deletions
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