Thank you Konstantin One more question: I defined two catalogues, is it possible to use them at the same time, i.e. if one key is not found in catalogue 1 is it possible that Cocoon moves to the catalogue 2
I know with default-catalogue-id I can choose the catalogue but I' like to use both during the same i18n transformation process. <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> ... <map:transform type="i18n"> <map:parameter name="locale" value="{session-attr:locale}"/> </map:transform> ... > From: "Beat De Martin" <[EMAIL PROTECTED]> > > > > 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 ? > > Yes, in 2.1 you should externally specify the current locale. This gives > more freedom in locale selection algorythm, but as a drawback - not > backword > compatible. > > Please see 2.1 Changes for more details at: > http://cocoon.apache.org/2.1/changes.html (search for i18n). > > -- Konstantin > > > > > > > > > > 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]