mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
python: Convert translated positional {} fields to {named} fields.
Translators benefit from the extra information in the field names, and need the reordering freedom that isn’t available with multiple positional fields. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
db6323b2c4
commit
143baa4243
@@ -494,10 +494,10 @@ class OurAuthenticationForm(AuthenticationForm):
|
||||
secs_to_freedom = int(e.secs_to_freedom)
|
||||
error_message = _(
|
||||
"You're making too many attempts to sign in."
|
||||
" Try again in {} seconds or contact your organization administrator"
|
||||
" Try again in {seconds} seconds or contact your organization administrator"
|
||||
" for help."
|
||||
)
|
||||
raise ValidationError(error_message.format(secs_to_freedom))
|
||||
raise ValidationError(error_message.format(seconds=secs_to_freedom))
|
||||
|
||||
if return_data.get("inactive_realm"):
|
||||
raise AssertionError("Programming error: inactive realm in authentication form")
|
||||
|
||||
Reference in New Issue
Block a user