editor: edumed exercises - translation fixes
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 6 Aug 2014 13:06:28 +0000 (15:06 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 14 Aug 2014 14:26:14 +0000 (16:26 +0200)
src/editor/plugins/core/edumed/actions.js
src/editor/plugins/core/edumed/choice/choiceTrueOrFalse.js
src/editor/plugins/core/edumed/elementBase.js

index 6d8051e..b79d109 100644 (file)
@@ -61,7 +61,7 @@ var createAction = function(actionConfig) {
         getState: function(params) {
             return {
                 allowed: params.fragment && params.fragment.isValid() && params.fragment instanceof params.fragment.NodeFragment,
         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
             };
         }
     };
             };
         }
     };
@@ -70,8 +70,8 @@ var createAction = function(actionConfig) {
 
 return [
     createAction({name: 'insertOrderExercise', icon: 'random', exercise: 'order', exerciseTitle: gettext('Order')}),
 
 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')})
     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')})
index 86fe809..bf1a9ea 100644 (file)
@@ -14,7 +14,7 @@ var $ = require('libs/jquery'),
 var trueOrFalse  = Object.create(choiceBase);
 _.extend(trueOrFalse, {
     type: 'true-or-false',
 var trueOrFalse  = Object.create(choiceBase);
 _.extend(trueOrFalse, {
     type: 'true-or-false',
-    name: 'True or False',
+    name: gettext('True or False'),
     createListView: function(listNode) {
         return new ListView(this, listNode, {
             onItemViewAdded: function(itemView) {
     createListView: function(listNode) {
         return new ListView(this, listNode, {
             onItemViewAdded: function(itemView) {
index ad7e0b8..9f87dd1 100644 (file)
@@ -18,7 +18,7 @@ _.extend(choiceBase, {
         this.x = $('<div class="edumed-exercise-remove btn btn-mini btn-danger">x</div>');
         this.x.on('click', function() {
             var dialog = Dialog.create({
         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!')
                 text: gettext('Do you really want to remove this exercise?'),
                 executeButtonText: gettext('Yes'),
                 cancelButtonText: gettext('No, don\'t do anything!')