Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Localize Parameter Prompts
scowsailor
Can someone explain how to localize the parameter prompts to match the system locale? I know about the resource properties for labels, but I'm not sure how to tie the parameter prompts to a resource.
Find more posts tagged with
Comments
kjawahar
1) Create a standard Java properties file within your report project.
2) Create properties for each resource you want to localize.
3) Set the Resources property of your report. Open the Property Editor. Switch to the General tab. Enter your property file name in the Resources field.
4) For each parameter, go the "Localization" tab in the Property Editor and choose the appropriate resource from the list for the Content key property.
When you run your report, BIRT will use the standard Java system for locating a property file that matches the user's locale. The resources for that file will appear in your labels. (If BIRT cannot find a resource file, or cannot find the requested key, then the default text for the label will appear. The default text is what you entered in BIRT's layout editor.)
Reports are viewed using the BIRT web application. This application takes a __locale parameter within the URL for running a report. Simply set this parameter to the desired locale, by specifying both language and country codes, therefore: __locale=fr_CA.
Here's an example of using such parameter:
http://localhost:8900/iportal/executereport.do?repositoryType=enterprise&userid=myusername&password=mypassword&serverurl=http://localhost:8000&volume=MyVolume&__executableName=/Public/Reports/Test/MyReport.rptdesign&__locale=fr_CA
Although there has been stated that only using the language code might work (__locale=fr), in current implementation one must specify both language and country codes.
Also look at the followign resources:
http://www.birt-exchange.org/org/resources/assets/?articleid=20614
scowsailor
Thanks! Much appreciated.