1
0
mirror of synced 2024-11-30 00:26:03 +03:00

Merge pull request #525 from t0m/master

Trivial change: pluralize default inputTooShort function
This commit is contained in:
Igor Vaynberg 2012-11-02 08:54:20 -07:00
commit d926d472ef

View File

@ -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..."; },