build: don't do fuzzy matching when merging PO files against the POT file

Fuzzy strings don't contribute anything to the translations that the
users get to see.  They are useful only for translators, but translators
fetch or receive their PO files from the TP.  For nano, fuzzy strings
just bloat the distribution tarball.
This commit is contained in:
Benno Schulenberg 2019-04-14 10:42:22 +02:00
parent 9cc70d2069
commit 145bb6e01a
2 changed files with 5 additions and 2 deletions

View File

@ -17,3 +17,6 @@ COPYRIGHT_HOLDER = Free Software Foundation, Inc.
# This is the list of locale categories, beyond LC_MESSAGES, for which the
# message catalogs shall be used. It is usually empty.
EXTRA_LOCALE_CATEGORIES =
# Don't do fuzzy matching when merging the PO files against the POT file.
MSGMERGE_OPTIONS = --no-fuzzy-matching

View File

@ -21,9 +21,9 @@ fi
echo "Regenerating POT file and remerging and recompiling PO files..."
make update-po
echo "Removing the dead weight of obsolete translations..."
echo "Removing the dead weight of obsolete and fuzzy translations..."
for pofile in *.po; do
msgattrib --no-obsolete $pofile >trimmed.po || exit 4
msgattrib --no-obsolete --no-fuzzy $pofile >trimmed.po || exit 4
mv trimmed.po $pofile || exit 4
done