Skip to content

Commit 8a42c33

Browse files
committed
Add top level merge-translate target
1 parent ba724ff commit 8a42c33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ locale/circuitpython.pot: all-source
210210
translate: locale/circuitpython.pot
211211
for po in $(shell ls locale/*.po); do msgmerge -U $$po -s --no-fuzzy-matching --add-location=file locale/circuitpython.pot; done
212212

213+
merge-translate:
214+
git merge HEAD 1>&2 2> /dev/null; test $$? -eq 128
215+
rm locale/*~ || true
216+
git checkout --ours -- locale/*
217+
make translate
218+
213219
check-translate: locale/circuitpython.pot $(wildcard locale/*.po)
214220
$(PYTHON) tools/check_translations.py $^
215221

0 commit comments

Comments
 (0)