stripe: Fix non-translatable computed string.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-03-27 16:04:20 -07:00 committed by Tim Abbott
parent 1bea42dd44
commit 2976d2c2fa
1 changed files with 7 additions and 4 deletions

View File

@ -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(): for user in realm.get_human_billing_admin_and_realm_owner_users():
with override_language(user.default_language): with override_language(user.default_language):
# Using variable to make life easier for translators if these details change. # Using variable to make life easier for translators if these details change.
plan_name = "Zulip Cloud Standard"
emoji = ":tada:"
message = _( message = _(
"Your organization's request for sponsored hosting has been approved! " "Your organization's request for sponsored hosting has been approved! "
f"You have been upgraded to {plan_name}, free of charge. {emoji}\n\n" "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), " "If you could {begin_link}list Zulip as a sponsor on your website{end_link}, "
"we would really appreciate it!" "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) internal_send_private_message(notification_bot, user, message)