From 6b18a9335f34ff50d53bb67fff9e83ed5f10df14 Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Sat, 17 Dec 2016 14:37:41 +0100 Subject: [PATCH] Improve locale detection --- src/manjaro-hello.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/manjaro-hello.py b/src/manjaro-hello.py index b8b36b2..b70c60e 100644 --- a/src/manjaro-hello.py +++ b/src/manjaro-hello.py @@ -74,7 +74,10 @@ class ManjaroHello(): if self.sys_locale in locales: self.preferences["locale"] = self.sys_locale else: - self.preferences["locale"] = self.default_locale + if self.sys_locale[:2] in locales: + self.preferences["locale"] = self.sys_locale[:2] + else: + self.preferences["locale"] = self.default_locale # Select current locale in languages menu self.builder.get_object("languages").set_active_id(self.preferences["locale"]);