Commit a14be471 by jmclaus

Merge pull request #4087 from edx/jmclaus/i18n-matlab-input

MatlabInput: i18n
parents 290906ac 5833af24
......@@ -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']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment