Check documentation for the latest version of dhtmlxSuite loadUserLanguage DHTMLX Docs

loadUserLanguage

sets a new language interface for FileSelector

void loadUserLanguage(string lang);
langstringthe name of a language

Example

// add once, make sure that dhtmlxfileselector.js is loaded
dhtmlXFileSelector.prototype.langData["fr"] = {
    // the "OK" button's name
    ok: "Sélectionner", 
    // the "Cancel" button's name
    cancel: "Annuler", 
    // the text of window's caption
    caption: "Sélectionnez le Fichier",
    // the title of the "Name" column
    col_name: "Nom",
    // the title of the "Size" column
    col_size: "Taille"
};
 
// initialize fileselector
var myFileSelector = new dhtmlXFileSelector();
myFileSelector.loadUserLanguage("fr");

Back to top