From b69a392669909c4a317534f8e2f7afce25feae43 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 14 Mar 2008 10:29:06 +0000 Subject: [PATCH] msgPool git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9819 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../services/repository/class_servRepositorySetup.inc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/services/repository/class_servRepositorySetup.inc b/gosa-plugins/goto/admin/systems/services/repository/class_servRepositorySetup.inc index 9501212fa..d67efece5 100644 --- a/gosa-plugins/goto/admin/systems/services/repository/class_servRepositorySetup.inc +++ b/gosa-plugins/goto/admin/systems/services/repository/class_servRepositorySetup.inc @@ -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){ -- 2.30.2