From 2976d2c2fa4bdf912980a5c459d8478f01773861 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 27 Mar 2023 16:04:20 -0700 Subject: [PATCH] stripe: Fix non-translatable computed string. Signed-off-by: Anders Kaseorg --- corporate/lib/stripe.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py index 4311db0cbf..97a6a4e58d 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)