Fixed localization setup

This commit is contained in:
Manuel Cortez 2018-02-27 13:41:18 -06:00
parent 28b19d72e9
commit 49ed50f6cc

View File

@ -5,4 +5,6 @@ import locale
from platform_utils import paths
def setup():
gettext.install("music-dl", localedir=os.path.join(paths.app_path(), "locales"))
lang = locale.getdefaultlocale()[0]
os.environ["lang"] = lang
gettext.install("musicdl", localedir=os.path.join(paths.app_path(), "locales"))