From ab1f455639050930d4c35f267bee49490612dfed Mon Sep 17 00:00:00 2001 From: Vinicius Coque Date: Fri, 2 Jul 2010 15:58:43 -0300 Subject: Fixing gettext calls on firewall_virtual_ip_edit.php --- usr/local/www/firewall_virtual_ip_edit.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index 44612c5..912cdbd 100755 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -100,8 +100,8 @@ if ($_POST) { $pconfig = $_POST; /* input validation */ - $reqdfields = explode(" ", gettext("mode")); - $reqdfieldsn = explode(",", gettext("Type")); + $reqdfields = explode(" ", "mode"); + $reqdfieldsn = array(gettext("Type")); do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); @@ -145,7 +145,7 @@ if ($_POST) { $parent_sn = get_interface_subnet($_POST['interface']); if (!ip_in_subnet($_POST['subnet'], gen_subnet($parent_ip, $parent_sn) . "/" . $parent_sn)) { $cannot_find = $_POST['subnet'] . "/" . $_POST['subnet_bits'] ; - $input_errors[] = gettext("Sorry, we could not locate an interface with a matching subnet for {$cannot_find}. Please add an IP alias in this subnet on this interface."); + $input_errors[] = sprintf(gettext("Sorry, we could not locate an interface with a matching subnet for %s. Please add an IP alias in this subnet on this interface."),$cannot_find); } else if ($parent_sn != $_POST['subnet_bits']) $input_errors[] = gettext("Subnet bits needs to be the same as the parent interface."); @@ -229,7 +229,7 @@ if ($_POST) { } } -$pgtitle = array(gettext("Firewall"),gettext("Virtual IP Address","Edit")); +$pgtitle = array(gettext("Firewall"),gettext("Virtual IP Address"),gettext("Edit")); include("head.inc"); ?> @@ -248,9 +248,9 @@ function get_radio_value(obj) } function enable_change(enable_over) { var note = document.getElementById("typenote"); - var carpnote = document.createTextNode(); - var proxyarpnote = document.createTextNode(); - var ipaliasnote = document.createTextNode(); + var carpnote = document.createTextNode(''); + var proxyarpnote = document.createTextNode(''); + var ipaliasnote = document.createTextNode(''); if ((get_radio_value(document.iform.mode) == "carp") || enable_over) { document.iform.vhid.disabled = 0; document.iform.password.disabled = 0; @@ -379,7 +379,7 @@ function typesel_change() { - + - +
  :  
  :   /