[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:
@@ -2157,6 +2157,11 @@ msgstr ""
|
||||
msgid "Visible on current website"
|
||||
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
|
||||
#: model:ir.model,name:website_blog.model_website
|
||||
#: model:ir.model.fields,field_description:website_blog.field_blog_blog__website_id
|
||||
|
||||
@@ -1410,6 +1410,11 @@ msgstr ""
|
||||
msgid "Default (1/1)"
|
||||
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
|
||||
#: model:ir.model.fields,field_description:website_sale.field_website__currency_id
|
||||
msgid "Default Currency"
|
||||
|
||||
@@ -157,7 +157,7 @@ TRANSLATED_ELEMENTS = {
|
||||
TRANSLATED_ATTRS = dict.fromkeys({
|
||||
'string', 'add-label', 'help', 'sum', 'avg', 'confirm', 'placeholder', 'alt', 'title', 'aria-label',
|
||||
'aria-keyshortcuts', 'aria-placeholder', 'aria-roledescription', 'aria-valuetext',
|
||||
'value_label', 'data-tooltip',
|
||||
'value_label', 'data-tooltip', 'data-editor-message',
|
||||
}, lambda e: True)
|
||||
|
||||
def translate_attrib_value(node):
|
||||
|
||||
Reference in New Issue
Block a user