Skip to content
Snippets Groups Projects
Commit 743c790f authored by Jairo Llopis's avatar Jairo Llopis
Browse files

[FIX] mass_mailing: Proper translation string


Computed expressions cannot happen inside a translation string.

closes odoo/odoo#34643

Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
parent fb1839fa
Branches
Tags
No related merge requests found
......@@ -2285,9 +2285,9 @@ msgstr ""
#. module: mass_mailing
#. openerp-web
#: code:addons/mass_mailing/static/src/js/unsubscribe.js:49
#: code:addons/mass_mailing/static/src/js/unsubscribe.js:50
#, python-format
msgid "You have been <strong>successfully unsubscribed from </strong>."
msgid "You have been <strong>successfully unsubscribed from %s</strong>."
msgstr ""
#. module: mass_mailing
......
......@@ -46,7 +46,10 @@ odoo.define('mass_mailing.unsubscribe', function (require) {
var unsubscribed_list = $("input[name='unsubscribed_list']").val();
if (unsubscribed_list){
$('#subscription_info').html(_t('You have been <strong>successfully unsubscribed from ' + unsubscribed_list + "</strong>."));
$('#subscription_info').html(_.str.sprintf(
_t("You have been <strong>successfully unsubscribed from %s</strong>."),
unsubscribed_list
));
}
else{
$('#subscription_info').html(_t('You have been <strong>successfully unsubscribed</strong>.'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment