Translate calendar object

Hi,

how to translate a popup calendar in a form. I try the same as for a dHTMLx Calendar object.

Set prototyper i.e.

dhtmlXCalendarObject.prototype.langData["de"] = { dateformat: '%d.%m.%Y', monthesFNames: ["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"], monthesSNames: ["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"], daysFNames: ["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"], daysSNames: ["So","Mo","Di","Mi","Do","Fr","Sa"], weekstart: 1 };

And in form Init JS

var mycal_last = myform.getCalendar("fm_area2_last"); mycal_last.loadUserLanguage("de");

But won´t work in a form element.

Hi

Could you please provide us complete demo including all correspondnig js/css files?
Please also add information regarding current and expected behaviour.

Here is a small guide how to make a complete demo:
docs.dhtmlx.com/tutorials__auxil … pport.html

If you don’t want to share your demo here for any reasons - you can send it to support@dhtmlx.com, if so - please include link to this forum topic.

If you’re using PRO Edition please send your demo to support@dhtmlx.com

Hi,

can be closed - my fault - mkycal_last was used twice (for different objects).

Sorry