From: Ricardo Dias Date: Tue, 15 Oct 2019 12:12:06 +0000 (+0100) Subject: mgr/dashboard: home: fix fallback to default language X-Git-Tag: v15.1.0~1234^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4675116682e84e15e454a937cff8470f258cafab;p=ceph-ci.git mgr/dashboard: home: fix fallback to default language Signed-off-by: Ricardo Dias --- diff --git a/src/pybind/mgr/dashboard/controllers/home.py b/src/pybind/mgr/dashboard/controllers/home.py index 038b68d9674..df11340934c 100644 --- a/src/pybind/mgr/dashboard/controllers/home.py +++ b/src/pybind/mgr/dashboard/controllers/home.py @@ -95,7 +95,7 @@ class HomeController(BaseController): accept_lang_header = cherrypy.request.headers['Accept-Language'] langs = self._parse_accept_language(accept_lang_header) else: - langs = [DEFAULT_LANGUAGE] + langs = [DEFAULT_LANGUAGE.lower()] logger.debug("frontend language from headers: %s", langs) base_dir = self._language_dir(langs)