From: Michael Tremer Date: Thu, 3 Feb 2011 21:00:16 +0000 (+0100) Subject: planet: Planet is always in English. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45c763aa0e0c0e2286066a99eecb1784e3f15083;p=ipfire.org.git planet: Planet is always in English. --- 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: