Skip to content

Commit ca98ce5

Browse files
committed
trivial change: pluralize formatInputTooShort function
1 parent 4a363c4 commit ca98ce5

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
@@ -2379,7 +2379,7 @@ the specific language governing permissions and limitations under the Apache Lic
23792379
},
23802380
formatResultCssClass: function(data) {return undefined;},
23812381
formatNoMatches: function () { return "No matches found"; },
2382-
formatInputTooShort: function (input, min) { return "Please enter " + (min - input.length) + " more characters"; },
2382+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1? "" : "s"); },
23832383
formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },
23842384
formatLoadMore: function (pageNumber) { return "Loading more results..."; },
23852385
formatSearching: function () { return "Searching..."; },

0 commit comments

Comments
 (0)