Hi everybody I'm trying to follow the action of locale in XMLUI. My requirement is to add controls (flags for instance) for mannualy change the DSpace language in the header in the same way that jspui has. Looking at DspaceLocaleAction.java it seems to use the request parameter locale, I mean that:
http://localhost:8080/xmlui?locale=pt should work, but it doesn't. Continue using the browser default language. In the code it seems using findLocale from I18nUtils from cocoon, that is invoked at sitemap.xmap. I've tried to add parameters to the map:action=locale as is shown here: http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/acting/LocaleAction.html At final, it seems that in xmlui the only way to change language manually is to change the browser default language. The question is (my knowldege about cocoon is poor) should I intercept the call to findLocale to check the request parameter? Shouldn't be done by the findLocale function as the comment says? Anybody has tried to do something similar? Thanks in advance for any help. Regards German ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

