Community
Participate
Working Groups
The group parameters prompts are displayed by using the application server locale, whereas it should be the request locale. This issue happens both with WebBirtViewer and a custom API servlet. For instance, if a WebBirtViewer is run in tomcat, with java starting option " -Duser.language=fr", when using an url such: http://localhost:8080/birt/frameset?__report=report/testlocale.rptdesign&__locale=en Birt engine will correctly use "en" locale to get scalar parameters prompts, but will use "fr" for groups. This issue happens in a custom servlet/portlet context too: using "task.setLocale(request.getLocale())" in a render task won't have any effect for groups, server default locale is always used.
I can't reproduce this issue. Could you provide a sample report and screenshot?
Created attachment 208873 [details] Zip archive with a rptdesign example highlighting this issue, its related properties filesZip archive with a rptdesign example highlighting this issue, its related prope and screens within a PDF file Before running this example, copy the properties files in your webviewer's resource path root, and use URL parameter __locale with "en" or "fr" value (must be different from your JVM's locale) to highlight the issue. Screencasts in the PDF file show the parameter dialog box results for 3 distinct scenarios: 1/Default locale JVM in english and url with __locale=en 2/Default locale JVM in english and url with __locale=fr 3/Default locale JVM in french and url with __locale=en You can see the issue in action in scenario 2 and 3. Please let me know if you need more informations Dom
Created attachment 208880 [details] I reattached the PDF file, there was a little mistake in scenario 2' description
it's a bug of report engine. fixed.
Hi, unfortunately this bug is not still fixed. Use the rptdesign initially attached, and deploy it on a Birt WebViewer 4.2 with its properties files. Try to change __locale parameter in URL: it affects parameter prompts, but not group prompts.
I can not reproduce this issue with latest 4.2.2 build, both parameter prompts and group prompts can be localized.