Revision 181b29ca
Added by Vinicius Coque about 15 years ago
usr/local/www/system_gateways_edit.php | ||
---|---|---|
110 | 110 |
if (is_ipaddr($parent_ip)) { |
111 | 111 |
$parent_sn = get_interface_subnet($_POST['interface']); |
112 | 112 |
if(!ip_in_subnet($_POST['gateway'], gen_subnet($parent_ip, $parent_sn) . "/" . $parent_sn)) { |
113 |
$input_errors[] = sprint(gettext("The gateway address %s does not lie within the chosen interface's subnet."), $_POST['gateway']); |
|
113 |
$input_errors[] = sprintf(gettext("The gateway address %s does not lie within the chosen interface's subnet."), $_POST['gateway']);
|
|
114 | 114 |
} |
115 | 115 |
} |
116 | 116 |
} |
... | ... | |
126 | 126 |
} |
127 | 127 |
if($_POST['name'] <> "") { |
128 | 128 |
if (($gateway['name'] <> "") && ($_POST['name'] == $gateway['name']) && ($gateway['attribute'] != "system")) { |
129 |
$input_errors[] = sprintf(gettext("The gateway name \"s\" already exists.)", $_POST['name']));
|
|
129 |
$input_errors[] = sprintf(gettext("The gateway name \"%s\" already exists."), $_POST['name']);
|
|
130 | 130 |
break; |
131 | 131 |
} |
132 | 132 |
} |
Also available in: Unified diff
Reviewing gettext() implementation