X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/f098ff9873de73d1fd6d71ce64b83ae318e8bd7e..45c6e40d4312a3bc53fb0c64574d9e5b1f298193:/src/editor/plugins/core/lists.js diff --git a/src/editor/plugins/core/lists.js b/src/editor/plugins/core/lists.js index 427673e..0c017f8 100644 --- a/src/editor/plugins/core/lists.js +++ b/src/editor/plugins/core/lists.js @@ -101,6 +101,7 @@ var toggleListAction = function(type) { return false; }; + var label = type === 'Bullet' ? gettext('bull. list') : gettext('num. list'); return { name: 'toggle' + type + 'List', @@ -109,7 +110,7 @@ var toggleListAction = function(type) { fragment: {type: 'context', name: 'fragment'} }, stateDefaults: { - label: type === 'Bullet' ? gettext('bull. list') : gettext('num. list') + label: label }, getState: function(params) { if(!params.fragment || !params.fragment.isValid()) { @@ -121,7 +122,7 @@ var toggleListAction = function(type) { if((list.getClass() === 'list' && type === 'Enum') || (list.getClass() === 'list.enum' && type === 'Bullet')) { return { allowed: true, - description: interpolate(gettext('Change list type to %s'), [type]), + description: interpolate(gettext('Change list type to %s'), [label]), execute: execute.changeType }; }