revert localization of repl messages
This commit is contained in:
parent
119cc8488b
commit
86221b9895
@ -370,7 +370,7 @@ STATIC int pyexec_raw_repl_process_char(int c) {
|
|||||||
}
|
}
|
||||||
goto reset;
|
goto reset;
|
||||||
}
|
}
|
||||||
serial_write_compressed(translate("raw REPL; CTRL-B to exit\n"));
|
mp_hal_stdout_tx_str("raw REPL; CTRL-B to exit\r\n");
|
||||||
goto reset;
|
goto reset;
|
||||||
} else if (c == CHAR_CTRL_B) {
|
} else if (c == CHAR_CTRL_B) {
|
||||||
// change to friendly REPL
|
// change to friendly REPL
|
||||||
@ -469,7 +469,7 @@ STATIC int pyexec_friendly_repl_process_char(int c) {
|
|||||||
return PYEXEC_FORCED_EXIT;
|
return PYEXEC_FORCED_EXIT;
|
||||||
} else if (ret == CHAR_CTRL_E) {
|
} else if (ret == CHAR_CTRL_E) {
|
||||||
// paste mode
|
// paste mode
|
||||||
serial_write_compressed(translate("\npaste mode; Ctrl-C to cancel, Ctrl-D to finish\n=== "));
|
mp_hal_stdout_tx_str("\r\npaste mode; Ctrl-C to cancel, Ctrl-D to finish\r\n=== ");
|
||||||
vstr_reset(MP_STATE_VM(repl_line));
|
vstr_reset(MP_STATE_VM(repl_line));
|
||||||
repl.paste_mode = true;
|
repl.paste_mode = true;
|
||||||
return 0;
|
return 0;
|
||||||
@ -545,7 +545,7 @@ int pyexec_raw_repl(void) {
|
|||||||
vstr_init(&line, 32);
|
vstr_init(&line, 32);
|
||||||
|
|
||||||
raw_repl_reset:
|
raw_repl_reset:
|
||||||
serial_write_compressed(translate("raw REPL; CTRL-B to exit\n"));
|
mp_hal_stdout_tx_str("raw REPL; CTRL-B to exit\r\n");
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
vstr_reset(&line);
|
vstr_reset(&line);
|
||||||
|
@ -35,13 +35,6 @@ msgid ""
|
|||||||
"https://github.com/adafruit/circuitpython/issues\n"
|
"https://github.com/adafruit/circuitpython/issues\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/utils/pyexec.c
|
|
||||||
msgid ""
|
|
||||||
"\n"
|
|
||||||
"paste mode; Ctrl-C to cancel, Ctrl-D to finish\n"
|
|
||||||
"=== "
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: py/obj.c
|
#: py/obj.c
|
||||||
msgid " File \"%q\""
|
msgid " File \"%q\""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -400,6 +393,9 @@ msgstr ""
|
|||||||
msgid "All UART peripherals are in use"
|
msgid "All UART peripherals are in use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/countio/Counter.c
|
||||||
|
#: ports/nrf/common-hal/pulseio/PulseIn.c
|
||||||
|
#: ports/nrf/common-hal/rotaryio/IncrementalEncoder.c
|
||||||
#: shared-bindings/pwmio/PWMOut.c
|
#: shared-bindings/pwmio/PWMOut.c
|
||||||
msgid "All channels in use"
|
msgid "All channels in use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -623,10 +619,10 @@ msgstr ""
|
|||||||
msgid "Buffer too short by %d bytes"
|
msgid "Buffer too short by %d bytes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/displayio/ParallelBus.c
|
#: ports/atmel-samd/common-hal/paralleldisplay/ParallelBus.c
|
||||||
#: ports/esp32s2/common-hal/displayio/ParallelBus.c
|
#: ports/esp32s2/common-hal/paralleldisplay/ParallelBus.c
|
||||||
#: ports/nrf/common-hal/displayio/ParallelBus.c
|
#: ports/nrf/common-hal/paralleldisplay/ParallelBus.c
|
||||||
#: ports/raspberrypi/common-hal/displayio/ParallelBus.c
|
#: ports/raspberrypi/common-hal/paralleldisplay/ParallelBus.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Bus pin %d is already in use"
|
msgid "Bus pin %d is already in use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -786,7 +782,7 @@ msgid "Column entry must be digitalio.DigitalInOut"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||||
#: shared-bindings/displayio/ParallelBus.c
|
#: shared-bindings/paralleldisplay/ParallelBus.c
|
||||||
msgid "Command must be an int between 0 and 255"
|
msgid "Command must be an int between 0 and 255"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -879,12 +875,12 @@ msgstr ""
|
|||||||
msgid "DAC already in use"
|
msgid "DAC already in use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/displayio/ParallelBus.c
|
#: ports/atmel-samd/common-hal/paralleldisplay/ParallelBus.c
|
||||||
#: ports/nrf/common-hal/displayio/ParallelBus.c
|
#: ports/nrf/common-hal/paralleldisplay/ParallelBus.c
|
||||||
msgid "Data 0 pin must be byte aligned"
|
msgid "Data 0 pin must be byte aligned"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/esp32s2/common-hal/displayio/ParallelBus.c
|
#: ports/esp32s2/common-hal/paralleldisplay/ParallelBus.c
|
||||||
msgid "Data 0 pin must be byte aligned."
|
msgid "Data 0 pin must be byte aligned."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1828,11 +1824,6 @@ msgstr ""
|
|||||||
msgid "PWM slice channel A already in use"
|
msgid "PWM slice channel A already in use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/mimxrt10xx/common-hal/displayio/ParallelBus.c
|
|
||||||
#: ports/stm/common-hal/displayio/ParallelBus.c
|
|
||||||
msgid "ParallelBus not yet supported"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ports/esp32s2/common-hal/audiobusio/__init__.c
|
#: ports/esp32s2/common-hal/audiobusio/__init__.c
|
||||||
msgid "Peripheral in use"
|
msgid "Peripheral in use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -3655,7 +3646,7 @@ msgid "no module named '%q'"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||||
#: shared-bindings/displayio/ParallelBus.c
|
#: shared-bindings/paralleldisplay/ParallelBus.c
|
||||||
msgid "no reset pin available"
|
msgid "no reset pin available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -3928,6 +3919,7 @@ msgstr ""
|
|||||||
#: ports/esp32s2/boards/atmegazero_esp32s2/mpconfigboard.h
|
#: ports/esp32s2/boards/atmegazero_esp32s2/mpconfigboard.h
|
||||||
#: ports/esp32s2/boards/crumpspace_crumps2/mpconfigboard.h
|
#: ports/esp32s2/boards/crumpspace_crumps2/mpconfigboard.h
|
||||||
#: ports/esp32s2/boards/electroniccats_bastwifi/mpconfigboard.h
|
#: ports/esp32s2/boards/electroniccats_bastwifi/mpconfigboard.h
|
||||||
|
#: ports/esp32s2/boards/espressif_hmi_devkit_1/mpconfigboard.h
|
||||||
#: ports/esp32s2/boards/espressif_kaluga_1.3/mpconfigboard.h
|
#: ports/esp32s2/boards/espressif_kaluga_1.3/mpconfigboard.h
|
||||||
#: ports/esp32s2/boards/espressif_kaluga_1/mpconfigboard.h
|
#: ports/esp32s2/boards/espressif_kaluga_1/mpconfigboard.h
|
||||||
#: ports/esp32s2/boards/espressif_saola_1_wroom/mpconfigboard.h
|
#: ports/esp32s2/boards/espressif_saola_1_wroom/mpconfigboard.h
|
||||||
@ -3948,6 +3940,7 @@ msgstr ""
|
|||||||
#: ports/esp32s2/boards/targett_module_clip_wroom/mpconfigboard.h
|
#: ports/esp32s2/boards/targett_module_clip_wroom/mpconfigboard.h
|
||||||
#: ports/esp32s2/boards/targett_module_clip_wrover/mpconfigboard.h
|
#: ports/esp32s2/boards/targett_module_clip_wrover/mpconfigboard.h
|
||||||
#: ports/esp32s2/boards/unexpectedmaker_feathers2/mpconfigboard.h
|
#: ports/esp32s2/boards/unexpectedmaker_feathers2/mpconfigboard.h
|
||||||
|
#: ports/esp32s2/boards/unexpectedmaker_feathers2_neo/mpconfigboard.h
|
||||||
#: ports/esp32s2/boards/unexpectedmaker_feathers2_prerelease/mpconfigboard.h
|
#: ports/esp32s2/boards/unexpectedmaker_feathers2_prerelease/mpconfigboard.h
|
||||||
#: ports/esp32s2/boards/unexpectedmaker_tinys2/mpconfigboard.h
|
#: ports/esp32s2/boards/unexpectedmaker_tinys2/mpconfigboard.h
|
||||||
msgid "pressing boot button at start up.\n"
|
msgid "pressing boot button at start up.\n"
|
||||||
@ -3981,10 +3974,6 @@ msgstr ""
|
|||||||
msgid "queue overflow"
|
msgid "queue overflow"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/utils/pyexec.c
|
|
||||||
msgid "raw REPL; CTRL-B to exit\n"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: py/parse.c
|
#: py/parse.c
|
||||||
msgid "raw f-strings are not implemented"
|
msgid "raw f-strings are not implemented"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -131,7 +131,7 @@ STATIC void mp_help_print_modules(void) {
|
|||||||
|
|
||||||
#if MICROPY_ENABLE_EXTERNAL_IMPORT
|
#if MICROPY_ENABLE_EXTERNAL_IMPORT
|
||||||
// let the user know there may be other modules available from the filesystem
|
// let the user know there may be other modules available from the filesystem
|
||||||
mp_printf(MP_PYTHON_PRINTER, "%S", translate("Plus any modules on the filesystem\n"));
|
serial_write_compressed(translate("Plus any modules on the filesystem\n"));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user