As you can see the first image which is a non-localized report with a table. The header and column names are not localized till now.
In the next step as shown above we have added a properties file that will externalize the column labels and headers names. So for different language we will have different properties file. Name of the properties will contain locale. For example for French we will have messages_fr.properties file. So when a request will come for report access according to the locale fetched from request object the report will be generated in that particular language.
In third step click on any of the column header and in the property editor go to the localization. In that click on browse button that will give you option to select one of the properties from the properties file. This is a standard way of localizing a label. This functionality is provided by BIRT itself.
As done we can use an external JS file (in this case utils.js). Code of this JS will be explained later.
Method from this JS file will be used as shown below in the image. This method gives us the value based on the passed key from the properties file.
getPropValue method explanation:
var value = reportContext.getMessage(keyFromProperties);
After this if you will run the report design you will be able to see the following report. This is localized. This is very useful feature of BIRT and will be really helpful for the developers who want to make reports multilingual.