From: cajus Date: Wed, 12 Mar 2008 16:48:58 +0000 (+0000) Subject: Updated pool message X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0fab0f19b3e65bfa6debc9a32c5a39410394dec4;p=gosa.git Updated pool message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9720 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/utils/class_msgPool.inc b/gosa-core/include/utils/class_msgPool.inc index 3c14c4eb2..368ea13e3 100644 --- a/gosa-core/include/utils/class_msgPool.inc +++ b/gosa-core/include/utils/class_msgPool.inc @@ -10,32 +10,32 @@ class msgPool { public static function deleteInfo($name= "",$type = "") { - if ($name == "") { - if($type == ""){ - return (_("You are going to delete this object!")); - }else{ - return (sprintf(_("You are going to delete this '%s' object!"),$type)); - } - } - if (!is_array($name)){ - if($type == ""){ - return (_("You are going to delete this object:")."

$name"); - }else{ - return (sprintf(_("You are going to delete the '%s' object:"),$type)."

$name"); - } - } - if (count($name) == 1){ - if($type == ""){ - return (_("You are going to delete this object:")."
".msgPool::buildList($name)); - }else{ - return (sprintf(_("You are going to delete the '%s' object:"),$type)."
".msgPool::buildList($name)); - } - } - if($type == ""){ - return (_("You are going to delete these objects:")."
".msgPool::buildList($name)); - }else{ - return (sprintf(_("You are going to delete these '%s' objects:"),$type)."
".msgPool::buildList($name)); - } + if ($name == "") { + if($type == ""){ + return (_("This object will be deleted!")); + }else{ + return (sprintf(_("This '%s' object will be deleted!"), $type)); + } + } + if (!is_array($name)){ + if($type == ""){ + return (sprintf(_("This object will be deleted: $s"), "

$name")); + }else{ + return (sprintf(_("This '%s' object will be deleted: %s"),$type, "

$name")); + } + } + if (count($name) == 1){ + if($type == ""){ + return (_("This object will be deleted:")."
".msgPool::buildList($name)); + }else{ + return (sprintf(_("This '%s' object will be deleted:"),$type, "
".msgPool::buildList($name))); + } + } + if($type == ""){ + return (sprintf(_("These objects will be deleted: %s"), "
".msgPool::buildList($name))); + }else{ + return (sprintf(_("These '%s' objects will be deleted: %s"),$type, "
".msgPool::buildList($name))); + } }