콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3411 화면

So in `website_templates.xml` in the website module, there is the template for the searchbox with id `website_search_box`. I'm not using the widget but the template is inherited and used in website_sale on the product page and shop page.


`t-att-placeholder="placeholder if placeholder else 'Search...'"`


I can't find where to define the placeholder variable nor where to translate the `Search...`.

So I inherited the template and set the placeholder value (t-set and t-value) but it seems that this string also isn't translatable.

Where can I either, set the searchbox placeholder or make translatable the string I'll set in the template ?

아바타
취소
베스트 답변

In odoo website for placeholder, you can translate them using an editor of the website, no need to add any code for that.

Just go to the website click on the translate button and you can find a placeholder is visible with yellow color so when you click on that, you can change the string and save.

아바타
취소
관련 게시물 답글 화면 활동
1
6월 23
3690
2
6월 22
3180
1
4월 22
2068
0
2월 22
4415
1
1월 22
2144