python: Convert percent formatting to .format for translated strings.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-06-15 14:22:24 -07:00
committed by Tim Abbott
parent eda396376c
commit f364d06fb5
37 changed files with 212 additions and 163 deletions

View File

@@ -174,7 +174,7 @@ def get_existing_user_errors(
if existing_user_profile.is_active:
if verbose:
msg = _('%s already has an account') % (email,)
msg = _('{email} already has an account').format(email=email)
else:
msg = _("Already has an account.")
else: