From 849185e23f05899b67f4facd73fed1d8e18cd3af Mon Sep 17 00:00:00 2001 From: Huluti Date: Sun, 11 Dec 2016 00:38:36 +0100 Subject: [PATCH] Change somes vars --- src/manjaro-hello.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/manjaro-hello.py b/src/manjaro-hello.py index 2c178d5..74b9c14 100644 --- a/src/manjaro-hello.py +++ b/src/manjaro-hello.py @@ -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)