Fix translation

This commit is contained in:
Hugo Posnic
2016-12-18 19:51:28 +01:00
parent 0046c87aac
commit 8e3f01103d
2 changed files with 129 additions and 5 deletions
+2 -5
View File
@@ -113,11 +113,8 @@ class ManjaroHello():
:param locale: locale to use
:type locale: str
"""
if self.preferences["locale"] != self.default_locale:
tr = gettext.translation(self.app, self.locale_path, [locale])
tr.install()
else:
gettext.install(self.app)
tr = gettext.translation(self.app, self.locale_path, [locale])
tr.install()
# Dirty code to fix an issue with gettext that can't translate strings from glade files
# Redfining all translatables strings