From af6cf5fd1d1cf7b88633126ead6a7ebf41b81970 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Thu, 3 Nov 2022 15:34:05 +0100 Subject: [PATCH] Fix language selector without session --- core/admin/mailu/__init__.py | 1 + core/admin/mailu/sso/templates/base_sso.html | 4 ++-- core/admin/mailu/ui/templates/base.html | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/admin/mailu/__init__.py b/core/admin/mailu/__init__.py index 5bb40447..3b88024f 100644 --- a/core/admin/mailu/__init__.py +++ b/core/admin/mailu/__init__.py @@ -57,6 +57,7 @@ def create_app_from_config(config): return dict( signup_domains= signup_domains, config = app.config, + get_locale = utils.get_locale, ) # Jinja filters diff --git a/core/admin/mailu/sso/templates/base_sso.html b/core/admin/mailu/sso/templates/base_sso.html index 259e5841..6d196d6a 100644 --- a/core/admin/mailu/sso/templates/base_sso.html +++ b/core/admin/mailu/sso/templates/base_sso.html @@ -1,7 +1,7 @@ {%- import "macros.html" as macros %} {%- import "bootstrap/utils.html" as utils %} - + @@ -35,7 +35,7 @@