From: Aleksander Ɓukasz Date: Wed, 6 Aug 2014 13:06:28 +0000 (+0200) Subject: editor: edumed exercises - translation fixes X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/c38178af914a1015d94cc0cdef8dbb2a6ea21427?ds=sidebyside editor: edumed exercises - translation fixes --- diff --git a/src/editor/plugins/core/edumed/actions.js b/src/editor/plugins/core/edumed/actions.js index 6d8051e..b79d109 100644 --- a/src/editor/plugins/core/edumed/actions.js +++ b/src/editor/plugins/core/edumed/actions.js @@ -61,7 +61,7 @@ var createAction = function(actionConfig) { 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')}), - 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')}) diff --git a/src/editor/plugins/core/edumed/choice/choiceTrueOrFalse.js b/src/editor/plugins/core/edumed/choice/choiceTrueOrFalse.js index 86fe809..bf1a9ea 100644 --- a/src/editor/plugins/core/edumed/choice/choiceTrueOrFalse.js +++ b/src/editor/plugins/core/edumed/choice/choiceTrueOrFalse.js @@ -14,7 +14,7 @@ var $ = require('libs/jquery'), 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) { diff --git a/src/editor/plugins/core/edumed/elementBase.js b/src/editor/plugins/core/edumed/elementBase.js index ad7e0b8..9f87dd1 100644 --- a/src/editor/plugins/core/edumed/elementBase.js +++ b/src/editor/plugins/core/edumed/elementBase.js @@ -18,7 +18,7 @@ _.extend(choiceBase, { this.x = $('
x
'); 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!')