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

fix untranslated validation message on course grader
This commit is contained in:
Tasawer Nawaz
2017-09-18 17:42:23 +05:00
committed by GitHub

View File

@@ -24,7 +24,7 @@ define(['backbone', 'underscore', 'gettext'], function(Backbone, _, gettext) {
var errors = {};
if (_.has(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 {
// FIXME somehow this.collection is unbound sometimes. I can't track down when