* Calendar - translate day of week in app header

This commit is contained in:
nathangray 2017-11-22 10:39:15 -07:00
parent 28e6d4642a
commit 2491fb14b9

View File

@ -3895,7 +3895,7 @@ jQuery.extend(app.classes.calendar,{
header: function(state) { header: function(state) {
var formatDate = new Date(state.date); var formatDate = new Date(state.date);
formatDate = new Date(formatDate.valueOf() + formatDate.getTimezoneOffset() * 60 * 1000); formatDate = new Date(formatDate.valueOf() + formatDate.getTimezoneOffset() * 60 * 1000);
return date('l, ',formatDate) + app.calendar.View.header.call(this, state); return egw.lang(date('l',formatDate)) + ', ' + app.calendar.View.header.call(this, state);
}, },
etemplates: ['calendar.view','calendar.todo'], etemplates: ['calendar.view','calendar.todo'],
start_date: function(state) { start_date: function(state) {