From: Michael Tremer Date: Tue, 25 Jan 2022 10:34:55 +0000 (+0000) Subject: donate: Attempt to guess people's locale X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21f7174c6d5ca6b5eda5bc6dc3e7c595a41e97cc;p=ipfire.org.git donate: Attempt to guess people's locale Signed-off-by: Michael Tremer --- diff --git a/src/web/donate.py b/src/web/donate.py index 319dac96..37bb2c1c 100644 --- a/src/web/donate.py +++ b/src/web/donate.py @@ -51,6 +51,7 @@ class DonateHandler(auth.CacheMixin, base.BaseHandler): frequency = self.get_argument("frequency") organization = None + locale = self.get_browser_locale() # Get organization information if type == "organization": @@ -65,6 +66,7 @@ class DonateHandler(auth.CacheMixin, base.BaseHandler): "title" : self.get_argument("title"), "first_name" : self.get_argument("first_name"), "last_name" : self.get_argument("last_name"), + "locale" : locale.code, } # Collect address information