aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-09-12 21:45:04 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-09-12 21:45:04 +0100
commit6f1d7e3d0ab541e8f98f7b45551fc8819618c20d (patch)
treeb423e628ef8dc60cadb3f4d55521bf6b53b72279 /mesonbuild
parent0545228fddf724461bd6287e6c42d67a1eedeb83 (diff)
downloadmeson-6f1d7e3d0ab541e8f98f7b45551fc8819618c20d.zip
meson-6f1d7e3d0ab541e8f98f7b45551fc8819618c20d.tar.gz
meson-6f1d7e3d0ab541e8f98f7b45551fc8819618c20d.tar.bz2
Add deprecation warning for gnome.yelp() argument
The 'languages' argument is deprecated; the LINGUAS file supercedes it as the canonical source of translations.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/modules/gnome.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 43c4881..f90f919 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -651,6 +651,11 @@ class GnomeModule(ExtensionModule):
source_str = '@@'.join(sources)
langs = mesonlib.stringlistify(kwargs.pop('languages', []))
+ if langs:
+ mlog.log(mlog.red('DEPRECATION:'), '''The "languages" argument of gnome.yelp() is deprecated.
+Use a LINGUAS file in the sources directory instead.
+This will become a hard error in the future.''')
+
media = mesonlib.stringlistify(kwargs.pop('media', []))
symlinks = kwargs.pop('symlink_media', True)