diff options
| author | Alexis Métaireau <alexis@notmyidea.org> | 2018-01-05 22:06:11 +0100 |
|---|---|---|
| committer | Alexis Métaireau <alexis@notmyidea.org> | 2018-01-05 22:06:11 +0100 |
| commit | 3b2e11ab6369dfa853383840dc28915b60c2d062 (patch) | |
| tree | a3f2ea4554985af7345bcab5e87dcbe2df70a683 /ihatemoney/web.py | |
| parent | 4ab8863eb20ea75fc0b3990471a01f4874735f3c (diff) | |
| download | ihatemoney-mirror-3b2e11ab6369dfa853383840dc28915b60c2d062.zip ihatemoney-mirror-3b2e11ab6369dfa853383840dc28915b60c2d062.tar.gz ihatemoney-mirror-3b2e11ab6369dfa853383840dc28915b60c2d062.tar.bz2 | |
Include all .j2 files in the packaged version.
I've also renamed the templates to *.j2 in order to make things clearer
to others. Having extensions with the name of the locale doesn't seem to
be a good practice, and would need us to add the locales in the MANIFEST
file each time we add one.
Fix #305
Diffstat (limited to 'ihatemoney/web.py')
| -rw-r--r-- | ihatemoney/web.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ihatemoney/web.py b/ihatemoney/web.py index e6df385..6b1b358 100644 --- a/ihatemoney/web.py +++ b/ihatemoney/web.py @@ -242,7 +242,7 @@ def create_project(): message_title = _("You have just created '%(project)s' " "to share your expenses", project=g.project.name) - message_body = render_template("reminder_mail.%s" % + message_body = render_template("reminder_mail.%s.j2" % get_locale().language) msg = Message(message_title, @@ -273,7 +273,7 @@ def remind_password(): project = Project.query.get(form.id.data) # send a link to reset the password - password_reminder = "password_reminder.%s" % get_locale().language + password_reminder = "password_reminder.%s.j2" % get_locale().language current_app.mail.send(Message( "password recovery", body=render_template(password_reminder, project=project), @@ -395,7 +395,7 @@ def invite(): if form.validate(): # send the email - message_body = render_template("invitation_mail.%s" % + message_body = render_template("invitation_mail.%s.j2" % get_locale().language) message_title = _("You have been invited to share your " |
