From 65f53f3d860d3788cbbc11b617e3081b3cb816ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 13 Mar 2023 15:45:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20logic=20for=20language=20s?= =?UTF-8?q?election?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #4762 --- src/octoprint/server/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index b2913603b..f0da8dc83 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -1420,8 +1420,9 @@ class Server: except octoprint.access.users.UnknownUser: pass - elif ( - default_language is not None + if ( + not l10n + and default_language is not None and not default_language == "_default" and default_language in LANGUAGES ):