How to set Language for viewer and all dialogs

Stimulsoft Reports.Flex discussion
Locked
vitaliy.urazov
Posts: 47
Joined: Thu Jul 14, 2011 6:09 pm

How to set Language for viewer and all dialogs

Post by vitaliy.urazov »

Hello!

I used example from samples folder but didn't have full localization.

To be honest I only have localized Title of Viwer Dialog. Not buttons, tooltips, print or export dialogs.

How I did it:

Code: Select all


[Embed(source="reports/localization/ru.xml",mimeType="application/octet-stream")]
public static var rusclass:Class;
public static var rusLang:String = String(new rusclass as ByteArray);


var language: StiLanguage = StiLanguage.fromString(rusLang);
// Set Localization
StiLocalization.setLanguage(language);

var report: StiReport = new StiReport();
report.loadReportFromString(torg12);
report.regDataXML("x", "", xml);
report.showDialog();



What should I do to have it localized?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

How to set Language for viewer and all dialogs

Post by Vladimir »

Hello, Vitaliy

Problem is solved, the update will be available in today's prerelease build.

Thank you.
vitaliy.urazov
Posts: 47
Joined: Thu Jul 14, 2011 6:09 pm

How to set Language for viewer and all dialogs

Post by vitaliy.urazov »

Vladimir wrote:Hello, Vitaliy

Problem is solved, the update will be available in today's prerelease build.

Thank you.
Work fine in new build.
Thanks
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

How to set Language for viewer and all dialogs

Post by Andrew »

Hello,

Ok!

Thank you.
Locked