DHTMLX Docs & Samples Explorer

loadUserLanguage(lang, func)

Sets a new language interface for calendar.

Parameters:

  • lang - the language name.
  • func - the function called after language is loaded.
dhtmlXCalendarObject.prototype.langData["de"] = {
        //date format
	dateformat: '%d.%m.%Y',
	//full names of months
        monthesFNames: ["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],
	//shortened names of months
        monthesSNames: ["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],
	//full names of days
        daysFNames: ["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],
	//shortened names of days
        daysSNames: ["So","Mo","Di","Mi","Do","Fr","Sa"],
        //starting day of a week. Number from 1(Monday) to 7(Sunday)
	weekstart: 1
}
function doOnLoad() {
        var myCalendar = new dhtmlXCalendarObject("calendarHere");
        myCalendar.loadUserLanguage("de");
        myCalendar.show();
}