The very name "synthetic.po" caused problems with weblate
.. because it would add every term from circuitpython.pot to it; then in turn, "make translate" would remove almost every message from circuitpython.pot, and then give a pre-commit error. Hopefully "synthetic.pot" won't get the same treatment. This may require manual intervention on weblate to resolve a merge conflict and undo weblate's chyange to synthetic.po/.pot.
This commit is contained in:
parent
f27a801b8c
commit
770d1b269f
2
Makefile
2
Makefile
@ -226,7 +226,7 @@ pseudoxml:
|
|||||||
.PHONY: all-source
|
.PHONY: all-source
|
||||||
all-source:
|
all-source:
|
||||||
|
|
||||||
TRANSLATE_COMMAND=find $(TRANSLATE_SOURCES) -type d \( $(TRANSLATE_SOURCES_EXC) \) -prune -o -type f \( -iname "*.c" -o -iname "*.h" \) -print | (LC_ALL=C sort) | xgettext -x locale/synthetic.po -f- -L C -s --add-location=file --keyword=MP_ERROR_TEXT -o - | sed -e '/"POT-Creation-Date: /d'
|
TRANSLATE_COMMAND=find $(TRANSLATE_SOURCES) -type d \( $(TRANSLATE_SOURCES_EXC) \) -prune -o -type f \( -iname "*.c" -o -iname "*.h" \) -print | (LC_ALL=C sort) | xgettext -x locale/synthetic.pot -f- -L C -s --add-location=file --keyword=MP_ERROR_TEXT -o - | sed -e '/"POT-Creation-Date: /d'
|
||||||
locale/circuitpython.pot: all-source
|
locale/circuitpython.pot: all-source
|
||||||
$(TRANSLATE_COMMAND) > $@
|
$(TRANSLATE_COMMAND) > $@
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user