Package: gtg
Version: 0.2.4-3
Severity: normal
Tags: patch

On non-Linux architectures, creating a /usr/local/share/locale/ directory kills gtg's i18n. The attached patch fixes this bug.

--
Jakub Wilk
--- a/GTG/__init__.py
+++ b/GTG/__init__.py
@@ -53,9 +53,6 @@
 GETTEXT_DOMAIN = 'gtg'
 LOCALE_PATH = abspath(join(dirname(__file__), pardir, 'locales'))
 if not os.path.isdir(LOCALE_PATH):
-    if os.path.isdir('/usr/local/share/locale') and os.uname()[0] != 'Linux':
-        LOCALE_PATH = '/usr/local/share/locale'
-    else:
         LOCALE_PATH = '/usr/share/locale'
 languages_used = []
 lc, encoding = locale.getdefaultlocale()

Attachment: signature.asc
Description: Digital signature

Reply via email to