hi,
no I get the language and want to set it (anywhere). Later I will access the
locale - this part is working now.
The Question is:
How can I set the locale in the sitemap?
thx Mario Brust
---
System Development
VIRBUS AG
ICQ 24139151
[EMAIL PROTECTED]
www.virbus.de
# > I'm using cocoon2b2 and want to use the Locale-Action. But
# I did not found
# > any way to extract the language out of the uri.
# > I want to have a uri like
# > http://bla.bla/cocoon/bla/sitemaproot/de_DE/site.html.
# >
# > If I extract the locale I don't know what to do with.
# > <map:match pattern="*_*/**">
# > <map:act type="locale">
# > <!-- This way don't work -->
# > <map:parameter name="language" value="{1}"/>
# > <map:parameter name="country" value="{2}"/>
# > <!-- But how to set the locale here without using
# > the CGI-Parameter ?locale={1}_{2} -->
# > <map:redirect-to uri="{3}" uri-prefix="{1}_{2}/"/>
# > </map:act>
# > </map:match>
#
# I'm not 100% sure what you're trying to do there, but
# is this what
# you're trying to achieve ? :
#
# <map:match pattern="site.html">
# <map:act type="locale">
# <map:generate type="file"
# src="sitemaproot/{language}_{country}/site.xml"/>
# <map:serialize type="html"/>
# </map:act>
# </map:match>
#
# The only issue this the generate line above is that the
# 'country'
# field might not be set (eg. if the user has only 'de'
# specified as
# their preferred langauge, and not de_DE). An
# alternative would be to
# use {locale} instead, but make sure you have some technique for
# handling locales you do not yet support.
#
# For more complete internationalization have a look at the
# I18nTransformer. It's been recently added to the
# cocoon2.0 branch, and
# is also in trunk.
#
# Hope that helps.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>