From 017638cc296d14043fe5d2ba1cfd8308ce61fe66 Mon Sep 17 00:00:00 2001 From: Martin Gross Date: Tue, 31 May 2022 16:15:29 +0200 Subject: [PATCH] PPv2: Only transmit the user's main language without any possible "-informal"-tags --- src/pretix/plugins/paypal2/payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/paypal2/payment.py b/src/pretix/plugins/paypal2/payment.py index 929ce2a092..fda29a5a9f 100644 --- a/src/pretix/plugins/paypal2/payment.py +++ b/src/pretix/plugins/paypal2/payment.py @@ -553,7 +553,7 @@ class PaypalMethod(BasePaymentProvider): # 'shipping': {}, # Include Shipping information? }], 'application_context': { - 'locale': request.LANGUAGE_CODE, + 'locale': request.LANGUAGE_CODE.split('-')[0], 'shipping_preference': 'NO_SHIPPING', # 'SET_PROVIDED_ADDRESS', # Do not set on non-ship order? 'user_action': 'CONTINUE', 'return_url': build_absolute_uri(request.event, 'plugins:paypal2:return', kwargs=kwargs),