From 1b2765fcede633bdf3f6007a95f94be7aabf4c60 Mon Sep 17 00:00:00 2001 From: Gavin Wahl Date: Tue, 4 Sep 2012 16:22:58 -0600 Subject: [PATCH] Pluralize 'items' in formatSelectionTooBig --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 6d6eddfe..31d2b93e 100755 --- a/select2.js +++ b/select2.js @@ -2348,7 +2348,7 @@ formatResultCssClass: function(data) {return undefined;}, formatNoMatches: function () { return "No matches found"; }, formatInputTooShort: function (input, min) { return "Please enter " + (min - input.length) + " more characters"; }, - formatSelectionTooBig: function (limit) { return "You can only select " + limit + " items"; }, + formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); }, formatLoadMore: function (pageNumber) { return "Loading more results..."; }, formatSearching: function () { return "Searching..."; }, minimumResultsForSearch: 0,