How to change whole weekly caption in Calendar component

Hi,

I’m using Vaadin 7.6.4 and tried the calendar component.

I tried to set a shorter caption for the week day by doing

calendarComponent = new Calendar(); calendarComponent.setWeeklyCaptionFormat("EEE dd.MM."); The result was not expected because I got “Monday Mon 01.01.” The string “Monday” in the caption is not coming from the formatted date.

While digging I found the place “com.vaadin.client.ui.calendar.schedule.DayToolbar.add(String, String, String, String)” at which the label is builded and it turns out that the dayName is always added to the caption label.

Right now I don’t think there is a way around this.

Does anyone know a way how to remove the dayName or at least shorten the dayName.

Thanks and BR,
Michael