summaryrefslogtreecommitdiff
path: root/lib/embed
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 /lib/embed
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 'lib/embed')
-rw-r--r--lib/embed/abort_.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/embed/abort_.c b/lib/embed/abort_.c
index 2fba0de4e..3eeb42d9e 100644
--- a/lib/embed/abort_.c
+++ b/lib/embed/abort_.c
@@ -1,7 +1,9 @@
#include <py/runtime.h>
+#include "supervisor/shared/translate.h"
+
NORETURN void abort_(void);
NORETURN void abort_(void) {
- mp_raise_msg(&mp_type_RuntimeError, "abort() called");
+ mp_raise_msg(&mp_type_RuntimeError, translate("abort() called"));
}