Files
systemd/tools/msgmerge-no-fuzzy.py
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
427 B
Python
Executable File

#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-2.1-or-later
"""
Fuzzy translations are always bogus, but the meson integration doesn't allow overriding. With this wrapper
we can skip them.
"""
import os
import shutil
import sys
msgmerge = shutil.which('msgmerge')
if msgmerge is None:
sys.exit('msgmerge-no-fuzzy: msgmerge not found in PATH')
os.execv(msgmerge, [msgmerge, '--no-fuzzy-matching', *sys.argv[1:]])