From 770d1b269f9b927ffcf07749634aafb3608e5718 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 15 Nov 2023 12:02:19 -0600 Subject: [PATCH] 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. --- Makefile | 2 +- locale/{synthetic.po => synthetic.pot} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename locale/{synthetic.po => synthetic.pot} (100%) diff --git a/Makefile b/Makefile index 9c94202bef..acf7ef0f81 100644 --- a/Makefile +++ b/Makefile @@ -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) > $@ diff --git a/locale/synthetic.po b/locale/synthetic.pot similarity index 100% rename from locale/synthetic.po rename to locale/synthetic.pot