Thanx
I'm using now:

<map:transform type="i18n">
  <map:parameter name="locale" value="{session-attr:locale}"/>
 </map:transform>

and it works !


> Try this in your sitemap:
> <map:actions>
>     <map:action name="locale" logger="sitemap.action.locale"
>     src="org.apache.cocoon.acting.LocaleAction">
>       <create-session>true</create-session>
>       <store-in-session>true</store-in-session>
>       <store-in-request>true</store-in-request>
>       <store-in-cookie>false</store-in-cookie>
>       <!-- Uncomment as needed to override defaults:
>          <locale-attribute>locale</locale-attribute>
>          <language-attribute>language</language-attribute>
>          <country-attribute>country</country-attribute>
>          <variant-attribute>variant</variant-attribute>
>       -->
>     </map:action>
> </map:actions>
> 
> and then for example:
> 
> <map:act type="locale">
> <map:match pattern="cos_tam_dowolnego">
>  <map:transform type="i18n">
>    <map:parameter name="locale" value="{../locale}"/>
>  </map:transform>
> </map:match>
> </map:act>
> 
> look into samples of i18n... try do this in the same way. 
> 
> ar
> 
> > -----Original Message-----
> > From: Beat De Martin [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 08, 2003 11:05 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: i18n locale in Cocoon 2.1
> > 
> > I already changed the namespaces.
> > At the pipeline I use only
> > ...
> > <map:transform type="i18n"/>
> > ...
> > 
> > Maybe I have to use the following:
> > 
> > <map:transform type="i18n">
> >   <map:parameter name="locale" value="{session-attr:locale}"/>
> >  </map:transform>
> > 
> > Is this required if I want to use session attribute locale ?
> > 
> > 
> > 
> > > Check namespace i18n in transformed files.
> > > Cocoon 2.1 has: http://apache.org/cocoon/i18n/2.1 instead of
> > > http://apache.org/cocoon/i18n/2.0
> > >
> > > ar
> > >
> > > > -----Original Message-----
> > > > From: Beat De Martin [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, August 08, 2003 10:47 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: i18n locale in Cocoon 2.1
> > > >
> > > > Hi all
> > > > I'm using Cocoon 2.1 and I have some problem with translation
> > > > Until Cocoon 2.0.4 I just set the session attribute locale to the
> > > desired
> > > > language and it worked.
> > > > When I do this in 2.1 it doesn't seem to work. This is an excerpt
> from
> > > my
> > > > logfile:
> > > >
> > > >
> > > > SESSION ATTRIBUTES:
> > > >
> > > > PARAM: 'locale' VALUE: 'fr_CH'
> > > > ...
> > > > DEBUG   (2003-08-08) 10:38.54:938   [core]
> (/GIS/selektion_gv.html)
> > > > Thread-17/I18nTransformer: I18nTransformer: using locale de_CH
> > > >
> > > >
> > > > sitemap:
> > > >
> > > > <map:transformer name="i18n"
> > > > src="org.apache.cocoon.transformation.I18nTransformer"
> > > logger="core">
> > > >                              <catalogues default="messages">
> > > >                                <catalogue id="messages" name="messages"
> > > > location="i18n/translations"/>
> > > >                                <catalogue id="fehler"
> > > name="messages_fehler"
> > > > location="i18n/translations"/>
> > > >                              </catalogues>
> > > >
> > > <untranslated-text>untranslated</untranslated-text>
> > > >                              <cache-at-startup>true</cache-at-startup>
> > > >                         </map:transformer>
> > > >
> > > > Cheers
> > > >
> > > >
> > > >
> > > > --
> > > > COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
> > > > --------------------------------------------------
> > > > 1. GMX TopMail - Platz 1 und Testsieger!
> > > > 2. GMX ProMail - Platz 2 und Preis-Qualit�tssieger!
> > > > 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday -
> 8.
> > > e-
> > > > Post
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > 
> > --
> > COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
> > --------------------------------------------------
> > 1. GMX TopMail - Platz 1 und Testsieger!
> > 2. GMX ProMail - Platz 2 und Preis-Qualit�tssieger!
> > 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8.
> e-
> > Post
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualit�tssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to