HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

tools/msgmerge-no-fuzzy.py

Git blob: a9171db695ffa338a1a34ad5329389fe75247496

Lines 1–17 of 17

#!/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:]])