fs = import('fs') help_id = 'mate-fish' help_sources = ['index.docbook', 'legal.xml'] help_media = ['figures/fish_applet.png'] # discover the locale directories holding a .po translation file langs = [] foreach entry : run_command('ls', '-1', meson.current_source_dir(), check: true).stdout().strip().split('\n') entry_path = join_paths(meson.current_source_dir(), entry) if entry != 'C' and fs.is_dir(entry_path) and fs.exists(join_paths(entry_path, entry + '.po')) langs += entry endif endforeach gnome.yelp(help_id, sources: help_sources, media: help_media, languages: langs, symlink_media: true, )