Follow

Localization of GUI in Reports.JS

Use next commands to change language of viewer's GUI.

Add a new language to the Select UI language menu. The file is uploaded to a client when the language is selected.

JavaScript
Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile("Localizations/pt-BR.xml", false, "Portuguese (Brazil)");

Add a new language to the Select UI language menu and upload the file to a client.

JavaScript
Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile("Localizations/ro.xml", true);

Add a new language to the Select UI language menu and set it as a current language.

JavaScript
Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile("Localizations/es.xml");

Remove all languages from the Select UI language menu, upload it to a client and set it as a current language.

JavaScript
Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile("Localizations/es.xml", true);

Set localization in JavaScript code:

JavaScript
var localizationEs = '<?xml version="1.0" encoding="utf-8" standalone="yes"?>........</xml>';
Stimulsoft.Base.Localization.StiLocalization.setLocalization(localizationEs);

All these commands should be used before the viewer is created.

0 Comments

Please sign in to leave a comment.