Skip to content

Commit

Permalink
Fix for translation string with parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
lingthio committed Oct 2, 2014
1 parent bdb3173 commit 893a724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ def login():
else:
confirmed_at = user_email.confirmed_at if user_email else user.confirmed_at
if user_manager.enable_confirm_email and not confirmed_at:
# TODO: Use string.format() so that it can be translated
flash(_('Your email address has not yet been confirmed. Check your email Inbox and Spam folders for the confirmation email or <a href="'+url_for('user.resend_confirm_email')+'">Re-send confirmation email</a>.'), 'error')
url = url_for('user.resend_confirm_email')
flash(_('Your email address has not yet been confirmed. Check your email Inbox and Spam folders for the confirmation email or <a href="%(url)s">Re-send confirmation email</a>.', url=url), 'error')
else:
flash(_('Your account has been disabled.'), 'error')
return redirect(url_for('user.home'))
Expand Down

0 comments on commit 893a724

Please sign in to comment.