api: fix string for localization

This commit is contained in:
Valentin Deniaud 2021-07-01 15:33:06 +02:00
parent 4fb6581e8d
commit 63148a30dd
1 changed files with 4 additions and 1 deletions

View File

@ -437,7 +437,10 @@ def get_event_text(event, agenda, day=None):
date_format(localtime(event.start_datetime), 'DATETIME_FORMAT'),
)
elif event.recurrence_days:
event_text = _('%s: %s') % (WEEKDAYS[day].capitalize(), event_text)
event_text = _('%(weekday)s: %(event)s') % {
'weekday': WEEKDAYS[day].capitalize(),
'event': event_text,
}
return event_text