diff --git a/gestioncof/cms/templatetags/cofcms_tags.py b/gestioncof/cms/templatetags/cofcms_tags.py index 31368f1a..f9e62aed 100644 --- a/gestioncof/cms/templatetags/cofcms_tags.py +++ b/gestioncof/cms/templatetags/cofcms_tags.py @@ -145,12 +145,13 @@ def dates(event): ) if event.all_day: return _("du {datestart} au {dateend}{common}").format( - datestart=diffstart, - dateend=diffend, - common=common) + datestart=diffstart, dateend=diffend, common=common + ) else: - return _("du {datestart}{common} à {timestart} au {dateend} à {timeend}").format( + return _( + "du {datestart}{common} à {timestart} au {dateend} à {timeend}" + ).format( datestart=diffstart, common=common, timestart=timestart_string, @@ -162,5 +163,5 @@ def dates(event): return _("le {datestart}").format(datestart=datestart_string) else: return _("le {datestart} à {timestart}").format( - datestart=datestart_string, - timestart=timestart_string) + datestart=datestart_string, timestart=timestart_string + )