Re: Content type`s fields translation in Page Template

Vincent Fretin <[email protected]>
Newsgroups gmane.comp.web.zope.plone.internationalization
Message-ID <[email protected]>
Ahah! You use the displayValue python script! There is a unresolved
issue about it. See
https://dev.plone.org/plone/ticket/7627

For now, please iterate on result.getMyField() and call vocab.getValue(item)

      <ul tal:define="vocab
python:result.getField('MyField').Vocabulary(context);">
        <li tal:repeat="item result.getMyField()"
                tal:content="python:vocab.getValue(item)"
                i18n:translate="">
        </li>
      </ul>

Vincent



On Tue, Sep 7, 2010 at 2:47 PM, alexanderpas <[email protected]> wrote:
>
> Hmm...It posted only a part of my code.
> The full is:
>
> <div tal:define="results python:context.scr()"
>     tal:repeat="result results">
>    <div tal:define="vocab
> python:result.getField('MyField').Vocabulary(result);
>                           value python:result.displayValue(vocab,
> result.getMyField())"
>           tal:content="value"
>           i18n:translate="">  </div>
> </div>
> --
> View this message in context: http://plone-regional-forums.221720.n2.nabble.com/Content-type-s-fields-translation-in-Page-Template-tp5503389p5506258.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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.