aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-09-14 21:35:50 +0300
committerGitHub <noreply@github.com>2017-09-14 21:35:50 +0300
commit19e22ac88a1e55e3e53035acd1986fea42a22d9d (patch)
treeb88c00fcf808753c80907bbb467818e9fb26b755 /mesonbuild/scripts
parent6fd2fab02cf0e282483993b3df0e4388a5d23a02 (diff)
parent6f1d7e3d0ab541e8f98f7b45551fc8819618c20d (diff)
downloadmeson-19e22ac88a1e55e3e53035acd1986fea42a22d9d.zip
meson-19e22ac88a1e55e3e53035acd1986fea42a22d9d.tar.gz
meson-19e22ac88a1e55e3e53035acd1986fea42a22d9d.tar.bz2
Merge pull request #2216 from ebassi/yelp-linguas
Support LINGUAS for gnome.yelp() languages
Diffstat (limited to 'mesonbuild/scripts')
-rw-r--r--mesonbuild/scripts/yelphelper.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/scripts/yelphelper.py b/mesonbuild/scripts/yelphelper.py
index 978a870..ab99267 100644
--- a/mesonbuild/scripts/yelphelper.py
+++ b/mesonbuild/scripts/yelphelper.py
@@ -18,6 +18,7 @@ import shutil
import argparse
from .. import mlog
from . import destdir_join
+from .gettext import read_linguas
parser = argparse.ArgumentParser()
parser.add_argument('command')
@@ -108,6 +109,9 @@ def run(args):
build_subdir = os.path.join(os.environ['MESON_BUILD_ROOT'], options.subdir)
abs_sources = [os.path.join(src_subdir, 'C', source) for source in sources]
+ if not langs:
+ langs = read_linguas(src_subdir)
+
if options.command == 'pot':
build_pot(src_subdir, options.project_id, sources)
elif options.command == 'update-po':