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.

stripe: Fix non-translatable computed string.

Anders Kaseorg2976d2c2fa4b
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index 4311db0cbf6..97a6a4e58d8 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -1004,13 +1004,16 @@ def approve_sponsorship(realm: Realm, *, acting_user: Optional[UserProfile]) ->
for user in realm.get_human_billing_admin_and_realm_owner_users():
with override_language(user.default_language):
# Using variable to make life easier for translators if these details change.
- plan_name = "Zulip Cloud Standard"
- emoji = ":tada:"
message = _(
"Your organization's request for sponsored hosting has been approved! "
- f"You have been upgraded to {plan_name}, free of charge. {emoji}\n\n"
- "If you could [list Zulip as a sponsor on your website](/help/linking-to-zulip-website), "
+ "You have been upgraded to {plan_name}, free of charge. {emoji}\n\n"
+ "If you could {begin_link}list Zulip as a sponsor on your website{end_link}, "
"we would really appreciate it!"
+ ).format(
+ plan_name="Zulip Cloud Standard",
+ emoji=":tada:",
+ begin_link="[",
+ end_link="](/help/linking-to-zulip-website)",
)
internal_send_private_message(notification_bot, user, message)