From 3deb92f7c836ed149cd7e50367052a3af60c420d Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 30 Jun 2010 09:01:20 -0300 Subject: Revert "Implemment gettext() calls" This reverts commit 49031495b501e4477941fa6248fe94cc698f9dcd. A lot of mistakes Conflicts: usr/local/www/firewall_nat.php --- usr/local/www/diag_dns.php | 2 +- usr/local/www/firewall_aliases.php | 2 +- usr/local/www/firewall_aliases_edit.php | 15 ++++++--------- usr/local/www/firewall_nat_out.php | 2 +- usr/local/www/firewall_rules_edit.php | 8 ++++---- 5 files changed, 13 insertions(+), 16 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/diag_dns.php b/usr/local/www/diag_dns.php index ee4c3ed..a82628d 100644 --- a/usr/local/www/diag_dns.php +++ b/usr/local/www/diag_dns.php @@ -124,7 +124,7 @@ include("head.inc"); ?> - +

- gettext("You must apply the changes in order for them to take effect.")); ?> +You must apply the changes in order for them to take effect.");?> diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php index e44229e..a7e50b6 100755 --- a/usr/local/www/firewall_aliases_edit.php +++ b/usr/local/www/firewall_aliases_edit.php @@ -137,15 +137,12 @@ if ($_POST) { $x = is_validaliasname($_POST['name']); if (!isset($x)) { $input_errors[] = gettext("Reserved word used for alias name."); - } - else if ($_POST['type'] == "port" && (getservbyname($_POST['name'], "tcp") || getservbyname($_POST['name'], "udp"))) - { - $input_errors[] = gettext("Reserved word used for alias name."); - } - else { - if (is_validaliasname($_POST['name']) == false) + } else if ($_POST['type'] == "port" && (getservbyname($_POST['name'], "tcp") || getservbyname($_POST['name'], "udp"))) { + $input_errors[] = gettext("Reserved word used for alias name.)"; + } else { + if (is_validaliasname($_POST['name']) == false) $input_errors[] = gettext("The alias name may only consist of the characters a-z, A-Z, 0-9, _."); - } + } /* check for name conflicts */ if (empty($a_aliases[$id])) { foreach ($a_aliases as $alias) { @@ -262,7 +259,7 @@ if ($_POST) { if (!is_ipaddr($_POST["address{$x}"]) && !is_hostname($_POST["address{$x}"]) && !is_iprange($_POST["address{$x}"])) - $input_errors[] = sprintf(gettext("%s is not a valid %s alias."), $_POST["address{$x}"], $_POST['type']); + $input_errors[] = sprintf(gettext("%s is not a valid %s alias."), $_POST["address{$x}"], $_POST['type']; } if (is_iprange($_POST["address{$x}"])) { list($startip, $endip) = explode('-', $_POST["address{$x}"]); diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php index bd4e081..bcde21b 100755 --- a/usr/local/www/firewall_nat_out.php +++ b/usr/local/www/firewall_nat_out.php @@ -291,7 +291,7 @@ include("head.inc");

- gettext("You must apply the changes in order for them to take effect."));?>
+gettext("You must apply the changes in order for them to take effect."));?>

@@ -910,7 +910,7 @@ include("head.inc"); -- cgit v1.1
$kdescr) { $specialsrcdst[] = "{$kif}"; @@ -901,7 +901,7 @@ include("head.inc"); $wkportdesc): ?> - + autocomplete='off' class="formfldalias" name="dstbeginport_cust" id="dstbeginport_cust" type="text" size="5" value=""> name="dstendport" class="formselect" onchange="ext_change()"> - + $wkportdesc): ?> @@ -934,7 +934,7 @@ include("head.inc"); >
- Diagnostics: System logs: Settings page).");?> + Diagnostics: System logs: Settings page).");?>