[jhbuild/pre-3-cleanup] i18n: fix the gettext localedir



commit 2b7f83554fed61f75e4d7f1a10d161a200f7e31a
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Sat Sep 21 23:23:22 2019 +0200

    i18n: fix the gettext localedir
    
    Not sure why it was looking in jhuild/../mo, but that's not where we
    install translations into.
    
    This should make them work again.

 jhbuild/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/jhbuild/main.py b/jhbuild/main.py
index a234f8d7..8c045d47 100644
--- a/jhbuild/main.py
+++ b/jhbuild/main.py
@@ -49,7 +49,7 @@ def print_help(parser):
     parser.exit()
 
 def main(args):
-    localedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'mo'))
+    localedir = os.path.join(DATADIR, 'locale')
     if not os.path.exists(localedir):
         localedir = None
     gettext.install('jhbuild', localedir=localedir, unicode=True)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]