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)
Internationalisation in report
vcarton
Hey,
I need to display a page in two different langages in the same report.
For example the same text in french and in english.
We can give report a local but 2 ?
Is it possible to display the same report (pdf) in two different langages ?
I'am using birt 2.2.2
Thanks,
Find more posts tagged with
Comments
JustME
vcarton,<br />
<br />
Hey, I just ran across your question today and decided I would attempt a resolution for you. Here is what I have found out.<br />
<br />
For your report, you should be able to place two labels for each data field. You can set one label to always display in the native language (i.e. english) and then localize the second label to make it change. <br />
<br />
To do this, first create a resource file (*.properties). Click in the white space of your report and in property editor scroll down and select resources. In the resources window, click on Browse and navigate to the file you just created. <br />
<br />
At some point, you will need to modify your .properties file. You will enter resource keys into this file in the following format:<br />
<br />
name=namo<br />
account=accounto<br />
(whatever you put after the = is what will display in the report)<br />
<br />
You will have to create a seperate resource file for each language you want the reported translated to. Example:<br />
<br />
sample.properties (default resource file if the viewers locale is set to a language you don't have a resource file created for)<br />
sample_en.properties (displays if viewer is localized to english)<br />
sample_fr.properties (displays if viewer is localized to french) etc.<br />
<br />
This way your report could always display the english version and change the second language version as needed. You could end up with a display something like Name/Namo: John Doe <br />
<br />
Hope this helps and let me know if you need any further assistance.<br />
<br />
Oh yeah, I am using BIRT 2.3.2. I haven't upgraded to 2.5.1 yet, but I have heard that in the new version you can localize each report item individually. As I understand it, for example, you could have the report display in several languages but ALWAYS displaying the $amount in US currency but setting that individual field to english. I'll have to see how that works in the new version. <br />
<br />
Here's a link about 2.5.1. <br />
<a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/project/notable2.5.php#jump_7'>New
and Notable Features within BIRT 2.5</a>
JustME
Oh, I forgot to mention:
after you add the keys to your .properties file......add labels to your report or click on the labels you want to localize. Once you have the label selected, in the properties editor, click on localization. In the localization window click on the button with 3 dots ... and select the Key you want to use for that label