]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
po: "detect" msgmerge-nofuzzy using file()
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Sun, 24 May 2026 11:28:58 +0000 (13:28 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 24 May 2026 12:26:56 +0000 (13:26 +0100)
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.

po/meson.build
tools/meson.build

index 682c16ab1182e67643db8ca3a0d2eb6749687b78..a1d3a5edc128cbf08624f2aa5dc0029fbf6807d2 100644 (file)
@@ -5,9 +5,7 @@ want_translations = get_option('translations')
 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(),
index e8b3133d9c8cafe51599fce2e00304713ed5db42..49ceac9ca6ce1bde9ab8b3f5e38b52f7a98ed57d 100644 (file)
@@ -17,6 +17,7 @@ make_man_index_py              = files('make-man-index.py')
 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')