Jump to content

BIRT Developer Center Download


File Information

  • Submitted: May 05 2014 10:20 AM
  • Last Updated: Jun 17 2014 03:59 PM
  • File Size: 6.2KB
  • Views: 22062
  • Downloads: 71
  • Approved by: kclark
  • Approved on: 18 June 2014 - 05:39 AM
  • Summary: Example that shows how to localize strings and formatting based on data from the data source or parameters.
  • Content Type: Designs & Code
  • BIRT Version: Actuate 11, 4.3, 4.2

Download New Advanced Localization Technique

- - - - -
localization L10N dynamic

This is an update to this DevShare: http://developer.act...tion-technique/

BIRT will automatically localize strings (if you setup property files) and formatting (dates, numbers...). However in some cases you want to localize based on data or parameters different than the locale of the user running/viewing the report.

There are two examples attached. One that localizes based on data, the other based on a parameter. The reports were developed in iHub3 (BIRT 4.2), however the same technique can be used in earlier releases.

The code for the label strings looks like this:
importPackage(Packages.java.util);lc = new 

this.text = reportContext.getMessage(this.text, lc);
The code for data formatting looks like this:
this.getStyle().numberLocale = 

Other files you may be interested in ..

1 user(s) are online (in the past 1 minutes)

0 members, 1 guests, 0 anonymous users