From 6f1d7e3d0ab541e8f98f7b45551fc8819618c20d Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 12 Sep 2017 21:45:04 +0100 Subject: [PATCH] Add deprecation warning for gnome.yelp() argument The 'languages' argument is deprecated; the LINGUAS file supercedes it as the canonical source of translations. --- mesonbuild/modules/gnome.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 43c488196..f90f91928 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)