Multilanguage report

Stimulsoft Reports.Flex discussion
Locked
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Multilanguage report

Post 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.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Multilanguage report

Post by HighAley »

Hello.

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

Code: Select all

report.localizeReport("en");
Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Multilanguage report

Post by hugo »

Thank you.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Multilanguage report

Post by HighAley »

Hello.

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

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Multilanguage report

Post 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.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Multilanguage report

Post by HighAley »

Hello.

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

Code: Select all

Theme.isTheme2013 = false;
Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Multilanguage report

Post by hugo »

OK, good to know to you have a backward compatibility flag.
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Re: Multilanguage report

Post by Andrew »

Hugo,

Yes, we are trying to keep it.
Locked