[FIX] web, web_editor, website: fix incorrectly translated template literals

closes odoo/odoo#68105

X-original-commit: e1d280880c26d6139dc6a3679fb7df7e07defdd6
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
This commit is contained in:
Samuel Degueldre
2021-03-18 16:05:37 +00:00
parent 18ba2befab
commit 7e1ba0de41
6 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -2572,7 +2572,7 @@ msgstr ""
#. openerp-web
#: code:addons/web/static/src/js/fields/relational_fields.js:0
#, python-format
msgid "New ${this.name}"
msgid "New %s"
msgstr ""
#. module: web
@@ -44,7 +44,7 @@ var M2ODialog = Dialog.extend({
this.name = name;
this.value = value;
this._super(parent, {
title: _t(`New ${this.name}`),
title: _.str.sprintf(_t("New %s"), this.name),
size: 'medium',
buttons: [{
text: _t('Create'),
+1 -1
View File
@@ -232,7 +232,7 @@ msgstr ""
#: code:addons/web_editor/static/src/js/editor/snippets.editor.js:0
#, python-format
msgid ""
"Are you sure you want to delete the snippet: ${$snippet.attr('name')} ?"
"Are you sure you want to delete the snippet: %s ?"
msgstr ""
#. module: web_editor
@@ -2468,7 +2468,7 @@ var SnippetsMenu = Widget.extend({
new Dialog(this, {
size: 'medium',
title: _t('Confirmation'),
$content: $('<div><p>' + _t(`Are you sure you want to delete the snippet: ${$snippet.attr('name')} ?`) + '</p></div>'),
$content: $('<div><p>' + _.str.sprintf(_t("Are you sure you want to delete the snippet: %s ?"), $snippet.attr('name')) + '</p></div>'),
buttons: [{
text: _t("Yes"),
close: true,
+4 -4
View File
@@ -363,7 +363,7 @@ msgstr ""
#: code:addons/website/static/src/js/tours/tour_utils.js:0
#, python-format
msgid ""
"<b>Click</b> on this option to change the ${optionTooltipLabel} of the "
"<b>Click</b> on this option to change the %s of the "
"block."
msgstr ""
@@ -420,7 +420,7 @@ msgstr ""
#. openerp-web
#: code:addons/website/static/src/js/tours/tour_utils.js:0
#, python-format
msgid "<b>Select</b> a ${optionTooltipLabel}."
msgid "<b>Select</b> a %s."
msgstr ""
#. module: website
@@ -434,7 +434,7 @@ msgstr ""
#. openerp-web
#: code:addons/website/static/src/js/tours/tour_utils.js:0
#, python-format
msgid "<b>Slide</b> this button to change the ${direction} padding"
msgid "<b>Slide</b> this button to change the %s padding"
msgstr ""
#. module: website
@@ -2712,7 +2712,7 @@ msgstr ""
#: code:addons/website/static/src/js/tours/tour_utils.js:0
#, python-format
msgid ""
"Drag the <b>${snippet.name}</b> building block and drop it at the bottom of your page."
"Drag the <b>%s</b> building block and drop it at the bottom of your page."
msgstr ""
#. module: website
@@ -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",
};