diff options
| author | rejbasket <39080670+rejbasket@users.noreply.github.com> | 2021-12-08 22:18:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-08 22:18:41 +0100 |
| commit | 41ace3a9e53b52b4271554d7aedd88d533ee5f5e (patch) | |
| tree | 83dd3887459eeb79c95177bf318598ee01514fa1 /lib/i18n.py | |
| parent | 49d0f88278798a6c061ce70dd6c1aafb0b1f7a6a (diff) | |
add macOS and windows installer (#1352)
Diffstat (limited to 'lib/i18n.py')
| -rw-r--r-- | lib/i18n.py | 5 |
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): |
