Page 1 of 1

Can not set the default language

Posted: Mon Oct 05, 2020 12:58 am
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)

Re: Can not set the default language

Posted: Mon Oct 05, 2020 1:49 am
by hugo
Solved with: Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile

Re: Can not set the default language

Posted: Mon Oct 05, 2020 6:03 am
by Andrew
Hello,

Okay thank you for sharing you way of solving.