[pitivi] bin: Don't bother using mesonbuild/po/*.gmo



commit 084612cb6ee08b0187e98c9917188f9a7be32380
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Tue Feb 13 23:43:52 2018 +0100

    bin: Don't bother using mesonbuild/po/*.gmo
    
    Those files need to be in directories as specified in
    https://www.gnu.org/software/gettext/manual/gettext.html#Locating-Catalogs
    
    Differential Revision: https://phabricator.freedesktop.org/D1954

 bin/pitivi.in |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/bin/pitivi.in b/bin/pitivi.in
index 7886506..2ea156d 100755
--- a/bin/pitivi.in
+++ b/bin/pitivi.in
@@ -78,10 +78,8 @@ def _add_pitivi_path():
     if _in_devel():
         root = os.path.split(dir)[0]
         sys.path.append(BUILDDIR)
-        localedir = os.path.join(BUILDDIR, 'po')
     else:
         root = os.path.join(LIBDIR, 'pitivi', 'python')
-        localedir = os.path.join(DATADIR, "locale")
 
     if root not in sys.path:
         sys.path.append(root)
@@ -97,6 +95,7 @@ def _add_pitivi_path():
             sys.path.append(path)
 
     # Added for i18n
+    localedir = os.path.join(DATADIR, "locale")
     try:
         locale.setlocale(locale.LC_ALL, '')
         locale.bindtextdomain('pitivi', localedir)


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