From c38178af914a1015d94cc0cdef8dbb2a6ea21427 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 6 Aug 2014 15:06:28 +0200 Subject: [PATCH 1/1] editor: edumed exercises - translation fixes --- src/editor/plugins/core/edumed/actions.js | 6 +++--- src/editor/plugins/core/edumed/choice/choiceTrueOrFalse.js | 2 +- src/editor/plugins/core/edumed/elementBase.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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!') -- 2.20.1