Add top level merge-translate target

This commit is contained in:
Scott Shawcroft 2020-05-20 10:49:01 -07:00
parent ba724fffb4
commit 8a42c33dca
No known key found for this signature in database
GPG Key ID: 9349BC7E64B1921E

View File

@ -210,6 +210,12 @@ locale/circuitpython.pot: all-source
translate: locale/circuitpython.pot
for po in $(shell ls locale/*.po); do msgmerge -U $$po -s --no-fuzzy-matching --add-location=file locale/circuitpython.pot; done
merge-translate:
git merge HEAD 1>&2 2> /dev/null; test $$? -eq 128
rm locale/*~ || true
git checkout --ours -- locale/*
make translate
check-translate: locale/circuitpython.pot $(wildcard locale/*.po)
$(PYTHON) tools/check_translations.py $^