Code

Added branches container for old stuff
[gosa.git] / gosa-plugins / goto / admin / systems / services / nfs / class_servNfs.inc
index 395e856b93ec26bed3f86413b2ed0cd0f9c528f7..147cc912ca4569a3cff3c6406952c4ecd2d008ba 100644 (file)
@@ -12,7 +12,7 @@ class servnfs extends plugin
   var $description   ="";  // description
   var $type          ="";  // Type FS/Samba/NCP
   var $charset       ="";  // charset
-  var $host       ="";  // hostname
+  var $host          ="";  // hostname
   var $types         =array();  // Array Types NFS/Samba/NCP/netatalk
   var $charsets      =array();  // Array with charsets
   var $path          ="";  // Path
@@ -179,7 +179,11 @@ class servnfs extends plugin
     }
 
     if(!tests::is_path($this->path)){
-      $message[]= msgPool::invalid(_("Path"));
+      $message[]= _("'Path / Volume' must contain at least one '/'!");
+    }
+
+    if(!in_array($this->type,$this->types)){
+      $message[]= msgPool::required(_("Type"));
     }
 
     // only 0-9a-z
@@ -221,7 +225,7 @@ class servnfs extends plugin
         foreach($test['goExportEntry'] as $entry){
           $tmp = split("\|",$entry);
           if($tmp[0] == $this->name){
-            $message[]="Name already in use";
+            $message[]= msgPool::duplicated(_("Name"));
           }
         }
       }