Code

Updated pool message
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Mar 2008 16:48:58 +0000 (16:48 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Mar 2008 16:48:58 +0000 (16:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9720 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/utils/class_msgPool.inc

index 3c14c4eb20fb91293cafad351e3f997960dc7535..368ea13e3a3306e71a59afa3f221a1e217f27cff 100644 (file)
@@ -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:")."<br><br><i>$name</i>");
-               }else{
-                       return (sprintf(_("You are going to delete the '%s' object:"),$type)."<br><br><i>$name</i>");
-               }
-    }
-    if (count($name) == 1){
-               if($type == ""){
-                       return (_("You are going to delete this object:")."<br>".msgPool::buildList($name));
-               }else{
-                       return (sprintf(_("You are going to delete the '%s' object:"),$type)."<br>".msgPool::buildList($name));
-               }
-    }
-       if($type == ""){
-               return (_("You are going to delete these objects:")."<br>".msgPool::buildList($name));
-       }else{
-               return (sprintf(_("You are going to delete these '%s' objects:"),$type)."<br>".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"), "<br><br><i>$name</i>"));
+                 }else{
+                         return (sprintf(_("This '%s' object will be deleted: %s"),$type, "<br><br><i>$name</i>"));
+                 }
+         }
+         if (count($name) == 1){
+                 if($type == ""){
+                         return (_("This object will be deleted:")."<br>".msgPool::buildList($name));
+                 }else{
+                         return (sprintf(_("This '%s' object will be deleted:"),$type, "<br>".msgPool::buildList($name)));
+                 }
+         }
+         if($type == ""){
+                 return (sprintf(_("These objects will be deleted: %s"), "<br>".msgPool::buildList($name)));
+         }else{
+                 return (sprintf(_("These '%s' objects will be deleted: %s"),$type, "<br>".msgPool::buildList($name)));
+         }
   }