summaryrefslogtreecommitdiff
path: root/lib/i18n.py
diff options
context:
space:
mode:
authorrejbasket <39080670+rejbasket@users.noreply.github.com>2021-12-08 22:18:41 +0100
committerGitHub <noreply@github.com>2021-12-08 22:18:41 +0100
commit41ace3a9e53b52b4271554d7aedd88d533ee5f5e (patch)
tree83dd3887459eeb79c95177bf318598ee01514fa1 /lib/i18n.py
parent49d0f88278798a6c061ce70dd6c1aafb0b1f7a6a (diff)
add macOS and windows installer (#1352)
Diffstat (limited to 'lib/i18n.py')
-rw-r--r--lib/i18n.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/i18n.py b/lib/i18n.py
index 37972e36..204381dc 100644
--- a/lib/i18n.py
+++ b/lib/i18n.py
@@ -30,7 +30,10 @@ def _set_locale_dir():
else:
locale_dir = dirname(dirname(realpath(__file__)))
- locale_dir = os.path.join(locale_dir, 'locales')
+ if sys.platform == "darwin":
+ locale_dir = os.path.join(locale_dir, "..", 'Resources', 'locales')
+ else:
+ locale_dir = os.path.join(locale_dir, 'locales')
def localize(languages=None):