Check documentation for the latest version of dhtmlxSuite lang DHTMLX Docs

lang

defines the default language for all FileSelector instances

string lang;

Example

// way 1
 
// add settings for custom language
dhtmlXFileSelector.prototype.langData["fr"] = {
    ...
};
 
// initialize FileSelector
var myFileSelector = new dhtmlXFileSelector(...);
 
// apply language settings
myFileSelector.loadUserLanguage("fr");
 
// way 2 - simply change the lang property once, before init
 
// add settings for custom language
dhtmlXFileSelector.prototype.langData["fr"] = {
    ...
};
 
// make custom language default
dhtmlXFileSelector.prototype.lang = "fr";
 
// initialize FileSelector
// this instance will be initialized in French
var myFileSelector = new dhtmlXFileSelector(...);

Back to top