Prerequisites: Jasper studio7 professional.
- Create a sample report with food mart database.
- Drag and drop a Text field from palette tab in right hand side.
- In the text field enter text field as below shown image.
- We need bundles to get the locale language. For that we are going to create two properties files.
- Create the localereport.properties file: Country=country in English.
- Translate the text as required, and save it as localereport_fr.properties: Country=pay
- Click on report name and go to Resource bundle properties, there you can give name as localereport.
- Deploy the report in jasper server.
- Go to Jasper studio and select report from the jasper server repository.
- Here we can add resource bundle from the local.
- Repeat this for all languages using the example: localereport_fr.properties
- In the jasper server create a parameter globally.
- Select single value type and in the Prompt Text you should give as below shown in image.
- In the Set the Datatype Kind and Properties section mention name as below.
- Save and run the report with appropriate locale. You will get the result as below.
Here “R” meaning Internationalizing of field in jasper.
Right click on report>Select New> Select Resource Bundle.
Input Control –> Add Resource –> Click on Input Control.
Best Open Source Business Intelligence Software Helical Insight is Here
A Business Intelligence Framework
In case if you have any problem please get us at firstname.lastname@example.org
Helical IT Solutions Pvt Ltd