mirror of
https://github.com/akuker/RASCSI.git
synced 2026-04-21 18:17:07 +00:00
Always assign locale in detect_locale() (#1163)
* Always assign locale in detect_locale() * Bump version of Debian used in CI builds from from buster to bullseye * Update code comment --------- Co-authored-by: nucleogenic <nr@nucleogenic.com>
This commit is contained in:
@@ -1373,12 +1373,13 @@ def healthcheck():
|
||||
def detect_locale():
|
||||
"""
|
||||
Get the detected locale to use for UI string translations.
|
||||
This requires the Flask app to have started first.
|
||||
Assign the language string to objects to be used for requests.
|
||||
"""
|
||||
if "language" not in session.keys():
|
||||
session["language"] = get_locale()
|
||||
piscsi_cmd.locale = session["language"]
|
||||
file_cmd.locale = session["language"]
|
||||
|
||||
piscsi_cmd.locale = session["language"]
|
||||
file_cmd.locale = session["language"]
|
||||
|
||||
|
||||
@APP.before_request
|
||||
|
||||
Reference in New Issue
Block a user