Fix missing self

merge-requests/64/head
Hugo Posnic 2016-12-19 20:40:29 +01:00
parent 252c9dfd16
commit aed8c5bd20
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class ManjaroHello():
self.default_texts = {} self.default_texts = {}
# Choose best locale for user # Choose best locale for user
if self.preferences["locale"] not in self.locales: if self.preferences["locale"] not in self.locales:
if self.sys_locale in locales: if self.sys_locale in self.locales:
self.preferences["locale"] = self.sys_locale self.preferences["locale"] = self.sys_locale
else: else:
if self.sys_locale[:2] in self.locales: if self.sys_locale[:2] in self.locales: