Lines 25-58
Link Here
|
25 |
}, |
25 |
}, |
26 |
|
26 |
|
27 |
// Internationalization |
27 |
// Internationalization |
28 |
formatMatches: function (matches) { |
28 |
language: { |
29 |
if (matches === 1) { |
29 |
errorLoading:function(){return"The results could not be loaded."}, |
30 |
return _("One result is available, press enter to select it."); |
30 |
inputTooLong:function(e){ |
31 |
} |
31 |
var n = e.input.length - e.max; |
32 |
return _("%s results are available, use up and down arrow keys to navigate.").format(matches); |
32 |
return _("Please delete %d character(s)").format(n); |
33 |
}, |
33 |
}, |
34 |
formatNoMatches: function () { |
34 |
inputTooShort:function(e){ |
35 |
return _("No matches found"); |
35 |
var n = e.min - e.input.length; |
36 |
}, |
36 |
return _("Please enter %n or more characters").format(n); |
37 |
formatInputTooShort: function (input, min) { |
37 |
}, |
38 |
var n = min - input.length; |
38 |
formatResult: function(item) { |
39 |
return _("Please enter %n or more characters").format(n); |
39 |
return $('<div>', {title: item.element[0].title}).text(item.text); |
40 |
}, |
40 |
}, |
41 |
formatInputTooLong: function (input, max) { |
41 |
loadingMore:function(){return"Loading more results…"}, |
42 |
var n = input.length - max; |
42 |
maximumSelected:function(e){ |
43 |
return _("Please delete %d character(s)").format(n); |
43 |
return _("You can only select %s item(s)").format(e.max); |
44 |
}, |
44 |
}, |
45 |
formatResult: function(item) { |
45 |
noResults:function(){return _("No results found")}, |
46 |
return $('<div>', {title: item.element[0].title}).text(item.text); |
46 |
searching:function(){return _("Searching…")}, |
47 |
}, |
47 |
removeAllItems:function(){return _("Remove all items")}, |
48 |
formatSelectionTooBig: function (limit) { |
48 |
removeItem:function(){return _("Remove item")} |
49 |
return _("You can only select %s item(s)").format(limit); |
|
|
50 |
}, |
51 |
formatLoadMore: function (pageNumber) { |
52 |
return _("Loading more results…"); |
53 |
}, |
54 |
formatSearching: function () { |
55 |
return _("Searching…"); |
56 |
} |
49 |
} |
57 |
}); |
50 |
}); |
58 |
</script> |
51 |
</script> |
59 |
- |
|
|