X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/f098ff9873de73d1fd6d71ce64b83ae318e8bd7e..45c6e40d4312a3bc53fb0c64574d9e5b1f298193:/src/editor/plugins/core/switch.js diff --git a/src/editor/plugins/core/switch.js b/src/editor/plugins/core/switch.js index 9b34721..ff49eb8 100644 --- a/src/editor/plugins/core/switch.js +++ b/src/editor/plugins/core/switch.js @@ -14,7 +14,7 @@ var createSwitchAction = function(createParams) { }, getState: function(params) { var state = { - label: this.config.label + label: createParams.to.name }, f = params.fragment, description; @@ -39,7 +39,7 @@ var createSwitchAction = function(createParams) { toSwitch = toSwitch.getParent(createParams.from); } - description = 'Switch to ' + createParams.to.name; + description = gettext('Switch to') + ' ' + createParams.to.name; return _.extend(state, { allowed: !!toSwitch, toggled: alreadyInTarget,