From ddb06ca2148bf5d548ca9283225a7a14ddef424a Mon Sep 17 00:00:00 2001 From: TheDuffman85 Date: Wed, 10 Feb 2021 14:24:59 +0100 Subject: [PATCH] Added translation for today and tomorrow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I had missread the documentation of moment.js. We've to provide the translation for today and tomorrow ourselves. For the translation I use the standard MM² translation mechanism. --- modules/default/calendar/calendar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js index 05e50efe..a4346c64 100755 --- a/modules/default/calendar/calendar.js +++ b/modules/default/calendar/calendar.js @@ -372,8 +372,8 @@ Module.register("calendar", { } else { timeWrapper.innerHTML = this.capFirst( moment(event.startDate, "x").calendar(null, { - sameDay: "[Today]", - nextDay: "[Tomorrow]", + sameDay: "[" + this.translate("TODAY") + "]", + nextDay: "[" + this.translate("TOMORROW") + "]", nextWeek: "dddd" }) );