silvannos Posted February 16, 2010 Share Posted February 16, 2010 I would like the user to be able to choose in which language they want the report generated at the start of running a report. Right now, I can either create a new parameter that will change the text in the report according to the language using if-else constructs. This is not ideal, so I would like to be able to use resource bundles for localization but based on the input control and not the locale in which the user logs in.The only way I can see is if I would be able to change the value of the REPORT_LOCALE parameter for the execution of the report only, and without it affecting the language of the interface.Sorry if I am unclear, just ask for clarification and I will be happy to provide it.Thanks,Simon Link to comment Share on other sites More sharing options...
swood Posted February 17, 2010 Share Posted February 17, 2010 When running a report interactively, the locale used for internationalization will be what was set when the used logged in. It looks like you can override this by setting a "reportLocale" string parameter (input control), that has to be encoded with language and country codes, like "en", "en_US". You can also set the locale when scheduling reports. ShermanJaspersoft Link to comment Share on other sites More sharing options...
silvannos Posted February 17, 2010 Author Share Posted February 17, 2010 Thanks for the reply. I have tried setting up a reportLocale parameter and input control in my report but it doesn't seem to override the locale of login.If I try viewing the report using something like this:http://<host>:<port>/<context>/flow.html?_flowId=viewReportFlow&reportUnit=/reports/myreport&reportLocale=frThen that works. However, just running the report by clicking on it in the web interface and choosing the language with the input control does not.Would someone know what to do to fix this?ThanksPost Edited by silvannos at 02/17/2010 18:37 Link to comment Share on other sites More sharing options...
pumaking Posted October 23, 2012 Share Posted October 23, 2012 Hi,I'm also interested in a solution for this because for the user it is much easier to change the report language with an input control rather than changing the locale while logging in. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now