diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-06 22:21:23 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-06 22:21:23 +0000 |
| commit | a556142342d27fc7990aaaf17c994f10f6443a15 (patch) | |
| tree | f1c87644879af243b86406043ae61f4a135547de /roundcubemail/program/include/main.inc | |
| parent | 33db0234078b56472d9fe77769d705a68f8c0699 (diff) | |
Delegate contact input validation to rcube_addressbook instance; accept already localized texts in rcube_output::show_message()
git-svn-id: https://svn.roundcube.net/trunk@4498 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/main.inc')
| -rw-r--r-- | roundcubemail/program/include/main.inc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index 697b3ff21..155f4afee 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/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 |
