From d25368b6b631431e0ce72f8c3d4b391b15a38cb1 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 3 Aug 2013 14:54:46 +0000 Subject: [PATCH] update undo/redo menu text --- static/js/utils.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/static/js/utils.js b/static/js/utils.js index fb6b45a3..af360ebf 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -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);