summaryrefslogtreecommitdiff
path: root/py/builtinevex.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-08-08 18:24:49 -0700
committerScott Shawcroft <scott@tannewt.org>2018-08-09 13:29:30 -0700
commit96ebf5bc3fb455162286b9bc31e763f3c4f1c457 (patch)
tree3d06bc866bcf943a0e0ea881a1fcab9826291a1c /py/builtinevex.c
parent9da79c880e387ab05a683b67feb8f3da600d937d (diff)
Two fixes and translate more strings.
* Fix finding translations with escaped characters. * Add back \r to translations since its needed by screen.
Diffstat (limited to 'py/builtinevex.c')
-rw-r--r--py/builtinevex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/builtinevex.c b/py/builtinevex.c
index 846603f46..cb046b407 100644
--- a/py/builtinevex.c
+++ b/py/builtinevex.c
@@ -31,6 +31,8 @@
#include "py/runtime.h"
#include "py/builtin.h"
+#include "supervisor/shared/translate.h"
+
#if MICROPY_PY_BUILTINS_COMPILE
typedef struct _mp_obj_code_t {
@@ -94,7 +96,7 @@ STATIC mp_obj_t mp_builtin_compile(size_t n_args, const mp_obj_t *args) {
case MP_QSTR_exec: parse_input_kind = MP_PARSE_FILE_INPUT; break;
case MP_QSTR_eval: parse_input_kind = MP_PARSE_EVAL_INPUT; break;
default:
- mp_raise_ValueError("bad compile mode");
+ mp_raise_ValueError(translate("bad compile mode"));
}
mp_obj_code_t *code = m_new_obj(mp_obj_code_t);