Calendar dayNames translation issue

Greetings. Desperate with this one. Maybe extension problem, but I don’t know the exact mechanism for localization.

My [XWiki 10.11.10] calendar with SayStart=1 (Monday) badly translates day names as you can see:

Changing on https://xwiki/xwiki/bin/view/Calendar/Translations
xwiki.calendar.dayNamesShort=[‘Lun’,‘Mar’,‘XXX’,‘Jue’,‘Vie’,‘Sab’,‘Dom’]
to
xwiki.calendar.dayNamesShort=[‘Dom’,‘Lun’,‘Mar’,‘XXX’,‘Jue’,‘Vie’,‘Sab’]
has no effect. Always appearing this in web page’s source code:
var dayNamesShort = [‘Lun’,‘Mar’,‘Mié’,‘Jue’,‘Vie’,‘Sab’,‘Dom’]

Locale correctly set to “es”, no multilanguage.

FullCalendar 5.0.1
Full Calendar Macro 2.1.9
Full Calendar Macro - API 2.2.5
ical4j 2.0.2
Mocca Calendar Application 2.7.5
Mocca Calendar API 2.7.5

Thank all.

It’s strange since that’s not what the standard version of the translation looks like on macro-fullcalendar/macro-fullcalendar-ui/src/main/resources/Calendar/Translations.es.xml at master · xwiki-contrib/macro-fullcalendar · GitHub

Thanks. Yes. In fact I´ve tried to overwrite thoes variables before the coll to calendar without success.

I’ve anoter xWiki 10.11.10 installed where day names appear as expected. We aren’t conscious of having modified anything related whit the issue.

Hello. New findings.

  • Uninstall FullCalendar, FullCalendar Macro, FullCalendar Macro API, iCal4j, MoccaCalendar 2.7.5.
  • Reinstall MoccaCalendar 2.7.5. All these get installed with it:
    • FullCalendar 3.0.0
    • Full Calendar Macro 2.1.9
    • Full Calendar Macro - API 2.1.9
    • ical4j 2.0.0
    • Mocca Calendar API 2.7.5

Calendar appears but dayNames badly represented. This URL (seen in access_log):
https://xwiki.mydomain.es/xwiki/bin/jsx/MoccaCalendar/Code/DatePickerExtension?language=es&docVersion=1.1&defer=false

returns:
document.observe(“dom:loaded”,
function() {
Date.first_day_of_week=1;
Date.weekdays=[“Lun”,“Mar”,“Mié”,“Jue”,“Vie”,“Sab”,“Dom”];
for(var a=0;a<Date.first_day_of_week;a++){Date.weekdays.push(Date.weekdays.shift())}
Date.months=[“Enero”,“Febrero”,“Marzo”,“Abril”,“Mayo”,“Junio”,“Julio”,“Agosto”,“Septiembre”,“Octubre”,“Noviembre”,“Diciembre”];
Date.prototype.getAMPMHour=function(){var b=this.getHours();return b};
Date.prototype.getAMPM=function(){return""}
}
);

Into which I think the order of weekdays is wrong.

In one moment, upgradin and downgrading related extensions, I managed to get it functioning correctly, but I didn’t clean the navigator’s cache, and when I did, it stopped working. So I dont know which version of which extension was the correct one.

Any hints?

Well, brute force solution. Downgraded extensions in a aeternal loop (downgrade, clean caché, login, prove) and this combination works:

Mocca Calendar Application 2.7.5
Mocca Calendar API 2.7.5
ical4j 2.0.2
FullCalendar 3.0.0
Full Calendar Macro 2.1.9
Full Calendar Macro - API 2.2
Full Calendar Macro - WebJar 2.2

I dont feel like terminating the investigation, it’s too hard.

Curiosly, the page https://xwiki.mydomain.es/xwiki/bin/view/Calendar/Translations continues to give the incorrect order of week days:
xwiki.calendar.dayNames=[‘Lunes’,‘Martes’,‘Miércoles’,‘Jueves’,‘Viernes’,‘Sabado’,‘Domingo’]
xwiki.calendar.dayNamesShort=[‘Lun’,‘Mar’,‘Mié’,‘Jue’,‘Vie’,‘Sab’,‘Dom’]

Thanks all.