Code

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

gosa-plugins/goto/admin/systems/services/repository/class_servRepositorySetup.inc

index 9501212fa88cdc7f0c0722ff6638df5d7aa9f66f..d67efece5f1ff3ac52b3adbc8941524c8a84fe43 100644 (file)
@@ -142,11 +142,11 @@ class servRepositorySetup  extends plugin
     $message= plugin::check();
 
     if(empty($this->Release)){
-      $message[]=_("Please enter a value for 'release'.");
+      $message[]= msgPool::required(_("Release"));
     }
 
     if(empty($this->Url)){
-      $message[] = _("Please specify a valid value for 'url'.");
+      $message[] = msgPool::required(_("Url"));
     }
 
     return ($message);
@@ -192,10 +192,8 @@ class servRepositorySetup  extends plugin
     if(!empty($cmd)){
       $res = shell_exec($cmd);
       $res2 = trim($res);
-      if(!$res){
-        print_red(sprintf(_("Can't execute specified REPOSITORY_HOOK '%s'. Please check your gosa.conf."),$cmd));
-      }elseif(empty($res2)){
-        print_red(sprintf(_("The specified REPOSITORY_HOOK '%s', specified in your gosa.conf, returns an empty string."),$cmd));
+      if(!$res || empty($res2)){
+        print_red( msgPool::cmdexecfailed("REPOSITORY_HOOK",$cmd,_("Repository service")));
       }else{  
         $tmp = split("\n",$res);
         foreach($tmp as $hook){