[FIX] website: allow "Search..." translation
Strings in python expression in 't-att-placeholder' are not translated automatically. opw-2467404 closes odoo/odoo#69559 X-original-commit: 8f8d55ee4e773884ab35e11bfd0573d7997f3ad3 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
@@ -5858,6 +5858,11 @@ msgid ""
|
||||
"picture, in just a few clicks."
|
||||
msgstr ""
|
||||
|
||||
#. module: website
|
||||
#: model_terms:ir.ui.view,arch_db:website.website_search_box
|
||||
msgid "Search..."
|
||||
msgstr ""
|
||||
|
||||
#. module: website
|
||||
#: model_terms:ir.ui.view,arch_db:website.s_features
|
||||
msgid "Second Feature"
|
||||
|
||||
@@ -2296,7 +2296,8 @@ Sitemap: <t t-esc="url_root"/>sitemap.xml
|
||||
|
||||
<template id="website_search_box" name="Website Searchbox">
|
||||
<div t-attf-class="input-group #{_classes}" role="search">
|
||||
<input type="search" name="search" class="search-query form-control oe_search_box" t-att-placeholder="placeholder if placeholder else 'Search...'" t-att-value="search"/>
|
||||
<t t-set="search_placeholder">Search...</t>
|
||||
<input type="search" name="search" class="search-query form-control oe_search_box" t-att-placeholder="placeholder if placeholder else search_placeholder" t-att-value="search"/>
|
||||
<div class="input-group-append">
|
||||
<button type="submit" class="btn btn-primary oe_search_button" aria-label="Search" title="Search"><i class="fa fa-search"/></button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user