Fix translation in flatpak build

Fixes #9138
This commit is contained in:
Philipp Hörist 2018-05-23 08:37:54 +02:00
parent d0ec9812a6
commit bc24ab470d

View file

@ -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')