Page 1 of 1

How to set Language for viewer and all dialogs

Posted: Thu Jul 21, 2011 8:13 am
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?

How to set Language for viewer and all dialogs

Posted: Thu Jul 21, 2011 9:16 am
by Vladimir
Hello, Vitaliy

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

Thank you.

How to set Language for viewer and all dialogs

Posted: Thu Jul 21, 2011 2:52 pm
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

How to set Language for viewer and all dialogs

Posted: Thu Jul 21, 2011 10:19 pm
by Andrew
Hello,

Ok!

Thank you.