Skip to content

Commit d1ddce7

Browse files
authored
Merge pull request #8613 from elpekenin/bugfix/stringify
[Bugfix] Resolve #8610: concatenated strings not translatable
2 parents 97b49e4 + b4e127a commit d1ddce7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

locale/circuitpython.pot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ msgstr ""
9191
#: ports/atmel-samd/common-hal/alarm/__init__.c
9292
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
9393
#: ports/cxd56/common-hal/analogio/AnalogOut.c ports/cxd56/common-hal/rtc/RTC.c
94-
#: ports/espressif/common-hal/audiobusio/I2SOut.c
9594
#: ports/espressif/common-hal/rtc/RTC.c
9695
#: ports/mimxrt10xx/common-hal/analogio/AnalogOut.c
9796
#: ports/mimxrt10xx/common-hal/rtc/RTC.c ports/nrf/common-hal/alarm/__init__.c
@@ -1605,7 +1604,8 @@ msgstr ""
16051604

16061605
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
16071606
#: ports/raspberrypi/common-hal/audiobusio/PDMIn.c
1608-
msgid "Only 8 or 16 bit mono with "
1607+
#, c-format
1608+
msgid "Only 8 or 16 bit mono with %dx oversampling supported."
16091609
msgstr ""
16101610

16111611
#: ports/espressif/common-hal/wifi/__init__.c

ports/atmel-samd/common-hal/audiobusio/PDMIn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void common_hal_audiobusio_pdmin_construct(audiobusio_pdmin_obj_t *self,
157157
}
158158

159159
if (!(bit_depth == 16 || bit_depth == 8) || !mono || oversample != OVERSAMPLING) {
160-
mp_raise_NotImplementedError(MP_ERROR_TEXT("Only 8 or 16 bit mono with " MP_STRINGIFY(OVERSAMPLING) "x oversampling is supported."));
160+
mp_raise_NotImplementedError_varg(MP_ERROR_TEXT("Only 8 or 16 bit mono with %dx oversampling supported."), OVERSAMPLING);
161161
}
162162

163163
turn_on_i2s();

ports/raspberrypi/common-hal/audiobusio/PDMIn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void common_hal_audiobusio_pdmin_construct(audiobusio_pdmin_obj_t *self,
5757
bool mono,
5858
uint8_t oversample) {
5959
if (!(bit_depth == 16 || bit_depth == 8) || !mono || oversample != OVERSAMPLING) {
60-
mp_raise_NotImplementedError(MP_ERROR_TEXT("Only 8 or 16 bit mono with " MP_STRINGIFY(OVERSAMPLING) "x oversampling is supported."));
60+
mp_raise_NotImplementedError_varg(MP_ERROR_TEXT("Only 8 or 16 bit mono with %dx oversampling supported."), OVERSAMPLING);
6161
}
6262

6363
// Use the state machine to manage pins.

0 commit comments

Comments
 (0)