Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

python: Remove unused arguments for translated format strings.

Anders Kaseorgdb6323b2c4f1
diff --git a/corporate/views/billing_page.py b/corporate/views/billing_page.py
index 2cf85d1f781..01f8215eb0f 100644
--- a/corporate/views/billing_page.py
+++ b/corporate/views/billing_page.py
@@ -233,9 +233,7 @@ def update_plan(
)
if last_ledger_entry.licenses > licenses:
raise JsonableError(
- _("You cannot decrease the licenses in the current billing period.").format(
- licenses=licenses
- )
+ _("You cannot decrease the licenses in the current billing period.")
)
validate_licenses(
plan.charge_automatically,
diff --git a/zerver/forms.py b/zerver/forms.py
index c9c3ea044a2..16d90d00288 100644
--- a/zerver/forms.py
+++ b/zerver/forms.py
@@ -262,7 +262,7 @@ class HomepageForm(forms.Form):
_(
"Your email address, {email}, is not in one of the domains "
"that are allowed to register for accounts in this organization."
- ).format(string_id=realm.string_id, email=email)
+ ).format(email=email)
)
except DisposableEmailError:
raise ValidationError(_("Please use your real email address."))