You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Beat De Martin <be...@gmx.ch> on 2003/08/08 10:47:29 UTC
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: i18n locale in Cocoon 2.1
Posted by Beat De Martin <be...@gmx.ch>.
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" <be...@gmx.ch>
>
>
> > 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:beat.demartin@gmx.ch]
> > > > Sent: Friday, August 08, 2003 10:47 AM
> > > > To: users@cocoon.apache.org
> > > > 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: users-unsubscribe@cocoon.apache.org
> > > > For additional commands, e-mail: users-help@cocoon.apache.org
> > > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail: users-help@cocoon.apache.org
> > >
> >
> > --
> > 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: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
--
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: i18n locale in Cocoon 2.1
Posted by Konstantin Piroumian <kp...@apache.org>.
From: "Beat De Martin" <be...@gmx.ch>
> 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:beat.demartin@gmx.ch]
> > > Sent: Friday, August 08, 2003 10:47 AM
> > > To: users@cocoon.apache.org
> > > 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: users-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail: users-help@cocoon.apache.org
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
> --
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: i18n locale in Cocoon 2.1
Posted by Beat De Martin <be...@gmx.ch>.
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:beat.demartin@gmx.ch]
> > Sent: Friday, August 08, 2003 11:05 AM
> > To: users@cocoon.apache.org
> > 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:beat.demartin@gmx.ch]
> > > > Sent: Friday, August 08, 2003 10:47 AM
> > > > To: users@cocoon.apache.org
> > > > 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: users-unsubscribe@cocoon.apache.org
> > > > For additional commands, e-mail: users-help@cocoon.apache.org
> > > >
> > >
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail: users-help@cocoon.apache.org
> > >
> >
> > --
> > 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: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
--
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: i18n locale in Cocoon 2.1
Posted by Andrzej Radzki <ar...@wp.pl>.
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:beat.demartin@gmx.ch]
> Sent: Friday, August 08, 2003 11:05 AM
> To: users@cocoon.apache.org
> 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:beat.demartin@gmx.ch]
> > > Sent: Friday, August 08, 2003 10:47 AM
> > > To: users@cocoon.apache.org
> > > 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: users-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail: users-help@cocoon.apache.org
> > >
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
> --
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: i18n locale in Cocoon 2.1
Posted by Beat De Martin <be...@gmx.ch>.
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:beat.demartin@gmx.ch]
> > Sent: Friday, August 08, 2003 10:47 AM
> > To: users@cocoon.apache.org
> > 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: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
--
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: i18n locale in Cocoon 2.1
Posted by Andrzej Radzki <ar...@wp.pl>.
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:beat.demartin@gmx.ch]
> Sent: Friday, August 08, 2003 10:47 AM
> To: users@cocoon.apache.org
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org