[FIX] website_sale: add message to translation

Steps to reproduce:
- install the e-commerce module
- in General settings, add and switch French -or any- language
- Go to website
- Under e-commerce > product in the menu bar
- click on any product
- click on go to website smart button
- click on edit button to edit the website page
- choose any block to insert, You can notice the message (DROP BUILDING BLOCKS HERE TO MAKE THEM AVAILABLE ACROSS ALL PRODUCTS) stays in English

Investigation
- The message is not add to website_sale.pot file, as the message string passed to an attribute not an actual string inside a tag.

opw-3573881

closes odoo/odoo#145755

X-original-commit: 9a595cd19fba3a68dacd5159d0b04102bc76cadf
Signed-off-by: Ali Hassan Youssef (alhy) <alhy@odoo.com>
This commit is contained in:
AH-Yussef
2023-12-12 07:31:11 +00:00
parent 642bd48f38
commit 230b680bf9
3 changed files with 11 additions and 1 deletions
@@ -2157,6 +2157,11 @@ msgstr ""
msgid "Visible on current website" msgid "Visible on current website"
msgstr "" msgstr ""
#. module: website_blog
#: model_terms:ir.ui.view,arch_db:website_blog.blog_post_content
msgid "WRITE HERE OR DRAG BUILDING BLOCKS"
msgstr ""
#. module: website_blog #. module: website_blog
#: model:ir.model,name:website_blog.model_website #: model:ir.model,name:website_blog.model_website
#: model:ir.model.fields,field_description:website_blog.field_blog_blog__website_id #: model:ir.model.fields,field_description:website_blog.field_blog_blog__website_id
@@ -1410,6 +1410,11 @@ msgstr ""
msgid "Default (1/1)" msgid "Default (1/1)"
msgstr "" msgstr ""
#. module: website_sale
#: model_terms:ir.ui.view,arch_db:website_sale.product
msgid "DROP BUILDING BLOCKS HERE TO MAKE THEM AVAILABLE ACROSS ALL PRODUCTS"
msgstr ""
#. module: website_sale #. module: website_sale
#: model:ir.model.fields,field_description:website_sale.field_website__currency_id #: model:ir.model.fields,field_description:website_sale.field_website__currency_id
msgid "Default Currency" msgid "Default Currency"
+1 -1
View File
@@ -157,7 +157,7 @@ TRANSLATED_ELEMENTS = {
TRANSLATED_ATTRS = dict.fromkeys({ TRANSLATED_ATTRS = dict.fromkeys({
'string', 'add-label', 'help', 'sum', 'avg', 'confirm', 'placeholder', 'alt', 'title', 'aria-label', 'string', 'add-label', 'help', 'sum', 'avg', 'confirm', 'placeholder', 'alt', 'title', 'aria-label',
'aria-keyshortcuts', 'aria-placeholder', 'aria-roledescription', 'aria-valuetext', 'aria-keyshortcuts', 'aria-placeholder', 'aria-roledescription', 'aria-valuetext',
'value_label', 'data-tooltip', 'value_label', 'data-tooltip', 'data-editor-message',
}, lambda e: True) }, lambda e: True)
def translate_attrib_value(node): def translate_attrib_value(node):