From 21049e7d36f44b1d331ce3ccab68d270404eec68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Mon, 17 Jan 2022 16:38:56 +0100 Subject: [PATCH] Remove useless use of lazy The translation context is set up in the functions, so we don't need to use a lazy string there. --- snikket_web/invite.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/snikket_web/invite.py b/snikket_web/invite.py index 1ccda08..db33d32 100644 --- a/snikket_web/invite.py +++ b/snikket_web/invite.py @@ -30,9 +30,6 @@ INVITE_SESSION_JID = "invite-session-jid" MAX_IMPORT_DATA_SIZE = 5*1024*1024 # 5MB SUPPORTED_IMPORT_TYPES = ["application/xml", "text/xml"] -EIMPORTTOOBIG = _l("The account data you tried to import is too large to" - "upload. Please contact your Snikket operator.") - # https://play.google.com/store/apps/details?id=org.snikket.android&referrer={uri|urlescape}&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1 @@ -286,8 +283,11 @@ async def success() -> str: migration_success=False, form=form, max_import_size=MAX_IMPORT_DATA_SIZE, - import_too_big_warning_header=_l("Error"), - import_too_big_warning=EIMPORTTOOBIG, + import_too_big_warning_header=gettext("Error"), + import_too_big_warning=gettext( + "The account data you tried to import is too large to upload. " + "Please contact your Snikket operator." + ), )