]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/web/donate.py
donate: Attempt to guess people's locale
[ipfire.org.git] / src / web / donate.py
index 319dac9664aa22409b4123ab2450f074eb1aee9c..37bb2c1c03c4f29521cb7b308b50800e159fdbed 100644 (file)
@@ -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