10000 Merge pull request #1719 from dhalbert/restrict-translate-1 · mimoccc/circuitpython@2cc3159 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2cc3159

Browse files
authored
Merge pull request adafruit#1719 from dhalbert/restrict-translate-1
restrict 'make translate' to include only those directories we have ports for
2 parents 94822ee + b7a68a7 commit 2cc3159

File tree

12 files changed

+1626
-2817
lines changed

12 files changed

+1626
-2817
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(BASEOPTS)
2929
# the i18n builder cannot share the environment and doctrees with the others
3030
I18NSPHINXOPTS = $(BASEOPTS)
3131

32+
TRANSLATE_SOURCES = extmod lib main.c ports/atmel-samd ports/nrf py shared-bindings shared-module supervisor
33+
3234
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
3335

3436
help:
@@ -194,7 +196,7 @@ pseudoxml:
194196
all-source:
195197

196198
locale/circuitpython.pot: all-source
197-
find . -iname "*.c" | xargs xgettext -L C -s --add-location=file --keyword=translate -o circuitpython.pot -p locale
199+
find $(TRANSLATE_SOURCES) -iname "*.c" | xargs xgettext -L C -s --add-location=file --keyword=translate -o circuitpython.pot -p locale
198200

199201
translate: locale/circuitpython.pot
200202
for po in $(shell ls locale/*.po); do msgmerge -U $$po -s --no-fuzzy-matching --add-location=file locale/circuitpython.pot; done

0 commit comments

Comments
 (0)
0