Revision 6730eae1
Added by Carlos Eduardo Ramos almost 15 years ago
usr/local/www/interfaces_groups_edit.php | ||
---|---|---|
37 | 37 |
##|*MATCH=interfaces_groups_edit.php* |
38 | 38 |
##|-PRIV |
39 | 39 |
|
40 |
$pgtitle = array(gettext("Interfaces"),gettext("Groups"),gettext("Edit")); |
|
41 | 40 |
|
42 | 41 |
require("guiconfig.inc"); |
42 |
require_once("functions.inc"); |
|
43 |
|
|
44 |
$pgtitle = array(gettext("Interfaces"),gettext("Groups"),gettext("Edit")); |
|
43 | 45 |
|
44 | 46 |
if (!is_array($config['ifgroups']['ifgroupentry'])) |
45 | 47 |
$config['ifgroups']['ifgroupentry'] = array(); |
... | ... | |
66 | 68 |
if (!isset($id)) { |
67 | 69 |
foreach ($a_ifgroups as $groupentry) |
68 | 70 |
if ($groupentry['ifname'] == $_POST['ifname']) |
69 |
$input_errors[] = "Group name already exists!";
|
|
71 |
$input_errors[] = gettext("Group name already exists!");
|
|
70 | 72 |
} |
71 | 73 |
if (preg_match("/([^a-zA-Z])+/", $_POST['ifname'], $match)) |
72 | 74 |
$input_errors[] = gettext("Only letters A-Z are allowed as the group name."); |
Also available in: Unified diff
Checked gettext() implementation on interfaces_groups_edit.php