Skip to content

Commit

Permalink
fix i18n for email virtual retreat
Browse files Browse the repository at this point in the history
  • Loading branch information
RignonNoel committed Jun 18, 2020
1 parent fb7b4f5 commit 3e9a72f
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions retirement/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,17 @@ def send_virtual_retreat_reminder_email(user, retreat):
'USER_LAST_NAME': user.last_name,
'USER_EMAIL': user.email,
'RETREAT_NAME': retreat.name,
'RETREAT_START_DATE': start_time.strftime('%-d %B %Y'),
'RETREAT_START_DATE': format_date(
start_time,
format='long',
locale='fr'
),
'RETREAT_START_TIME': start_time.strftime('%-Hh%M'),
'RETREAT_END_DATE': end_time.strftime('%-d %B %Y'),
'RETREAT_END_DATE': format_date(
end_time,
format='long',
locale='fr'
),
'RETREAT_END_TIME': end_time.strftime('%-Hh%M'),
'LINK_TO_BE_PREPARED': settings.LOCAL_SETTINGS[
'FRONTEND_INTEGRATION'][
Expand Down Expand Up @@ -306,9 +314,17 @@ def send_post_virtual_retreat_email(user, retreat):
'USER_LAST_NAME': user.last_name,
'USER_EMAIL': user.email,
'RETREAT_NAME': retreat.name,
'RETREAT_START_DATE': start_time.strftime('%-d %B %Y'),
'RETREAT_START_DATE': format_date(
start_time,
format='long',
locale='fr'
),
'RETREAT_START_TIME': start_time.strftime('%-Hh%M'),
'RETREAT_END_DATE': end_time.strftime('%-d %B %Y'),
'RETREAT_END_DATE': format_date(
end_time,
format='long',
locale='fr'
),
'RETREAT_END_TIME': end_time.strftime('%-Hh%M'),
'LINK_TO_REVIEW_FORM': retreat.review_url,
'LINK_TO_BE_PREPARED': settings.LOCAL_SETTINGS[
Expand Down

0 comments on commit 3e9a72f

Please sign in to comment.