Can not set the default language

Stimulsoft Reports.JS discussion
Post Reply
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Can not set the default language

Post by hugo »

Hi,

This:
Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile("Localization/pt.xml", true, "pt");
Does load the language definition (with console warning) but loads however does not set pt as default language (tested on the designer).

And this:
Stimulsoft.Base.Localization.StiLocalization.cultureName = "pt";
Throw an error:
Uncaught TypeError: Cannot read property 'language' of undefined
at Function.getJsonStringLocalization (stimulsoft.reports.js:56)
at E.renderHtml (stimulsoft.designer.js:29)
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Can not set the default language

Post by hugo »

Solved with: Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Can not set the default language

Post by Andrew »

Hello,

Okay thank you for sharing you way of solving.
Post Reply