Skip to content

Commit 8e23a55

Browse files
authored
Merge pull request #8617 from jepler/fix-weblate-synthetic-po
Fix weblate synthetic po
2 parents 4d93849 + 770d1b2 commit 8e23a55

File tree

3 files changed

+3
-31
lines changed

3 files changed

+3
-31
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,9 @@ pseudoxml:
226226
.PHONY: all-source
227227
all-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.pot -f- -L C -s --add-location=file --keyword=MP_ERROR_TEXT -o - | sed -e '/"POT-Creation-Date: /d'
229230
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) > $@
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
254255
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
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

locale/circuitpython.pot

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -77,36 +77,12 @@ msgstr ""
7777
msgid "%02X"
7878
msgstr ""
7979

80-
#: shared-module/os/getenv.c
81-
#, c-format
82-
msgid "%S"
83-
msgstr ""
84-
8580
#: shared-bindings/rgbmatrix/RGBMatrix.c
8681
#, c-format
8782
msgid ""
8883
"%d address pins, %d rgb pins and %d tiles indicate a height of %d, not %d"
8984
msgstr ""
9085

91-
#: ports/atmel-samd/common-hal/alarm/__init__.c
92-
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
93-
#: ports/cxd56/common-hal/analogio/AnalogOut.c ports/cxd56/common-hal/rtc/RTC.c
94-
#: ports/espressif/common-hal/rtc/RTC.c
95-
#: ports/mimxrt10xx/common-hal/analogio/AnalogOut.c
96-
#: ports/mimxrt10xx/common-hal/rtc/RTC.c ports/nrf/common-hal/alarm/__init__.c
97-
#: ports/nrf/common-hal/analogio/AnalogOut.c
98-
#: ports/nrf/common-hal/audiobusio/I2SOut.c ports/nrf/common-hal/rtc/RTC.c
99-
#: ports/raspberrypi/common-hal/alarm/__init__.c
100-
#: ports/raspberrypi/common-hal/analogio/AnalogOut.c
101-
#: ports/raspberrypi/common-hal/audiobusio/I2SOut.c
102-
#: ports/raspberrypi/common-hal/rtc/RTC.c ports/stm/common-hal/alarm/__init__.c
103-
#: ports/stm/common-hal/canio/Listener.c ports/stm/common-hal/rtc/RTC.c
104-
#: shared-bindings/audiobusio/I2SOut.c shared-bindings/audiobusio/PDMIn.c
105-
#: shared-bindings/keypad/KeyMatrix.c shared-bindings/keypad/Keys.c
106-
#: shared-bindings/keypad/ShiftRegisterKeys.c
107-
msgid "%q"
108-
msgstr ""
109-
11086
#: shared-bindings/microcontroller/Pin.c
11187
msgid "%q and %q contain duplicate pins"
11288
msgstr ""
@@ -290,11 +266,6 @@ msgstr ""
290266
msgid "%q[%u] waits on input outside of count"
291267
msgstr ""
292268

293-
#: py/runtime.c
294-
#, c-format
295-
msgid "%s"
296-
msgstr ""
297-
298269
#: ports/espressif/common-hal/espidf/__init__.c
299270
#, c-format
300271
msgid "%s error 0x%x"
File renamed without changes.

0 commit comments

Comments
 (0)