diff --git a/src/i18n.py b/src/i18n.py index 8803f6c..a67bc91 100644 --- a/src/i18n.py +++ b/src/i18n.py @@ -2,9 +2,13 @@ import os import gettext import locale +import sys from platform_utils import paths def setup(): lang = locale.getdefaultlocale()[0] os.environ["lang"] = lang - gettext.install("musicdl", localedir=os.path.join(paths.app_path(), "locales")) \ No newline at end of file + if sys.version[0] == "3": + gettext.install("musicdl", localedir=os.path.join(paths.app_path(), "locales")) + else: + gettext.install("musicdl", localedir=os.path.join(paths.app_path(), "locales"), unicode=True) \ No newline at end of file