From: cajus Date: Mon, 10 Mar 2008 15:48:01 +0000 (+0000) Subject: Fixed messages X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d930aa1580b74bce049025b92f6be58a157bd206;p=gosa.git Fixed messages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9620 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/utils/class_msgPool.inc b/gosa-core/include/utils/class_msgPool.inc index 464bca9b2..c8831f325 100644 --- a/gosa-core/include/utils/class_msgPool.inc +++ b/gosa-core/include/utils/class_msgPool.inc @@ -303,15 +303,15 @@ class msgPool if ($depends == ""){ return sprintf(_("This account has %s settings enabled. You can disable them by clicking below."), $name); } else { - if (is_array($depends)){ - return sprintf(_("This account has %s settings enabled. To disable them, you'll need to remove the %s settings first!"), $depends); + if (count($depends) == 1){ + return sprintf(_("This account has %s settings enabled. To disable them, you'll need to remove the %s settings first!"), $name, $depends); } else { $deps= ""; foreach ($depends as $dep){ $deps.= "$dep / "; } $deps= preg_replace("/ \/ $/", "", $deps); - return sprintf(_("This account has %s settings enabled. To disable them, you'll need to remove the %s settings first!"), $deps); + return sprintf(_("This account has %s settings enabled. To disable them, you'll need to remove the %s settings first!"), $name, $deps); } } } @@ -322,15 +322,15 @@ class msgPool if ($depends == ""){ return sprintf(_("This account has %s settings disabled. You can enable them by clicking below."), $name); } else { - if (is_array($depends)){ - return sprintf(_("This account has %s settings disabled. To enable them, you'll need to add the %s settings first!"), $depends); + if (count($depends) == 1){ + return sprintf(_("This account has %s settings disabled. To enable them, you'll need to add the %s settings first!"), $name, $depends); } else { $deps= ""; foreach ($depends as $dep){ $deps.= "$dep / "; } $deps= preg_replace("/ \/ $/", "", $deps); - return sprintf(_("This account has %s features settings. To disable them, you'll need to add the %s settings first!"), $deps); + return sprintf(_("This account has %s features settings. To disable them, you'll need to add the %s settings first!"), $name, $deps); } } }