[FIX] website_mass_mailing: translate default toaster
When creating a new mailing, it was always in English, even if English was not activated X-original-commit: f8308e72d9f158c17bafa3bb09cb2915ff8ba37a
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 14.0\n"
|
||||
"Project-Id-Version: Odoo Server saas~14.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-11-17 06:20+0000\n"
|
||||
"PO-Revision-Date: 2020-11-17 06:20+0000\n"
|
||||
"POT-Creation-Date: 2021-03-01 07:49+0000\n"
|
||||
"PO-Revision-Date: 2021-03-01 07:49+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -20,6 +20,12 @@ msgstr ""
|
||||
msgid ", .o_newsletter_popup"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_mass_mailing
|
||||
#: code:addons/website_mass_mailing/models/mailing_list.py:0
|
||||
#, python-format
|
||||
msgid "<p>Thanks for subscribing!</p>"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_mass_mailing
|
||||
#. openerp-web
|
||||
#: code:addons/website_mass_mailing/static/src/js/website_mass_mailing.editor.js:0
|
||||
@@ -182,6 +188,7 @@ msgstr ""
|
||||
|
||||
#. module: website_mass_mailing
|
||||
#: model:ir.model.fields,field_description:website_mass_mailing.field_mailing_list__toast_content
|
||||
#: model_terms:ir.ui.view,arch_db:website_mass_mailing.mailing_list_view_form
|
||||
msgid "Toast Content"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -2,13 +2,14 @@
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
from odoo.tools.translate import _
|
||||
|
||||
|
||||
class MailingList(models.Model):
|
||||
_inherit = 'mailing.list'
|
||||
|
||||
def _default_toast_content(self):
|
||||
return '<p>Thanks for subscribing!</p>'
|
||||
return _('<p>Thanks for subscribing!</p>')
|
||||
|
||||
website_popup_ids = fields.One2many('website.mass_mailing.popup', 'mailing_list_id', string="Website Popups")
|
||||
toast_content = fields.Html(default=_default_toast_content, translate=True)
|
||||
|
||||
Reference in New Issue
Block a user