Code

Reverted Last commits, I've accidentally replaced to much.
[gosa.git] / gosa-plugins / goto / personal / environment / class_logonManagementDialog.inc
index 349d19548d8d8d2f9ddc4ce1ca5a7b73c197862a..4eb4274a4ab04afd187db609f839dc14cf5ec20d 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 class logonManagementDialog extends plugin
 {
+  var $pathTitle = "Logon scripts";
+
   /* attribute list for save action */
   var $ignore_account       = TRUE;
   var $attributes           = array("LogonName","LogonPriority","LogonLast","LogonOverload","LogonData","LogonDescription");
@@ -100,15 +102,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;