[I18N] mail: add missing func _ for messages
closes odoo/odoo#86521 X-original-commit: a08f4e00715dba4a0447dce879b46da0e581669e Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
committed by
Thibault Delavallée
parent
d248f5afce
commit
15b93edc8e
@@ -902,6 +902,13 @@ msgid ""
|
||||
"able to re-send these mails later!"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail
|
||||
#: code:addons/mail/models/mail_blacklist.py:0
|
||||
#: code:addons/mail/models/mail_thread_blacklist.py:0
|
||||
#, python-format
|
||||
msgid "Are you sure you want to unblacklist this Email Address?"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail
|
||||
#. openerp-web
|
||||
#: code:addons/mail/static/src/js/m2x_avatar_user.js:0
|
||||
@@ -7571,6 +7578,14 @@ msgid ""
|
||||
"address (%s)."
|
||||
msgstr ""
|
||||
|
||||
#. module: mail
|
||||
#: code:addons/mail/models/mail_thread_blacklist.py:0
|
||||
#, python-format
|
||||
msgid ""
|
||||
"You do not have the access right to unblacklist emails. Please contact your "
|
||||
"administrator."
|
||||
msgstr ""
|
||||
|
||||
#. module: mail
|
||||
#: code:addons/mail/models/mail_thread.py:0
|
||||
#, python-format
|
||||
|
||||
@@ -96,7 +96,7 @@ class MailBlackList(models.Model):
|
||||
|
||||
def mail_action_blacklist_remove(self):
|
||||
return {
|
||||
'name': 'Are you sure you want to unblacklist this Email Address?',
|
||||
'name': _('Are you sure you want to unblacklist this Email Address?'),
|
||||
'type': 'ir.actions.act_window',
|
||||
'view_mode': 'form',
|
||||
'res_model': 'mail.blacklist.remove',
|
||||
|
||||
@@ -116,11 +116,11 @@ class MailBlackListMixin(models.AbstractModel):
|
||||
can_access = self.env['mail.blacklist'].check_access_rights('write', raise_exception=False)
|
||||
if can_access:
|
||||
return {
|
||||
'name': 'Are you sure you want to unblacklist this Email Address?',
|
||||
'name': _('Are you sure you want to unblacklist this Email Address?'),
|
||||
'type': 'ir.actions.act_window',
|
||||
'view_mode': 'form',
|
||||
'res_model': 'mail.blacklist.remove',
|
||||
'target': 'new',
|
||||
}
|
||||
else:
|
||||
raise AccessError("You do not have the access right to unblacklist emails. Please contact your administrator.")
|
||||
raise AccessError(_("You do not have the access right to unblacklist emails. Please contact your administrator."))
|
||||
|
||||
Reference in New Issue
Block a user