$ diff widgets/checkbox/widget.pt widgets/checkbox/widget.pt-new
14,15c14,15
< <legend tal:define="title python:view.data.get('title', '')"
< tal:content="
< python:view.translate(title)" i18n:translate="">HTML Widget</legend>
---
> <legend tal:define="title python:view.data.get('title', '')"
> i18n:translate="" i18n:domain="plone">
> <span tal:replace="title"/></legend>
25c25
< wbr_term_label python:view.word_break(term_label);
---
> term_label_translated python:term[1];
35c35
< tal:content="structure wbr_term_label">term label</label>
---
> tal:content="structure term_label_translated">term label</label>
2010/12/22
Widget to show Localized Title
eea.facetednavigation 的 checkbox widget 預設不會顯示翻譯過的標題,下列是個解法:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment