> From: Volker Schneider [mailto:[EMAIL PROTECTED]] > > 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>
No, this won't work as LocaleAction supports only configuration params and you cannot override it in a pipeline. See the root sitemap from Cocoon and move your param there: ... <map:action name="locale" logger="sitemap.action.locale" src="org.apache.cocoon.acting.LocaleAction"> <map:parameter name="locale-attribute" value="x"/> </map:action> ... > > with .../Cocoon/test?x=en > > This doen't work. Maybe I misunderstood you. This time it should work. Konstantin > > Regards, > - Volker - > > > -----Original Message----- > From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] > Sent: Freitag, 12. April 2002 13:36 > To: '[EMAIL PROTECTED]' > Subject: RE: How to switch language for i18n at runtime? > > > > From: Volker Schneider [mailto:[EMAIL PROTECTED]] > > > > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- > 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]> --------------------------------------------------------------------- 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]> --------------------------------------------------------------------- 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]>