summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-02-06 22:21:23 +0000
committerthomascube <thomas@roundcube.net>2011-02-06 22:21:23 +0000
commit07b95dc49b31d131b1fecdabf2059a447935c196 (patch)
tree91f3fd3b86ecb88da28e16edceab52306bb3458e /program/include/main.inc
parent361ce60948bfc0eb75a4c144f9e1e76c3cdd7f35 (diff)
Delegate contact input validation to rcube_addressbook instance; accept already localized texts in rcube_output::show_message()
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc13
1 files changed, 13 insertions, 0 deletions
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()
*/
@@ -94,6 +95,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
*
* @param string New action value