Personal tools
You are here: Home Zope & Plone tips Setting a dynamic i18n:domain in a ZPT template
Navigation
 
Document Actions
  • Send this page to somebody
  • Print this page
  • Add Bookmarklet

Setting a dynamic i18n:domain in a ZPT template

by tibi last modified 2007-04-09 14:21

This might not be obvious at first sight, and I never had to do something like this, but it was a solution I've seen somewhere on the web and it's interesting in showing off how the TAL engine works:

<h2 tal:define="statusMessage python:request.get('statusMessage');
                   domain python:request.get('domain')"
       tal:attributes="i18n:domain domain;
                       i18n:translate string:">someText</h2>

(Taken from a weblog post)

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: