From bc24ab470d87896425684dbee543e9563564a177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 23 May 2018 08:37:54 +0200 Subject: [PATCH] Fix translation in flatpak build Fixes #9138 --- gajim/common/i18n.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gajim/common/i18n.py b/gajim/common/i18n.py index e5ce955d6..87f983f25 100644 --- a/gajim/common/i18n.py +++ b/gajim/common/i18n.py @@ -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')