X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=www%2Fwebapp%2Fhandlers_base.py;fp=www%2Fwebapp%2Fhandlers_base.py;h=84316ace67d2e1d9e9fc4304d4fe80b10118d0cd;hb=45c763aa0e0c0e2286066a99eecb1784e3f15083;hp=2f4c4b6726ecbe55a175c012b7f37f29116b751d;hpb=3d540c40eebfb5303d67b45a99911a03c093a553;p=ipfire.org.git diff --git a/www/webapp/handlers_base.py b/www/webapp/handlers_base.py index 2f4c4b67..84316ace 100644 --- a/www/webapp/handlers_base.py +++ b/www/webapp/handlers_base.py @@ -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: