Re: Content type`s fields translation in Page Template
Vincent Fretin <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.internationalization |
|---|---|
| Message-ID | <[email protected]> |
Hi, How do you internationalized your vocabulary? With Message objects? What is the i18n domain? If this is a vocabulary, you need to iterate on your vocabulary and put an i18n:translate="" for each entry. See Products/Archetypes/skins/archetypes/widgets/selection.pt for an example. Vincent Fretin Ecreall Site : http://vincentfretin.ecreall.com On Mon, Sep 6, 2010 at 5:05 PM, alexanderpas <[email protected]> wrote: > > 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 > _______________________________________________ > Plone-i18n mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/plone-i18n > ------------------------------------------------------------------------------ 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