Commit ef5e6560 by Tasawer Nawaz Committed by GitHub

Merge pull request #16034 from edx/tasawer/learner-2450/translate-validation-message

fix untranslated validation message on course grader
parents 468fd999 510dcd14
...@@ -24,7 +24,7 @@ define(['backbone', 'underscore', 'gettext'], function(Backbone, _, gettext) { ...@@ -24,7 +24,7 @@ define(['backbone', 'underscore', 'gettext'], function(Backbone, _, gettext) {
var errors = {}; var errors = {};
if (_.has(attrs, 'type')) { if (_.has(attrs, 'type')) {
if (_.isEmpty(attrs['type'])) { if (_.isEmpty(attrs['type'])) {
errors.type = 'The assignment type must have a name.'; errors.type = gettext('The assignment type must have a name.');
} }
else { else {
// FIXME somehow this.collection is unbound sometimes. I can't track down when // FIXME somehow this.collection is unbound sometimes. I can't track down when
......
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