Skip to content
Snippets Groups Projects
Commit bc24ab47 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Fix translation in flatpak build

Fixes #9138
parent d0ec9812
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,9 @@ def get_locale_dir():
path, tail = os.path.split(path)
path, tail = os.path.split(path)
localedir, tail = os.path.split(path)
elif os.path.exists('/app/share/run-as-flatpak'):
# Check if we run as flatpak
return '/app/share/locale'
else:
# fallback to user locale
base = os.getenv('XDG_DATA_HOME')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment