Home
Analytics
Localization of BIRT report: Need sample example report and guideline
4robert
Hi All,
I want to design a BIRT report which will work for different standard language.
Actually my requirement is as follows:-
I have designed a BIRT report template using birt-rcp-report-designer-2_3_2. Now I want to generate this report into different type of standard language. I have read many articles regarding this and came to know that it can be possible by the help of "Localizing Report". So, I have tried to design my report with localization but it is not working.
So, please give a sample BIRT report which include the "Localizing" and consists of label, text, data, parameter etc. reports items.
Also as I have used single BIRT server from which our application call the report, can it be possible to control the report language with help of a parameter?
In that case I will send a parameter to my report which will decide the output language of the report fetched from the BIRT Report Server.
For example, say I have designed the whole report in ENGLISH. Now when I call the report from our application I will send a parameter to my report say "Languange_Name" value to "ENGLISH" and report will be generated in english. And in second case if I call the report and send "Languange_Name" parameter value equall to "GERMAN", in this case report will be generated in GERMAN lanugage.
Reply me, it is urgent!!!!!
For any clarification ask me for details.
Thanks in Advance!
Robert
Find more posts tagged with
Comments
rawesso
Hi,
I only have an example where column headings are localized. I attached the sample report as well as the localization properties files. If you place the properties files in the resources folder and run the report, you will notice that the column headings will be in the machine?s locale.
Basically, what you have to do is to create a default properties file where you define all the report elements to localize in the format key=value. Then you create a file for each language. If you called de default properties file name.properties, the properties file has to have its name for instance in the form name_fr_FR.properties for French. I hope this helps.
Best Regards,
4robert
Hi rawesso,
Thank you very much for your prompt reply.
You have attached a small but very nice example and I have designed my report with its help. Actually I was missing the main .properties file where I have to initialize the main value.
Anyway now it is working for me.
But to make it properly integrate with my application i need to use a parameter by which I can control the output language of the report. I have already described the problem in the second portion of my post.
So, any idea from anyone?
N.B: This post is open for all.
Thanks in Advance!
Robert
CBR
Hi Robert,
how do you integrate the report into your application? Are you using the BIRT Viewer webapp?
The BIRT Webviewer already has such a parameter that is passed using url. Simply add &__locale=de for german &__locale=en for english. If you don't add the __locale parameter to url the BIRT Webviewer will have a look for the locale of your browser which is beeing used then.
If you integrate BIRT using the BIRT Report Engine API:
There's a method setLocale for the Run btw RunAndRender Task. The setLocale method accepts a locale object representing the language in which the report should be rendered.
hope this helps
Christian (from Mannheim Germany)
kripa.s@tbitsglobal.com
<p>Hi,</p><p> I also need the sample report . Please help me.</p><p> </p><p>Thanks.</p>
GLO_FR
<p>Hi Krispa,</p><p> </p><p>there is a youtube chanel with great tutorial and examples <a data-ipb='nomediaparse' href='
http://www.youtube.com/user/BIRTdeveloper'>there</a></p><p> </p><p>The
one you're looking for is probably this one <a data-ipb='nomediaparse' href='
http://www.youtube.com/watch?v=x4bjNOqOpLU'>http://www.youtube.com/watch?v=x4bjNOqOpLU</a></p>