[Zope-CMF] Re: i18n:domain question

Jean-Marc Orliaguet jmo at ita.chalmers.se
Wed Mar 17 04:46:14 EST 2004


Alexander Limi wrote:

> On Sun, 14 Mar 2004 16:45:46 +0100, Jean-Marc Orliaguet  
> <jmo at ita.chalmers.se> wrote:
>
>> I don't know if the question belongs here, certainly not but...
>>
>> How do I set i18n:domain="...." using a variable for the domain name? 
>> Is  it possible or must the domain name be written exactly as it is?
>
>
> Not possible, it needs to be a string. What are you trying to do?
>
The problem is now solved

I had a page template that is common to CMF/ CPS(2/3) and Plone(1/2) 
which I didn't want to specialize for only two lines of code 
(i18n:domain="plone")
the template shows action boxes, folder boxes, ... the default domains 
are different on each platforms ('default', 'plone' ...) . It isn't an 
issue when Localizer is installed. but with Plone2 (with only PTS 
installed) the domain must be specified explicitly either directly in 
the actual template or slightly 'above' as  you did in  
CMFPlone/skins/plone_templates/portlets_fetcher.pt

actually I solved the problem by setting the domain name inside the 
Plone2 specific 'main_template.pt'
http://cvs.codex-se.org/viewcvs/viewcvs.cgi/CPSSkins/skins/cpsskins_plone2/main_template.pt.diff?cvsroot=cpsskins&r1=1.3&r2=1.4&sortby=date&diff_format=c

Regards /JM




More information about the Zope-CMF mailing list