Read the statement by Michael Teeuw here.
MMM-CalendarExt3Agenda
-
@CDT
I’ve fixed it. Thanks for reporting it. -
@CDT said in MMM-CalendarExt3Agenda:
Possible bug here. The Agenda doesn’t show scheduled events on the final day as set by the endDateIndex.
I’m trying to get the Ext3Agenda to show me just a single day. Using startDayIndex:0, endDateIndex:0. When doing this, it only shows full-day events, not events scheduled a specific time.
If I change endDateIndex:1, then I get the proper items appearing, but also a header for day 2.
I notice that not matter what the endDateIndex is listed, it doesn’t seem to show sheduled events the last day. Only the header and any full-day events.
I think you are referring to the same issue I posted a while ago but unfortunately I was not able to make myself clear.
-
-
@MMRIZE
Works perfectly now, thanks! -
Happy new year everyone!
Indeed the fix works now. Thank you @MMRIZE
Another comment, even though “dentro de X días” is correct in Spanish it’s also long. It could also be said “En X días” and it will be also correct. Not an issue but a suggestion.
-
@luisestrada I believe that’s a translation error - and may not even be “our” fault…
-
@BKeyport I tried to find the source but no idea where this comes from.
-
@BKeyport said in MMM-CalendarExt3Agenda:
@luisestrada I believe that’s a translation error - and may not even be “our” fault…
I see there’s nothing we can do, with my limited programming skills I was able to get to row 271 in MMM-CalendarExt3Agenda.js
let p = new Intl.RelativeTimeFormat(options.locale, { numeric: "auto", style: "long" })
and I found out that Intl.RelativeTimeFormat is written like that, for Spanish locale settings.
As I said before it’s not wrong but they could have said “en 3 días” instead of “dentro de 3 días”. It’s like in English when you say “in 3 days” and “within 3 days”.
-
@luisestrada
I’ll prepare how to customize it soon. I’m on travel abroad now and will return to next week. Plz wait a while. Until then, you can hide it with css. -
@luisestrada
Almost done (not yet released).
By the way, which locale did you use and which country are you living? -
@luisestrada
Done. (Released. v1.4.2)
A new config value,relativeNamedDayOptions
, is introduced. Now People can modify the option generally.However, for your specific purpose (
en X días
instead ofdentro de X días
), further step is needed.Only the Mexican locale supports
en X días
format withrelativeNamedDayOptions: {style : 'short' }
, other Spanish-locales don’t.
So to geten X días
, you have to uselocale: 'es-MX'
regardless of which country you live.locale: "es-MX", relativeNamedDayOptions: { style: "short", },
If you are living in Mexico, there would be no issue. But in other countries where the week starts on Monday, 2 more configuration is needed.
locale: "es-MX", relativeNamedDayOptions: { style: "short", }, firstDayOfWeek: 1, minimalDaysOfNewYear: 4,
Of course, if you don’t care
dentro de 3 días
, You can use any locale under which you live.locale: "es-ES",