cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "JACOB, ERIC" <>
Subject RE: Portal Engine - Coplet I18n question
Date Wed, 27 Oct 2004 12:05:23 GMT
Hi Phil,

Here Carsten's answer about Coplet i18n:


Hi Eric,

I'm only reading the user list from time to time, so I didn't see your
question. The i18n support for the portal is not as good as it could be. I
think we are using the following approach: Specify the key in the title of
the coplet-data: <title>LogIn</title>. Then in the renderer that renders the
window, add the i18n tag around the title (this is done in the window.xsl).
Current it does something like this: <xsl:when test="@title">
  <b><xsl:value-of select="@title"/></b>
and you could change it like this:
<xsl:when test="@title">
  <b><i18n><xsl:value-of select="@title"/></i18n></b> </xsl:when>

Then place the i18n transformer in the main pipeline just after the cinclude
transformer. (This is the "portal" pipeline with the portal generator).



It works for me.



-----Original Message-----
From: pguillard [] 
Sent: Wednesday, October 27, 2004 6:08 AM
Subject: Re: Portal Engine - Coplet I18n question

Just a suggestion (i didn't try) :

    <map:match pattern="portal">    
            <map:act type="auth-protect">
                    <map:parameter name="handler" value="portal-handler"/>
                    <map:parameter name="application" value="portal"/>
                    <map:generate type="portal" label="content">
                        <map:parameter name="portal-name" value="portal" />
                    <map:transform type="cinclude"/>
                    <map:transform type="portal-coplet"/>
                    <map:transform type="encodeURL"/>
                                <map:transform type="i18n">
                                         <map:parameter name="locale" 
                    <map:serialize type="html-include"/>

Can you tell me the result, i will need it too!


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message