From 832372a1da144dd98b885e0e4d7c7c2c30f89ad0 Mon Sep 17 00:00:00 2001 From: maurofmferrao Date: Thu, 23 Jan 2025 12:30:31 +0000 Subject: [PATCH] Schedule Page: Fix weekdays trans relates to xibosignageltd/xibo-private#913 --- ui/src/pages/schedule/schedule-page.js | 14 +++++++------- views/schedule-page.twig | 9 +++++++++ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/ui/src/pages/schedule/schedule-page.js b/ui/src/pages/schedule/schedule-page.js index 261505e72a..e5c8bbabbd 100644 --- a/ui/src/pages/schedule/schedule-page.js +++ b/ui/src/pages/schedule/schedule-page.js @@ -328,13 +328,13 @@ $(function() { if (data.recurringEvent) { if (data.recurrenceType === 'Week' && data.recurrenceRepeatsOn) { const daysOfTheWeek = [ - displayPageTrans.daysOfTheWeek.monday, - displayPageTrans.daysOfTheWeek.tuesday, - displayPageTrans.daysOfTheWeek.wednesday, - displayPageTrans.daysOfTheWeek.thursday, - displayPageTrans.daysOfTheWeek.friday, - displayPageTrans.daysOfTheWeek.saturday, - displayPageTrans.daysOfTheWeek.sunday, + schedulePageTrans.daysOfTheWeek.monday, + schedulePageTrans.daysOfTheWeek.tuesday, + schedulePageTrans.daysOfTheWeek.wednesday, + schedulePageTrans.daysOfTheWeek.thursday, + schedulePageTrans.daysOfTheWeek.friday, + schedulePageTrans.daysOfTheWeek.saturday, + schedulePageTrans.daysOfTheWeek.sunday, ]; const recurrenceArray = data.recurrenceRepeatsOn.split(','); diff --git a/views/schedule-page.twig b/views/schedule-page.twig index 7f8c5125b4..0c5035d1d8 100644 --- a/views/schedule-page.twig +++ b/views/schedule-page.twig @@ -382,6 +382,15 @@ var schedulePageTrans = { always: "{% trans "Always" %}", adjustTimesofTimer: "{% trans "Adjust the times of this timer. To add or remove a day, use the Display Profile." %}", + daysOfTheWeek: { + monday: "{% trans "Monday" %}", + tuesday: "{% trans "Tuesday" %}", + wednesday: "{% trans "Wednesday" %}", + thursday: "{% trans "Thursday" %}", + friday: "{% trans "Friday" %}", + saturday: "{% trans "Saturday" %}", + sunday: "{% trans "Sunday" %}", + }, };