getState: function(params) {
return {
allowed: params.fragment && params.fragment.isValid() && params.fragment instanceof params.fragment.NodeFragment,
- description: gettext('Insert exercise: ' + actionConfig.exerciseTitle)
+ description: gettext('Insert exercise') + ': ' + actionConfig.exerciseTitle
};
}
};
return [
createAction({name: 'insertOrderExercise', icon: 'random', exercise: 'order', exerciseTitle: gettext('Order')}),
- createAction({name: 'insertChoiceSingleExercise', icon: 'ok-circle', exercise: 'choice.single', exerciseTitle: gettext('Single choice')}),
- createAction({name: 'insertChoiceMultiExercise', icon: 'check', exercise: 'choice', exerciseTitle: gettext('Mutiple Choice')}),
+ createAction({name: 'insertChoiceSingleExercise', icon: 'ok-circle', exercise: 'choice.single', exerciseTitle: gettext('Single Choice')}),
+ createAction({name: 'insertChoiceMultiExercise', icon: 'check', exercise: 'choice', exerciseTitle: gettext('Multiple Choice')}),
createAction({name: 'insertChoiceTrueOrFalseExercise', icon: 'adjust', exercise: 'choice.true-or-false', exerciseTitle: gettext('True or False')}),
createAction({name: 'insertGapsExercise', icon: 'question-sign', exercise: 'gap', exerciseTitle: gettext('Gaps')}),
createAction({name: 'insertReplaceExercise', icon: 'thumbs-down', exercise: 'replace', exerciseTitle: gettext('Replace')})
this.x = $('<div class="edumed-exercise-remove btn btn-mini btn-danger">x</div>');
this.x.on('click', function() {
var dialog = Dialog.create({
- title: 'Removing exercise',
+ title: gettext('Removing exercise'),
text: gettext('Do you really want to remove this exercise?'),
executeButtonText: gettext('Yes'),
cancelButtonText: gettext('No, don\'t do anything!')