summaryrefslogtreecommitdiffstats
path: root/pykolab/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/plugins')
-rw-r--r--pykolab/plugins/recipientpolicy/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/plugins/recipientpolicy/__init__.py b/pykolab/plugins/recipientpolicy/__init__.py
index 07204a2..1167eae 100644
--- a/pykolab/plugins/recipientpolicy/__init__.py
+++ b/pykolab/plugins/recipientpolicy/__init__.py
@@ -63,7 +63,7 @@ class KolabRecipientpolicy(object):
try:
mail = kw['primary_mail'] % user_attrs
- return utils.translate(mail.lower())
+ return utils.translate(mail.lower(), user['preferredLanguage'])
except KeyError, e:
log.warning(_("Attribute substitution for 'mail' failed in Recipient Policy"))
return user_attrs['mail'].lower()
@@ -105,7 +105,7 @@ class KolabRecipientpolicy(object):
log.warning(_("Attribute substitution for 'alternative_mail' failed in Recipient Policy"))
#log.debug(_("Appending additional mail address: %s") %(retval), level=8)
- alternative_mail.append(utils.translate(retval))
+ alternative_mail.append(utils.translate(retval), user['preferredLanguage'])
for _domain in kw['secondary_domains']:
user_attrs['domain'] = _domain