Sets a new language interface for calendar.
Parameters:
// add once, make sure dhtmlxcalendar.js 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, // the title of the week number column weekname: "w" }; function initCalendar() { var myCalendar = new dhtmlXCalendarObject("calendarHere"); myCalendar.loadUserLanguage("de"); myCalendar.show(); };
If you'd like to apply language settings once for all calendar instances, use:
// make sure dhtmlxcalendar.js will loaded dhtmlXCalendarObject.prototype.lang = "de";