From 649de83c142e2a275dd068edc870967ecc89baea Mon Sep 17 00:00:00 2001 From: Huluti Date: Sun, 5 Feb 2017 11:22:07 +0100 Subject: [PATCH] Fix english detection --- src/manjaro_hello.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index d7c8075..abe56f0 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -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]