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

Fix bindtextdomain not available on MacOS

parent f2347224
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,10 @@ else:
if base is None or base[0] != '/':
base = os.path.expanduser('~/.local/share')
localedir = os.path.join(base, "locale")
locale.bindtextdomain(APP, localedir)
if hasattr(locale, 'bindtextdomain'):
locale.bindtextdomain(APP, localedir)
gettext.install(APP, localedir)
if gettext._translations:
......
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