1.1 --- a/eskp.py Wed Jan 29 20:08:35 2020 +0100
1.2 +++ b/eskp.py Thu Jan 30 15:47:26 2020 +0100
1.3 @@ -165,9 +165,9 @@
1.4
1.5 @babel.localeselector
1.6 def get_locale():
1.7 - """ToDo: if translation is completed, switch to en """
1.8 - return LANGUAGE_SELECTED or request.accept_languages.best_match(LANGUAGES.keys()) or 'de'
1.9 -
1.10 + requested_language = request.accept_languages.best_match(LANGUAGES.keys())
1.11 + if requested_language in ("de", "en"):
1.12 + return requested_language or "de"
1.13
1.14 @app.route("/")
1.15 @app.route("/index")