File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -226,8 +226,9 @@ pseudoxml:
226
226
.PHONY : all-source
227
227
all-source :
228
228
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'
229
230
locale/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 ) > $@
231
232
232
233
# Historically, `make translate` updated the .pot file and ran msgmerge.
233
234
# However, this was a frequent source of merge conflicts. Weblate can perform
@@ -252,7 +253,7 @@ merge-translate:
252
253
253
254
.PHONY : check-translate
254
255
check-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
256
257
$(PYTHON ) tools/check_translations.py locale/circuitpython.pot.tmp locale/circuitpython.pot; status=$$? ; rm -f locale/circuitpython.pot.tmp; exit $$ status
257
258
258
259
.PHONY : stubs
You can’t perform that action at this time.
0 commit comments