File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,8 +226,9 @@ pseudoxml:
226226.PHONY : all-source
227227all-source :
228228
229+ 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'
229230locale/circuitpython.pot : all-source
230- 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 ' > $@
231+ $( TRANSLATE_COMMAND ) > $@
231232
232233# Historically, `make translate` updated the .pot file and ran msgmerge.
233234# However, this was a frequent source of merge conflicts. Weblate can perform
@@ -252,7 +253,7 @@ merge-translate:
252253
253254.PHONY : check-translate
254255check-translate :
255- find $( TRANSLATE_SOURCES ) -type d \( $( TRANSLATE_SOURCES_EXC ) \) -prune -o -type f \( -iname " *.c " -o -iname " *.h " \) -print | (LC_ALL=C sort) | xgettext -f- -L C -s --add-location=file --keyword=translate --keyword=MP_ERROR_TEXT -o circuitpython.pot.tmp -p locale
256+ $( TRANSLATE_COMMAND ) > locale/ circuitpython.pot.tmp
256257 $(PYTHON ) tools/check_translations.py locale/circuitpython.pot.tmp locale/circuitpython.pot; status=$$? ; rm -f locale/circuitpython.pot.tmp; exit $$ status
257258
258259.PHONY : stubs
You can’t perform that action at this time.
0 commit comments