From 45c763aa0e0c0e2286066a99eecb1784e3f15083 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 3 Feb 2011 22:00:16 +0100 Subject: [PATCH] planet: Planet is always in English. --- www/webapp/handlers_base.py | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.47.3