Fix english detection

merge-requests/64/head
Huluti 2017-02-05 11:22:07 +01:00
parent 111104047c
commit 649de83c14
1 changed files with 3 additions and 1 deletions

View File

@ -107,7 +107,9 @@ class ManjaroHello():
:rtype: str
"""
path = self.locale_path + "{}/LC_MESSAGES/" + self.app + ".mo"
if os.path.isfile(path.format(self.preferences["locale"])):
if self.preferences["locale"] == self.default_locale:
return self.default_locale
elif os.path.isfile(path.format(self.preferences["locale"])):
return self.preferences["locale"]
else:
sys_locale = locale.getdefaultlocale()[0]