From b9bb8d084b7119b8987b46861e74ca93b1250a62 Mon Sep 17 00:00:00 2001 From: AlessandroMandelli <65062723+AlessandroMandelli@users.noreply.github.com> Date: Sat, 9 May 2020 08:58:18 +0200 Subject: [PATCH] Update inkycal_calendar.py added ,locale=language at line 183 and 185 to have the local language in the printed events, otherwise they are in English. --- modules/inkycal_calendar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/inkycal_calendar.py b/modules/inkycal_calendar.py index 0218d55..dfb99a3 100644 --- a/modules/inkycal_calendar.py +++ b/modules/inkycal_calendar.py @@ -180,9 +180,9 @@ def generate_image(): elif event.begin > after_two_days: if event.all_day: - event_list.append('{}: {}'.format(event.begin.format('D MMM'), event.name)) + event_list.append('{}: {}'.format(event.begin.format('D MMM', locale=language), event.name)) else: - event_list.append('{0} {1} {2} : {3}'.format(event.begin.format('D MMM'), + event_list.append('{0} {1} {2} : {3}'.format(event.begin.format('D MMM', locale=language), at_in_your_language, event.begin.format('HH:mm' if hours == '24' else 'hh:mm a'), event.name))