editor: tweaking some action descriptions
[fnpeditor.git] / src / editor / plugins / core / switch.js
index 9b34721..ff49eb8 100644 (file)
@@ -14,7 +14,7 @@ var createSwitchAction = function(createParams) {
         },
         getState: function(params) {
             var state = {
         },
         getState: function(params) {
             var state = {
-                    label: this.config.label
+                    label: createParams.to.name
                 },
                 f = params.fragment,
                 description;
                 },
                 f = params.fragment,
                 description;
@@ -39,7 +39,7 @@ var createSwitchAction = function(createParams) {
                 toSwitch = toSwitch.getParent(createParams.from);
             }
 
                 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,
             return _.extend(state, {
                 allowed: !!toSwitch,
                 toggled: alreadyInTarget,