Change somes vars
This commit is contained in:
parent
94fd8f0ad3
commit
849185e23f
@ -105,10 +105,10 @@ class ManjaroHello():
|
||||
|
||||
self.window.show();
|
||||
|
||||
def set_locale(self, locale_code):
|
||||
def set_locale(self, locale):
|
||||
if self.preferences["locale"] != self.default_locale:
|
||||
locale = gettext.translation(self.app, self.locale_path, [locale_code])
|
||||
locale.install()
|
||||
tr = gettext.translation(self.app, self.locale_path, [locale])
|
||||
tr.install()
|
||||
else:
|
||||
gettext.install(self.app)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user