cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Volker Schneider" <volker.schnei...@danet.de>
Subject RE: How to switch language for i18n at runtime?
Date Fri, 12 Apr 2002 11:49:16 GMT
Hi Konstantin,

thank you for your reply. Sorry, for being a nag in this point.

Do you mean this:

<map:match pattern="test">
  <map:act type="locale">
    <map:parameter name="locale-attribute" value="x"/>
    <map:generate src="prototyp/first.xml"/>
    <map:transform type="i18n"/>
    <map:serialize type="xml"/>
  </map:act>
 </map:match>

with .../Cocoon/test?x=en

This doen't work. Maybe I misunderstood you.

Regards,
- Volker -


-----Original Message-----
From: Piroumian Konstantin [mailto:KPiroumian@protek.com]
Sent: Freitag, 12. April 2002 13:36
To: 'cocoon-users@xml.apache.org'
Subject: RE: How to switch language for i18n at runtime?


> From: Volker Schneider [mailto:volker.schneider@danet.de]
>
> Dear colleagues,
>
> I want to switch language to "en" at runtime. I read the
> source of the LocationAction and tried so set the
> language-attribute in some different ways, but this didn't work.
>
> Does anybody know, how I can switch the language being used
> for i18n at runtime?

Use a request param like this: page.xml?locale=en (change param name to your
'locale-attribute' value) and it should work. Is that what you need?

Regards,
  Konstantin

>
> Thank you,
> - Volker -
>
>
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message