Code

msgPool
[gosa.git] / gosa-plugins / dhcp / admin / systems / services / dhcp / class_dhcpGroup.inc
index e1bf7566fafe97228454b20cf846c0f19af3c502..ad7ed984263a09df28ff0c2cda2a96e8d51e12ca 100644 (file)
@@ -87,10 +87,10 @@ class dhcpGroup extends dhcpPlugin
 
     /* 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? */
@@ -98,7 +98,7 @@ class dhcpGroup extends dhcpPlugin
 
       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;
         }
       }