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?