Code

msgPool
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Mar 2008 10:07:25 +0000 (10:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Mar 2008 10:07:25 +0000 (10:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9421 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/personal/environment/class_logonManagementDialog.inc

index 349d19548d8d8d2f9ddc4ce1ca5a7b73c197862a..5110ab25af7f24503af4d684545a185be23008f5 100644 (file)
@@ -100,15 +100,15 @@ class logonManagementDialog extends plugin
     $message= plugin::check();
   
     if(preg_match("/[^a-zA-Z]/",$this->LogonName)){
-      $message[] = _("Specified name should only consist of upper-/lowercase characters.");
+      $message[] = msgPool::invalid(_("Name"),$this->LogonName,"/[a-zA-Z]/");
     }
 
     if(empty($this->LogonName)){
-      $message[] = _("Please specify a valid script name.");
+      $message[] = msgPool::required(_("Script name"));
     }
 
     if(preg_match("/[^a-z0-9,\.-;:_\(\)!\? ]/i",$this->LogonDescription)){
-      $message[] = _("Specified description contains invalid characters.");
+      $message[] = msgPool::required(_("Description"),$this->LogonDescription,"/[a-z0-9,\.-;:_\(\)!\? ]/i");
     }
 
     return $message;