Files
systemd/po/meson.build
T
Luca Boccassi d3f38e09ac po: skip automated fuzzy translations when generating new po files
The fuzzy translations are always wrong, but meson's integration does
not allow skipping them. Add a tiny wrapper for 'msgmerge' to
workaround the issue and skip them when running ninja systemd-update-po
2026-05-20 14:28:49 +02:00

17 lines
607 B
Meson

# SPDX-License-Identifier: LGPL-2.1-or-later
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'))
i18n = import('i18n')
i18n.gettext(meson.project_name(),
preset : 'glib',
data_dirs : '.')
endif