Add deprecation warning for gnome.yelp() argument

The 'languages' argument is deprecated; the LINGUAS file supercedes it
as the canonical source of translations.
pull/2216/head
Emmanuele Bassi 8 years ago
parent 0545228fdd
commit 6f1d7e3d0a
  1. 5
      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)

Loading…
Cancel
Save