Home
Analytics
BIRT Dynamic Internationalization
bokya
Dear All,
Please suggest me a good suggestion for my below problem/need. Its very urgent,
I have web application developed in java where i have two tabs one is "English" and another is "Hindi". So when i click on any of the tab my java based application is rendering depending on tab click.
But i want my BIRT designed report should also behave same like java application.
In Brief- My all labels of BIRT report should change acoording to tab selection. When i click on "Hindi" tab my report labels should render in "Hindi" Lanaguage and vice-versa.
Please i am waiting for your valuable reply.
Thanks & Regards,
Bokya
Find more posts tagged with
Comments
kclark
bokya, you should be able to use the __locale parameter in each tab to select what language you need. <a class='bbc_url' href='
http://www.birt-exchange.org/org/wiki/index.php?title=BIRT:Internationalization'>Take
a look</a> at this link it's a good resource that explains how to do this. <a class='bbc_url' href='
http://www.birt-exchange.org/org/devshare/designing-birt-reports/1119-localizing-birt-reports-with-report-parameters/'>This
is a good devshare</a> that shows how to use parameters to select a locale that you might want to look at also.
bokya
<blockquote class='ipsBlockquote' data-author="'kclark'" data-cid="112745" data-time="1356533836" data-date="26 December 2012 - 07:57 AM"><p>
bokya, you should be able to use the __locale parameter in each tab to select what language you need. <a class='bbc_url' href='
http://www.birt-exchange.org/org/wiki/index.php?title=BIRT:Internationalization'>Take
a look</a> at this link it's a good resource that explains how to do this. <a class='bbc_url' href='
http://www.birt-exchange.org/org/devshare/designing-birt-reports/1119-localizing-birt-reports-with-report-parameters/'>This
is a good devshare</a> that shows how to use parameters to select a locale that you might want to look at also.<br /></p></blockquote>
<br />
Hi Senior Member,<br />
<br />
Thanks for your reply. But my requirement is little bit different. I have two property file one file is for "English" and other is for "HINDI". So whenever i click on "English" tab in my web application then my report should take the messages from "English" property file with associated Key.<br />
<br />
Same for English Language also Whenever user cliks on English, I have Property file associated with English content in the Key-Message Pair. So the Key associated with Label will be render in English.<br />
<br />
Simple Way- My lable in Report should fetch message from associated propert file according to Web application. Those messages i have written in two files one is for Hindi another is for English.<br />
<br />
Regards,<br />
Bokya
kclark
bokya, you should be able to use some javascript to do what you're needing. It would be something like<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>reportContext.getMessage("companyNameKey", reportContext.getLocale())</pre>