Content type`s fields translation in Page Template
alexanderpas <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.internationalization |
|---|---|
| Message-ID | <[email protected]> |
I have a translated content type.
I use
<metal:use-macro="python:here.widget('FieldName', mode='view')" />
to get values from content type`s vocabulary.
When I use it in content type`s view, it works fine.
But when I use it in page template values are not translated.
Would be greatful for help.
temlate`s piese:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
lang="ru"
metal:use-macro="here/main_template/macros/master"
i18n:domain="my.domain">
<body>
<div metal:fill-slot="main">
............
<div tal:define="results python:context.scr()"
tal:repeat="result results">
<label>Branch: </label>
<metal:Branch use-macro="python:result.widget('P_Branch',
mode='view')" />
</div>
..............
</div>
</body>
</html>
--
View this message in context: http://plone-regional-forums.221720.n2.nabble.com/Content-type-s-fields-translation-in-Page-Template-tp5503389p5503389.html
Sent from the Internationalization mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd