Skip to content

Commit

Permalink
Notifications: Fix translation for mail body.
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Nov 2, 2023
1 parent 535790c commit eeb99a9
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/euphorie/client/notifications/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ def index(self):
)
preferences_link = f"{self.webhelpers.country_url}/preferences"

return _(
"notification_mail_text__base",
default="""\
return api.portal.translate(
_(
"notification_mail_text__base",
default="""\
Hello ${full_name},
${main_text}
Expand All @@ -55,12 +56,13 @@ def index(self):
**This is an automatically generated mail. If you do not want to receive mails from OiRA, \
you can change this [here](${preferences_link})**""",
mapping={
"full_name": full_name,
"main_text": self.main_text,
"session_links": session_links,
"preferences_link": preferences_link,
},
mapping={
"full_name": full_name,
"main_text": self.main_text,
"session_links": session_links,
"preferences_link": preferences_link,
},
)
)


Expand Down

0 comments on commit eeb99a9

Please sign in to comment.