diff options
author | alecpl <alec@alec.pl> | 2011-09-12 12:52:01 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-09-12 12:52:01 +0000 |
commit | 8703b0801865eb47505c960037d916253e315fc7 (patch) | |
tree | 0f053d02dd4512e98731d7adede5253b7dafdc38 /program/steps | |
parent | 979679b311c3f55c5a2d556391554613420f6379 (diff) |
- Extend rcube_label_exists() to search in loaded plugins localizations
- Allow use localized addressbook field subtypes from plugins
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/addressbook/func.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index b290bbb2d..a1491545f 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -408,12 +408,12 @@ function rcmail_get_rowcount_text($result=null) function rcmail_get_type_label($type) { $label = 'type'.$type; - if (rcube_label_exists($label)) - return rcube_label($label); + if (rcube_label_exists($label, '*', $domain)) + return rcube_label($label, $domain); else if (preg_match('/\w+(\d+)$/', $label, $m) && ($label = preg_replace('/(\d+)$/', '', $label)) - && rcube_label_exists($label)) - return rcube_label($label) . ' ' . $m[1]; + && rcube_label_exists($label, '*', $domain)) + return rcube_label($label, $domain) . ' ' . $m[1]; return ucfirst($type); } |