Code

msgPool
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Mar 2008 09:31:19 +0000 (09:31 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Mar 2008 09:31:19 +0000 (09:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9806 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/kolab/admin/systems/services/kolab/class_servKolab.inc

index 02a546cfb4ab7190cf04473f8176f25bcc33a3a2..69c1ee8917aaae11c72fc88bf51da0d7ec6f74bc 100644 (file)
@@ -260,28 +260,23 @@ class servkolab extends goService {
     $message= plugin::check();
 
     if(($this->kolabFreeBusyFuture==""))    {
-      $message[] = _("Future days in Free/Busy settings must be set.");
+      $message[] = msgPool::required(_("Future days"));
     }elseif(!tests::is_uid($this->kolabFreeBusyFuture) || $this->kolabFreeBusyFuture < 0){
-      $message[] = _("Future days in Free/Busy settings must be a positive value.");
+      $message[] = msgPool::invalid(_("Future days"),$this->kolabFreeBusyFuture,"/[0-9]/");
     }
 
     if(!is_int((int)($this->cyrus_quotawarn))) {
-      $message[] = _("The given Quota settings value must be a number.");
-    }elseif(!(($this->cyrus_quotawarn<=100)&&($this->cyrus_quotawarn>=0))){
+      $message[] = msgPool::required(_("Quota"));
+    }elseif($this->cyrus_quotawarn>100){
       $message[] = _("Please choose a value between 1 and 100 for Quota settings.");
-    }elseif(strcasecmp($this->cyrus_quotawarn,(int)$this->cyrus_quotawarn)){
-      $message[] = _("Future days must be a value.");
+    }elseif($this->cyrus_quotawarn < 1){
+      $message[] = msgPool::toosmall(_("Quota"),1);
     }
 
     if(empty($this->postfix_mynetworks)) { 
-      $message[] = _("No SMTP privileged networks set.");
+      $message[] = msgPool::required(_("Privileged networks"));
     }
 
-    /*if(empty($this->postfix_relayhost)) {
-      $message[] = _("No SMTP smarthost/relayhost set.");
-      }
-     */
-
     return ($message);
   }