Commit 5833af24 by jmclaus

MatlabInput: i18n

parent 501a1b59
...@@ -924,9 +924,10 @@ class MatlabInput(CodeInput): ...@@ -924,9 +924,10 @@ class MatlabInput(CodeInput):
dict - 'success' - whether or not we successfully queued this submission dict - 'success' - whether or not we successfully queued this submission
- 'message' - message to be rendered in case of error - 'message' - message to be rendered in case of error
""" """
_ = self.capa_system.i18n.ugettext
# only send data if xqueue exists # only send data if xqueue exists
if self.capa_system.xqueue is None: 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 # pull relevant info out of get
response = data['submission'] 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