getMultiLanguage ();
The getMultiLanguage method determines whether multilanguage support is enabled for dashboard.
The method returns True if multilanguage support is enabled: that is, dashboard text fields can be translated to other languages. If multilanguage support is disabled (default), the method returns False.
To execute the example, the page must contain a dashboard constructor named kapBox. The BODY tag must contain a DIV element with the "checkBox" identifier. Add a checkbox that enables and disables multilanguage support on selecting and deselecting:
var multilinguaCheckBox = new PP.Ui.CheckBox({ ParentNode: "checkBox", Content: "Multilingual", Checked: True, CheckedChanged: function () { kapBox.setMultiLanguage(multilinguaCheckBox.getChecked()); if (kapBox.getMultiLanguage() == True) { console.log("Text can be translated into other languages"); } } });
After executing the example the Multilanguage checkbox is placed in the page. Selecting and deselecting this checkbox enabled and disables multilanguage support. An appropriate message appears in the screen if multilanguage support is enabled.
See also: