diff options
author | Vinicius Coque <vinicius.coque@bluepex.com> | 2010-04-28 08:55:03 -0300 |
---|---|---|
committer | Vinicius Coque <vinicius.coque@bluepex.com> | 2010-04-28 08:55:03 -0300 |
commit | 181b29ca667168808e378cc861ccc18afb53d5b3 (patch) | |
tree | 31655d6546878623a896e751ff7d183d95040d9a /usr | |
parent | cc8aa7db73fcd048c1d23c95b1326dbf18f744f0 (diff) | |
download | pfsense-181b29ca667168808e378cc861ccc18afb53d5b3.zip pfsense-181b29ca667168808e378cc861ccc18afb53d5b3.tar.gz |
Reviewing gettext() implementation
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 2571512..a51b1c4 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -110,7 +110,7 @@ if ($_POST) { if (is_ipaddr($parent_ip)) { $parent_sn = get_interface_subnet($_POST['interface']); if(!ip_in_subnet($_POST['gateway'], gen_subnet($parent_ip, $parent_sn) . "/" . $parent_sn)) { - $input_errors[] = sprint(gettext("The gateway address %s does not lie within the chosen interface's subnet."), $_POST['gateway']); + $input_errors[] = sprintf(gettext("The gateway address %s does not lie within the chosen interface's subnet."), $_POST['gateway']); } } } @@ -126,7 +126,7 @@ if ($_POST) { } if($_POST['name'] <> "") { if (($gateway['name'] <> "") && ($_POST['name'] == $gateway['name']) && ($gateway['attribute'] != "system")) { - $input_errors[] = sprintf(gettext("The gateway name \"s\" already exists.)", $_POST['name'])); + $input_errors[] = sprintf(gettext("The gateway name \"%s\" already exists."), $_POST['name']); break; } } |