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)
Any way to internationalize without property files
Yunmanger
Hi!<br />
<br />
BIRT supports l10n an i18n using simple property files. I'm running reports from Jboss and<br />
my rptdesign files are stored in database. When creating design I'm providing InputStream<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>design = engine.openReportDesign(designStream);</pre>
<br />
I think there is no way to do the same with localization property files. This separation is quite inconvenient. <strong class='bbc'>I'm wondering if there is any way to handle localization without property files?</strong> For example from database. Or it would be great to store localization map in .rptdesign file.
Find more posts tagged with
Comments
JasonW
You could always write script to retrieve label values from your db instead of a properties file.
Jason
EricB
Playing with the API, there's not actually a need to source the properties from a "file". That is just BIRT's default strategy for locating resources. One of the openReportDesign() methods accepts an IResourceLocator. Creating an implementation of this and passing it in to the openReportDesign() method, one can return a URL whose getInputStream() returns properties from any place: constants, DB, file, or whatever.
Hope that helps,
Eric
Yunmanger
Thank you!<br />
<br />
<blockquote class='ipsBlockquote' data-author="'EricB'" data-cid="80764" data-time="1311886317" data-date="28 July 2011 - 01:51 PM"><p>
Playing with the API, there's not actually a need to source the properties from a "file". That is just BIRT's default strategy for locating resources. One of the openReportDesign() methods accepts an IResourceLocator. Creating an implementation of this and passing it in to the openReportDesign() method, one can return a URL whose getInputStream() returns properties from any place: constants, DB, file, or whatever.<br />
<br />
Hope that helps,<br />
<br />
Eric<br /></p></blockquote>