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:
Jeff Epler 2023-11-15 12:02:19 -06:00
parent f27a801b8c
commit 770d1b269f
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
2 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ pseudoxml:
.PHONY: 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
$(TRANSLATE_COMMAND) > $@