summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-03-08 12:47:04 -0800
committerScott Shawcroft <scott@tannewt.org>2019-03-08 12:47:04 -0800
commit5c104c934f20166eb41d1a5d6e1de558e2aff798 (patch)
tree36b3382e9f73228adbc4ee1bffd14513ca1aa16d /Makefile
parent186e31591157892b8d467a7f086c682afc6be2e9 (diff)
Add translation file locations back.
Skip line numbers because they cause diff churn. Also, keep sorting by msgid to prevent churn from adding new files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b4d37b9d8..0c298f0ba 100644
--- a/Makefile
+++ b/Makefile
@@ -194,10 +194,10 @@ pseudoxml:
all-source:
locale/circuitpython.pot: all-source
- find . -iname "*.c" | xargs xgettext -L C -s --no-location --keyword=translate -o circuitpython.pot -p locale
+ find . -iname "*.c" | xargs xgettext -L C -s --add-location=file --keyword=translate -o circuitpython.pot -p locale
translate: locale/circuitpython.pot
- for po in $(shell ls locale/*.po); do msgmerge -U $$po -s --no-fuzzy-matching --no-location locale/circuitpython.pot; done
+ for po in $(shell ls locale/*.po); do msgmerge -U $$po -s --no-fuzzy-matching --add-location=file locale/circuitpython.pot; done
check-translate: locale/circuitpython.pot $(wildcard locale/*.po)
$(PYTHON) tools/check_translations.py $^