Open Zasch opened 7 years ago
I've fixed it locally by using this:
jQuery(document).ready(function() {
// Fixing encoding issue
$.fn.calendar.dates['de'] = {
days: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'],
daysShort: ['Son', 'Mon', 'Die', 'Mit', 'Don', 'Fre', 'Sam'],
daysMin: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
months: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'],
monthsShort: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
weekShort: 'W',
weekStart: 1
};
Calendars.initialize();
});
Just overwrite the language definition before initializing the calendar.
Hey,
I noticed that, if you use german language, there's a problem with the umlauts. I added a 'charset=utf-8' to the script tag, but that didn't work. So I digged a little deeper and found, that the language files had been encoded differently:
It would be much appreciated if you could encode all language files in UTF-8 for the next release.