From f5f0226b468bfba03d3a5317a881054c3a72531c Mon Sep 17 00:00:00 2001 From: kozec Date: Mon, 14 Dec 2015 12:43:32 +0100 Subject: [PATCH] Fix: locale files not found on ubuntu (or when installed to /usr/local) --- scripts/syncthing-gtk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/syncthing-gtk b/scripts/syncthing-gtk index 554ff0c2..20833080 100644 --- a/scripts/syncthing-gtk +++ b/scripts/syncthing-gtk @@ -8,11 +8,13 @@ def sigint(*a): if __name__ == "__main__": signal.signal(signal.SIGINT, sigint) path = "/usr/share/syncthing-gtk" + localedir = None # let gettext to decide if os.path.exists("/usr/local/share/syncthing-gtk"): path = "/usr/local/share/syncthing-gtk" + localedir = "/usr/local/share/locale" from syncthing_gtk.tools import init_logging, init_locale - init_locale() + init_locale(localedir) init_logging() from syncthing_gtk import App