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:
parent
0545228fdd
commit
6f1d7e3d0a
|
@ -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…
Reference in New Issue