Page 1 of 1

Multilanguage report

Posted: Thu Jun 19, 2014 9:23 am
by hugo
Hello,

I want to provide report with multilanguage support (multi-language on the report labels).
Whats the best practice ?

I see 3 options:
1. Design multi-versions of the same definition;
2. Get the choosen language and localize at runtime from the report definition with a switch case (this requires a function to get the choosen language);
3. Translated the labels at runtime before invoke the render report.

For me the option 2 it's the best. Do you have a function to get the choosen language ?


Regards,
Hugo.

Re: Multilanguage report

Posted: Fri Jun 20, 2014 12:08 pm
by HighAley
Hello.

You can use Globalization Editor for this.
GlobalizationFlex.png
GlobalizationFlex.png (50.65 KiB) Viewed 6587 times
It's possible to choose language from code:

Code: Select all

report.localizeReport("en");
Thank you.

Re: Multilanguage report

Posted: Mon Jun 23, 2014 9:17 pm
by hugo
Thank you.

Re: Multilanguage report

Posted: Tue Jun 24, 2014 9:43 am
by HighAley
Hello.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.

Re: Multilanguage report

Posted: Tue Jun 24, 2014 10:30 am
by hugo
Out of topic.

I still think that this new interface (from the screenshoots) it's a way back, comparing to my current one. I hope that until the next major release you change it, otherwise will be block for the upgrade process.

Re: Multilanguage report

Posted: Tue Jun 24, 2014 1:49 pm
by HighAley
Hello.

You can use our old interface. You could set it using next code:

Code: Select all

Theme.isTheme2013 = false;
Thank you.

Re: Multilanguage report

Posted: Tue Jun 24, 2014 2:14 pm
by hugo
OK, good to know to you have a backward compatibility flag.

Re: Multilanguage report

Posted: Wed Jun 25, 2014 4:10 am
by Andrew
Hugo,

Yes, we are trying to keep it.