Check documentation for the latest version 6.0 of dhtmlxSuite loadUserLanguage DHTMLX Docs

loadUserLanguage

sets a new language interface for dhtmlXColorPicker

void loadUserLanguage(string lang);

Parameters

langstringlanguage (e.g. "en-us" or "ru")

Example

dhtmlXColorPicker.prototype.i18n["en-us"] = {
      langname: "en-us",
      labelHue : "Hue",
      labelSat : "Sat", 
      labelLum : "Lum",
      labelRed : "Red", 
      labelGreen : "Green",
      labelBlue : "Blue",
      btnAddColor : "Add to Custom Colors",
      btnSelect : "Select",
      btnCancel : "Cancel"
};
 
var myColorPicker = dhtmlXColorPicker(["input1"]);
 
myColorPicker.loadUserLanguage("en-us");

See also
Back to top