From b8cb4dc8a575136718772e2274bb712113019f49 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 28 Apr 2011 15:52:27 +0200 Subject: [PATCH] [FIX] ensure that the mail template is exported for translation bzr revid: rco@openerp.com-20110428135227-9sa52eeal63xqofz --- addons/portal/wizard.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/addons/portal/wizard.py b/addons/portal/wizard.py index 10e26ea4ae3..7c5660097a7 100644 --- a/addons/portal/wizard.py +++ b/addons/portal/wizard.py @@ -30,9 +30,10 @@ from base.res.res_user import _lang_get -# welcome email sent to new portal users -WELCOME_EMAIL_SUBJECT = u"Your OpenERP account at %(company)s" -WELCOME_EMAIL_BODY = u"""Dear %(name)s, +# welcome email sent to new portal users (note that calling tools.translate._ +# has no effect except exporting those strings for translation) +WELCOME_EMAIL_SUBJECT = _("Your OpenERP account at %(company)s") +WELCOME_EMAIL_BODY = _("""Dear %(name)s, You have been created an OpenERP account at %(url)s. @@ -44,7 +45,7 @@ Password: %(password)s -- OpenERP - Open Source Business Applications http://www.openerp.com -""" +""") ROOT_UID = 1