From: cajus Date: Sun, 16 Mar 2008 13:20:47 +0000 (+0000) Subject: Added messages X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b80ce1ac39d7b19958174188bbc2e749f05e41eb;p=gosa.git Added messages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9881 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/utils/class_msgPool.inc b/gosa-core/include/utils/class_msgPool.inc index d17b87da2..f69d7eded 100644 --- a/gosa-core/include/utils/class_msgPool.inc +++ b/gosa-core/include/utils/class_msgPool.inc @@ -483,6 +483,25 @@ class msgPool return sprintf(_("Communication failure with the infrastructure service: %s"), "

"._("Error").": ".$error); } + + function stillInUse($type, $objects= array()) + { + if (!is_array($objects)){ + return sprintf(_("This '%s' is still in use by this object: %s"), $type, "

".$objects); + } + if (count($objects) == 1){ + return sprintf(_("This '%s' is still in use by this object: %s"), $type, "

".msgPool::buildList($objects)); + } + return sprintf(_("This '%s' is still in use by these objects: %s"), $type, "

".msgPool::buildList($objects)); + } + + + function cannotReadFile($file) + { + return sprintf(_("Cannot open file '%s' for reading!"), $file); + } + + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>