Add deprecation warning for gnome.yelp() argument

The 'languages' argument is deprecated; the LINGUAS file supercedes it
as the canonical source of translations.
This commit is contained in:
Emmanuele Bassi 2017-09-12 21:45:04 +01:00
parent 0545228fdd
commit 6f1d7e3d0a
1 changed files with 5 additions and 0 deletions

View File

@ -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)