diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpGroup.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpGroup.inc
index cbe987da8c538d95166ff7ea6b967d9084192aa9..ad7ed984263a09df28ff0c2cda2a96e8d51e12ca 100644 (file)
}
/* Add footer */
- $display.= "<div style='width:100%;text-align:right;margin-top:5px;'><input type=submit name='save_dhcp' value='"._("Save")."'>".
- " <input type=submit name='cancel_dhcp' value='"._("Cancel")."'></div>";
+ $display.= "<div style='width:100%;text-align:right;margin-top:5px;'><input type=submit name='save_dhcp' value='".msgPool::saveButton()."'>".
+ " <input type=submit name='cancel_dhcp' value='".msgPool::cancelButton()."'></div>";
return ($display);
/* All required fields are set? */
if ($this->cn == ""){
- $message[]= _("Required field 'Name' is not filled.");
+ $message[]= msgPool::required(_("Name"));
}
if (!preg_match('/^[a-z0-9_-]*$/i', $this->cn)){
- $message[]= _("Field 'Name' contains illegal characters.");
+ $message[]= msgPool::invalid(_("Name"),$this->cn,"/[a-z0-9_-]/i");
}
/* cn already used? */
foreach($cache as $dn => $dummy){
if (preg_match("/^cn=".$this->cn.",/", $dn) && count($dummy)){
- $message[]= _("The name for this host section is already used!");
+ $message[]= msgPool::duplicated(_("Name"));
break;
}
}