Commit 084612cb authored by Alexandru Băluț's avatar Alexandru Băluț

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
parent 0715cc65
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment