View Single Post
  #1 (permalink)  
Old 06-30-2009, 05:08 AM
mtrowe mtrowe is online now
Junior Member
 
Join Date: Jun 2009
Posts: 1
Default Birt Viewer only uses JVM default locale

Im using BIRT 2.3.1 running on apache-tomcat-5.5.26.

I can't get the BIRT Report Viewer to use another locale then the JVM default locale.
As far as I understand, BIRT checks for a locale in the following order:
1. the locale provided via the __locale request parameter,
2. the browser locale,
3. the locale provided in web.xml,
4. the JVM default locale.

But when I use BIRT, 1 through 3 are ignored, and the JVM default locale is always used.

When I debugged the Viewer, I saw that
org.eclipse.birt.report.model.i18n.Threadresources.setLocale(ULocale) is only called in
org.eclipse.birt.report.model.core.DesignSession.activate()

The locale used in the activate method is provided in the method org.eclipse.birt.report.engine.parser.ReportParser.getDesignHandle(String, InputStream) by a call to com.ibm.icu.util.ULocale.getDefault().

So this would explain why the default locale is always used, but it can't be the intended behavior.

What am I doing wrong?
Reply With Quote