From 07b95dc49b31d131b1fecdabf2059a447935c196 Mon Sep 17 00:00:00 2001 From: thomascube Date: Sun, 6 Feb 2011 22:21:23 +0000 Subject: Delegate contact input validation to rcube_addressbook instance; accept already localized texts in rcube_output::show_message() --- program/include/main.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'program/include/main.inc') diff --git a/program/include/main.inc b/program/include/main.inc index 697b3ff21..155f4afee 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -84,6 +84,7 @@ function get_sequence_name($sequence) * It's a global wrapper for rcmail::gettext() * * @param mixed Named parameters array or label name + * @param string Domain to search in (e.g. plugin name) * @return string Localized text * @see rcmail::gettext() */ @@ -93,6 +94,18 @@ function rcube_label($p, $domain=null) } +/** + * Global wrapper of rcmail::text_exists() + * to check whether a text label is defined + * + * @see rcmail::text_exists() + */ +function rcube_label_exists($name, $domain=null) +{ + return rcmail::get_instance()->text_exists($name, $domain); +} + + /** * Overwrite action variable * -- cgit v1.2.3