With find_program, meson verbosely reports the detection of the file,
which we don't need since it's part of the repo and always present.
if want_translations
# The msgmerge invocation hidden behind i18n.gettext()'s update-po target inserts auto-guessed
# "fuzzy" translations for new strings, which are almost always wrong, use a wrapper to skip it.
- meson.override_find_program(
- 'msgmerge',
- find_program('../tools/msgmerge-no-fuzzy.py'))
+ meson.override_find_program('msgmerge', msgmerge_no_fuzzy_py)
i18n = import('i18n')
i18n.gettext(meson.project_name(),
meson_build_sh = files('meson-build.sh')
meson_extract_unit_files_py = files('meson-extract-unit-files.py')
meson_render_jinja2_py = files('meson-render-jinja2.py')
+msgmerge_no_fuzzy_py = files('msgmerge-no-fuzzy.py')
sync_docs_py = files('sync-docs.py')
update_dbus_docs_py = files('update-dbus-docs.py')
update_hwdb_autosuspend_sh = files('update-hwdb-autosuspend.sh')