From 96ebf5bc3fb455162286b9bc31e763f3c4f1c457 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 8 Aug 2018 18:24:49 -0700 Subject: Two fixes and translate more strings. * Fix finding translations with escaped characters. * Add back \r to translations since its needed by screen. --- extmod/vfs_fat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extmod') diff --git a/extmod/vfs_fat.c b/extmod/vfs_fat.c index bf58afb1e..e2982c719 100644 --- a/extmod/vfs_fat.c +++ b/extmod/vfs_fat.c @@ -40,6 +40,8 @@ #include "extmod/vfs_fat.h" #include "lib/timeutils/timeutils.h" +#include "supervisor/shared/translate.h" + #if _MAX_SS == _MIN_SS #define SECSIZE(fs) (_MIN_SS) #else @@ -421,7 +423,7 @@ STATIC mp_obj_t vfs_fat_setlabel(mp_obj_t self_in, mp_obj_t label_in) { FRESULT res = f_setlabel(&self->fatfs, label_str); if (res != FR_OK) { if(res == FR_WRITE_PROTECTED) { - mp_raise_msg(&mp_type_OSError, "Read-only filesystem"); + mp_raise_msg(&mp_type_OSError, translate("Read-only filesystem")); } mp_raise_OSError(fresult_to_errno_table[res]); } -- cgit v1.2.3