From 5833af2489f01f5a3720c3e0e83dad80079b961c Mon Sep 17 00:00:00 2001 From: jmclaus Date: Fri, 13 Jun 2014 14:01:09 +0200 Subject: [PATCH] MatlabInput: i18n --- common/lib/capa/capa/inputtypes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/lib/capa/capa/inputtypes.py b/common/lib/capa/capa/inputtypes.py index bbae259403..c9d60fa875 100644 --- a/common/lib/capa/capa/inputtypes.py +++ b/common/lib/capa/capa/inputtypes.py @@ -924,9 +924,10 @@ class MatlabInput(CodeInput): dict - 'success' - whether or not we successfully queued this submission - 'message' - message to be rendered in case of error """ + _ = self.capa_system.i18n.ugettext # only send data if xqueue exists if self.capa_system.xqueue is None: - return {'success': False, 'message': 'Cannot connect to the queue'} + return {'success': False, 'message': _('Cannot connect to the queue')} # pull relevant info out of get response = data['submission']