update undo/redo menu text

This commit is contained in:
rolux 2013-08-03 14:54:46 +00:00
parent d8e6e18855
commit d25368b6b6

View file

@ -298,10 +298,9 @@ pandora.createLinks = function($element) {
paste: 'Pasting'
},
type = getType(items),
text = Ox._(actions[action]) + ' ' + Ox.formatCount(
items.length,
type == 'item' ? pandora.site.itemName.singular : 'Clip',
type == 'item' ? pandora.site.itemName.plural : 'Clips'
text = Ox._(actions[action]) + ' ' + (
items.length == 1 ? Ox._(type == 'item' ? pandora.site.itemName.singular : 'Clip')
: items.length + ' ' + Ox._(type == 'item' ? pandora.site.itemName.plural : 'Clips')
);
if (action == 'copy' || action == 'paste') {
addItems(items, targets[0], addToHistory);