From ca98ce556472ce57db0e2d711710560b991bc291 Mon Sep 17 00:00:00 2001 From: tom Date: Wed, 24 Oct 2012 23:48:00 -0400 Subject: [PATCH] trivial change: pluralize formatInputTooShort function --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index d3e1b349..643855ed 100644 --- a/select2.js +++ b/select2.js @@ -2379,7 +2379,7 @@ the specific language governing permissions and limitations under the Apache Lic }, formatResultCssClass: function(data) {return undefined;}, formatNoMatches: function () { return "No matches found"; }, - formatInputTooShort: function (input, min) { return "Please enter " + (min - input.length) + " more characters"; }, + formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1? "" : "s"); }, formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); }, formatLoadMore: function (pageNumber) { return "Loading more results..."; }, formatSearching: function () { return "Searching..."; },