Skip to content

Commit 1b2765f

Browse files
committed
Pluralize 'items' in formatSelectionTooBig
1 parent 222fa7e commit 1b2765f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2348,7 +2348,7 @@
23482348
formatResultCssClass: function(data) {return undefined;},
23492349
formatNoMatches: function () { return "No matches found"; },
23502350
formatInputTooShort: function (input, min) { return "Please enter " + (min - input.length) + " more characters"; },
2351-
formatSelectionTooBig: function (limit) { return "You can only select " + limit + " items"; },
2351+
formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },
23522352
formatLoadMore: function (pageNumber) { return "Loading more results..."; },
23532353
formatSearching: function () { return "Searching..."; },
23542354
minimumResultsForSearch: 0,

0 commit comments

Comments
 (0)