Skip to content

Commit

Permalink
Fix: locale files not found on ubuntu (or when installed to /usr/local)
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Dec 14, 2015
1 parent 8fc0548 commit f5f0226
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/syncthing-gtk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5f0226

Please sign in to comment.