Skip to content
Snippets Groups Projects
Commit 808d3923 authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] website_slides: Translation issue


Steps to reproduce the bug:

- Website in another language than English
- Go to Courses (elarning) and share a title by email
- The "Thank you" message is in English no matter what the language of the website is

opw:2574385

closes odoo/odoo#74761

Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
parent 164409b0
Branches
Tags
No related merge requests found
......@@ -524,6 +524,7 @@ msgstr ""
#. module: website_slides
#. openerp-web
#: code:addons/website_slides/static/src/js/slides_course_fullscreen_player.js:0
#: code:addons/website_slides/static/src/js/slides_share.js:0
#, python-format
msgid "<strong>Thank you!</strong> Mail has been sent."
msgstr ""
......
......@@ -3,6 +3,8 @@ odoo.define('website_slides.slides_share', function (require) {
var publicWidget = require('web.public.widget');
require('website_slides.slides');
var core = require('web.core');
var _t = core._t;
var ShareMail = publicWidget.Widget.extend({
events: {
......@@ -29,7 +31,7 @@ var ShareMail = publicWidget.Widget.extend({
email: input.val(),
},
}).then(function () {
self.$el.html($('<div class="alert alert-info" role="alert"><strong>Thank you!</strong> Mail has been sent.</div>'));
self.$el.html($('<div class="alert alert-info" role="alert">' + _t('<strong>Thank you!</strong> Mail has been sent.') + '</div>'));
});
} else {
this.$el.addClass('o_has_error').find('.form-control, .custom-select').addClass('is-invalid');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment