]> git.ipfire.org Git - ipfire.org.git/blobdiff - www/webapp/handlers_base.py
planet: Planet is always in English.
[ipfire.org.git] / www / webapp / handlers_base.py
index 2f4c4b6726ecbe55a175c012b7f37f29116b751d..84316ace67d2e1d9e9fc4304d4fe80b10118d0cd 100644 (file)
@@ -29,6 +29,10 @@ class BaseHandler(tornado.web.RequestHandler):
 
                                return l
 
+               # The planet is always in english.
+               if self.request.host == "planet.ipfire.org":
+                       return DEFAULT_LOCALE
+
                # If no locale was provided we guess what the browser sends us
                locale = self.get_browser_locale()
                if locale in ALLOWED_LOCALES: