Fix english detection
This commit is contained in:
parent
111104047c
commit
649de83c14
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user