From 8622898839af785fe40adebaaeeccdd141d16d8d Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 7 Mar 2008 10:19:48 +0000 Subject: [PATCH] Added more msgPools git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9427 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/utils/class_msgPool.inc | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gosa-core/include/utils/class_msgPool.inc b/gosa-core/include/utils/class_msgPool.inc index c3624c82c..cf25cd10f 100644 --- a/gosa-core/include/utils/class_msgPool.inc +++ b/gosa-core/include/utils/class_msgPool.inc @@ -135,4 +135,52 @@ class msgPool return sprintf(_("Missing %s PHP extension!"), $name); } + + public static function cancelButton() + { + return sprintf(_("Cancel")); + } + + + public static function okButton() + { + return sprintf(_("Ok")); + } + + + public static function applyButton() + { + return sprintf(_("Apply")); + } + + + public static function saveButton() + { + return sprintf(_("Save")); + } + + + public static function addButton($what= "") + { + return $what == "" ? sprintf(_("Add"): sprintf(_("Add %s"), $what)); + } + + + public static function delButton($what= "") + { + return $what == "" ? sprintf(_("Delete"): sprintf(_("Delete %s"), $what)); + } + + + public static function setButton($what= "") + { + return $what == "" ? sprintf(_("Set"): sprintf(_("Set %s"), $what)); + } + + + public static function editButton($what= "") + { + return $what == "" ? sprintf(_("Edit..."): sprintf(_("Edit %s..."), $what)); + } + } -- 2.30.2