On 17.05.2004 17:00, Dean West wrote:
then add it to pipeline:
<map:match pattern="*"> <map:generate src="blah/{1}.xml"/> <map:transform type="i18n"/> <map:serialize/> </map:match>
AFAIK this would obtain the server's default locale.
In this book it's stated that adding the request parameter of "?locale=fr_ca" should display the appropriate translation automatically, but it does not function this way as far as i can see. (and yes - I do have the correct xmlns in my source doc, and messages/translations set up correctly)
Pass a parameter like in some of the samples
<map:transform type="i18n">
<map:parameter name="locale" value="en-US"/>
</map:transform>(taken from forms block). Instead of hard-coding en-US choose your request param. But IIRC there is even a smarter version using a locale input module or action?
... searching for a sample ...
Locale action: http://cocoon.apache.org/2.1/howto/howto-i18n-xmlform.html#5.+Create+a+Sitemap+match+element Locale input module http://wiki.cocoondev.org/Wiki.jsp?page=WorkingWithLocales, third blue box
I would prefer the input module, less to type.
Joerg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
