Skip to content

Commit 7127be4

Browse files
committed
Makefile: xgettext and msgmerge -s deprecated; use --sort-by-file instead
1 parent 5419c23 commit 7127be4

2 files changed

Lines changed: 2507 additions & 2504 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ pseudoxml:
237237
all-source:
238238

239239
TRANSLATE_CHECK_SUBMODULES=if ! [ -f extmod/ulab/README.md ]; then $(PYTHON) tools/ci_fetch_deps.py translate; fi
240-
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'
240+
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 --sort-by-file --add-location=file --keyword=MP_ERROR_TEXT -o - | sed -e '/"POT-Creation-Date: /d'
241241
locale/circuitpython.pot: all-source
242242
$(TRANSLATE_CHECK_SUBMODULES)
243243
$(TRANSLATE_COMMAND) > $@
@@ -255,7 +255,7 @@ translate: locale/circuitpython.pot
255255
# needed we preserve a rule to do it.
256256
.PHONY: msgmerge
257257
msgmerge:
258-
for po in $(shell ls locale/*.po); do msgmerge -U $$po -s --no-fuzzy-matching --add-location=file locale/circuitpython.pot; done
258+
for po in $(shell ls locale/*.po); do msgmerge -U $$po --sort-by-file --no-fuzzy-matching --add-location=file locale/circuitpython.pot; done
259259

260260
merge-translate:
261261
git merge HEAD 1>&2 2> /dev/null; test $$? -eq 128

0 commit comments

Comments
 (0)