summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2021-03-18 12:37:08 +0000
committerSamuel Degueldre <sad@odoo.com>2021-03-18 13:46:31 +0000
commite1d280880c26d6139dc6a3679fb7df7e07defdd6 (patch)
tree65ac2158beaaf773363554101c5af92d68fe4731 /addons/website/static/src/js
parent4565f92c459f136fc0db79f8145b058e8a8a8972 (diff)
[FIX] web, web_editor, website: fix incorrectly translated template literals
closes odoo/odoo#68085 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Diffstat (limited to 'addons/website/static/src/js')
-rw-r--r--addons/website/static/src/js/tours/tour_utils.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/website/static/src/js/tours/tour_utils.js b/addons/website/static/src/js/tours/tour_utils.js
index b54fb5f48c2..6a0d23d9477 100644
--- a/addons/website/static/src/js/tours/tour_utils.js
+++ b/addons/website/static/src/js/tours/tour_utils.js
@@ -108,7 +108,7 @@ function changeOption(optionName, weName = '', optionTooltipLabel = '', position
const option_block = `we-customizeblock-option[class='snippet-option-${optionName}']`
return {
trigger: `${option_block} ${weName}, ${option_block} [title='${weName}']`,
- content: _t(`<b>Click</b> on this option to change the ${optionTooltipLabel} of the block.`),
+ content: _.str.sprintf(_t("<b>Click</b> on this option to change the %s of the block."), optionTooltipLabel),
position: position,
run: "click",
};
@@ -118,7 +118,7 @@ function selectNested(trigger, optionName, alt_trigger = null, optionTooltipLabe
const option_block = `we-customizeblock-option[class='snippet-option-${optionName}']`;
return {
trigger: trigger,
- content: _t(`<b>Select</b> a ${optionTooltipLabel}.`),
+ content: _.str.sprintf(_t("<b>Select</b> a %s."), optionTooltipLabel),
alt_trigger: alt_trigger == null ? undefined : `${option_block} ${alt_trigger}`,
position: position,
run: 'click',
@@ -135,7 +135,7 @@ function changePaddingSize(direction) {
}
return {
trigger: `.oe_overlay.ui-draggable.o_we_overlay_sticky.oe_active .o_handle.${paddingDirection}`,
- content: _t(`<b>Slide</b> this button to change the ${direction} padding`),
+ content: _.str.sprintf(_t("<b>Slide</b> this button to change the %s padding"), direction),
position: position,
};
}
@@ -202,7 +202,7 @@ function dragNDrop(snippet, position = "bottom") {
trigger: `#oe_snippets .oe_snippet[name="${snippet.name}"] .oe_snippet_thumbnail:not(.o_we_already_dragging)`,
extra_trigger: "body.editor_enable.editor_has_snippets",
moveTrigger: '.oe_drop_zone',
- content: _t(`Drag the <b>${snippet.name}</b> building block and drop it at the bottom of the page.`),
+ content: _.str.sprintf(_t("Drag the <b>%s</b> building block and drop it at the bottom of the page."), snippet.name),
position: position,
run: "drag_and_drop #wrap",
};