summaryrefslogtreecommitdiff
path: root/addons
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
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')
-rw-r--r--addons/web/i18n/web.pot2
-rw-r--r--addons/web/static/src/js/fields/relational_fields.js2
-rw-r--r--addons/web_editor/i18n/web_editor.pot2
-rw-r--r--addons/web_editor/static/src/js/editor/snippets.editor.js2
-rw-r--r--addons/website/i18n/website.pot8
-rw-r--r--addons/website/static/src/js/tours/tour_utils.js8
6 files changed, 12 insertions, 12 deletions
diff --git a/addons/web/i18n/web.pot b/addons/web/i18n/web.pot
index 9388ad42a4b..8586334aa9e 100644
--- a/addons/web/i18n/web.pot
+++ b/addons/web/i18n/web.pot
@@ -2580,7 +2580,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
diff --git a/addons/web/static/src/js/fields/relational_fields.js b/addons/web/static/src/js/fields/relational_fields.js
index ca98415762a..17cb8477906 100644
--- a/addons/web/static/src/js/fields/relational_fields.js
+++ b/addons/web/static/src/js/fields/relational_fields.js
@@ -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'),
diff --git a/addons/web_editor/i18n/web_editor.pot b/addons/web_editor/i18n/web_editor.pot
index bbd699d3a85..c1b8771ed6e 100644
--- a/addons/web_editor/i18n/web_editor.pot
+++ b/addons/web_editor/i18n/web_editor.pot
@@ -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
diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js
index c759cd84ece..36870033db2 100644
--- a/addons/web_editor/static/src/js/editor/snippets.editor.js
+++ b/addons/web_editor/static/src/js/editor/snippets.editor.js
@@ -2446,7 +2446,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,
diff --git a/addons/website/i18n/website.pot b/addons/website/i18n/website.pot
index 024f05b9735..0c1ed06ac21 100644
--- a/addons/website/i18n/website.pot
+++ b/addons/website/i18n/website.pot
@@ -381,7 +381,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 ""
@@ -438,7 +438,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
@@ -452,7 +452,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
@@ -2892,7 +2892,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
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",
};