diff options
author | cadu <cadu@cadu-desktop.(none)> | 2010-06-17 22:13:22 -0300 |
---|---|---|
committer | cadu <cadu@cadu-desktop.(none)> | 2010-06-17 22:13:22 -0300 |
commit | 4a5430e37d3f21e2136ac26acbe3d6580c7073b5 (patch) | |
tree | cb865f8022abe4e796555960f2516b57113e4803 /usr/local/www/diag_ping.php | |
parent | e99a1c284a9f659dfdff3850588b5c41b94ad7a3 (diff) | |
download | pfsense-4a5430e37d3f21e2136ac26acbe3d6580c7073b5.zip pfsense-4a5430e37d3f21e2136ac26acbe3d6580c7073b5.tar.gz |
Implement gettext() calls
Diffstat (limited to 'usr/local/www/diag_ping.php')
-rwxr-xr-x | usr/local/www/diag_ping.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/diag_ping.php b/usr/local/www/diag_ping.php index b5658f5..a7bce2e 100755 --- a/usr/local/www/diag_ping.php +++ b/usr/local/www/diag_ping.php @@ -40,7 +40,7 @@ ##|*MATCH=diag_ping.php* ##|-PRIV -$pgtitle = array("Diagnostics", "Ping"); +$pgtitle = array(gettext("Diagnostics"), "Ping"); require("guiconfig.inc"); define('MAX_COUNT', 10); @@ -52,11 +52,11 @@ if ($_POST || $_REQUEST['host']) { /* input validation */ $reqdfields = explode(" ", "host count"); - $reqdfieldsn = explode(",", "Host,Count"); + $reqdfieldsn = array(",", gettext("Host"),gettext("Count")); do_input_validation($_REQUEST, $reqdfields, $reqdfieldsn, &$input_errors); if (($_REQUEST['count'] < 1) || ($_REQUEST['count'] > MAX_COUNT)) { - $input_errors[] = "Count must be between 1 and {MAX_COUNT}"; + $input_errors[] = sprintf(gettext("Count must be between 1 and %s"), MAX_COUNT); } if (!$input_errors) { @@ -103,7 +103,7 @@ include("head.inc"); ?> </td> </tr> <tr> - <td width="22%" valign="top" class="vncellreq">Count</td> + <td width="22%" valign="top" class="vncellreq"><?= gettext("Count"); ?></td> <td width="78%" class="vtable"> <select name="count" class="formfld" id="count"> <?php for ($i = 1; $i <= MAX_COUNT; $i++): ?> @@ -121,7 +121,7 @@ include("head.inc"); ?> <td valign="top" colspan="2"> <? if ($do_ping) { echo "<font face='terminal' size='2'>"; - echo("<strong>Ping output:</strong><br>"); + echo "<strong>" . gettext("Ping output") . ":</strong><br>"); echo('<pre>'); $ifaddr = get_interface_ip($interface); if ($ifaddr) |