diff --git a/addons/website/static/src/js/website.tour.rte.js b/addons/website/static/src/js/website.tour.rte.js index b8d94ecf643..53bc4b1bcfe 100644 --- a/addons/website/static/src/js/website.tour.rte.js +++ b/addons/website/static/src/js/website.tour.rte.js @@ -58,7 +58,8 @@ Tour.register({ onload: function () { $("#wrap p:first").replaceWith('

Write one or two paragraphs describing your product or\ services. To be successful your content needs to be\ - useful to your readers.

'); + useful to your readers.

\ +

<b></b> is an HTML tag & is empty

'); $("#wrap img").attr("title", "test translate image title"); } }, @@ -99,6 +100,13 @@ Tour.register({ waitFor: '#wrap .o_dirty font:first:contains(translated french text)', element: 'input:first', }, + { + title: "translate text with special char", + onload: function () { + $('#wrap input + p').find(':last').prepend('<{translated}>') + .closest('[data-oe-translation-id]').addClass('o_dirty').trigger('keyup'); + }, + }, { title: "translate placeholder", element: '.modal.web_editor-dialog input:first', @@ -119,6 +127,10 @@ Tour.register({ waitNot: 'button[data-action=save]', waitFor: '#wrap p font:first:contains(translated french text)', }, + { + title: "check: content with special char is translated", + waitFor: "#wrap input + p:contains(<{translated}> is an HTML\xa0tag & )", + }, { title: "check: placeholder translation", waitFor: 'input[placeholder="test french placeholder"]',