From 1fc694e88936c44373705285b73e92a53d54b6fc Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Wed, 21 Dec 2016 18:39:15 +0100 Subject: [PATCH] Quit set_locale function if translation file doesn't exists --- src/manjaro_hello.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index c6605f4..7ad9fc4 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -125,6 +125,7 @@ class ManjaroHello(): tr.install() except OSError: print("WARNING: No translation file for '{}' locale".format(locale)) + return # Dirty code to fix an issue with gettext that can't translate strings from glade files # Redfining all translatables strings