Change somes vars

merge-requests/64/head
Huluti 2016-12-11 00:38:36 +01:00
parent 94fd8f0ad3
commit 849185e23f
1 changed files with 3 additions and 3 deletions

View File

@ -105,10 +105,10 @@ class ManjaroHello():
self.window.show(); self.window.show();
def set_locale(self, locale_code): def set_locale(self, locale):
if self.preferences["locale"] != self.default_locale: if self.preferences["locale"] != self.default_locale:
locale = gettext.translation(self.app, self.locale_path, [locale_code]) tr = gettext.translation(self.app, self.locale_path, [locale])
locale.install() tr.install()
else: else:
gettext.install(self.app) gettext.install(self.app)