From 8683025c3c2ed4c78afb051f443d4ce0ea889489 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sat, 13 Jun 2020 13:32:56 +0200 Subject: [PATCH] Bug 25727: Adjust translations Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../prog/en/includes/select2.inc | 49 ++++++++----------- 1 file changed, 21 insertions(+), 28 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc index 9f0a4aeb02..e51ebfd849 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc @@ -25,34 +25,27 @@ }, // Internationalization - formatMatches: function (matches) { - if (matches === 1) { - return _("One result is available, press enter to select it."); - } - return _("%s results are available, use up and down arrow keys to navigate.").format(matches); - }, - formatNoMatches: function () { - return _("No matches found"); - }, - formatInputTooShort: function (input, min) { - var n = min - input.length; - return _("Please enter %n or more characters").format(n); - }, - formatInputTooLong: function (input, max) { - var n = input.length - max; - return _("Please delete %d character(s)").format(n); - }, - formatResult: function(item) { - return $('
', {title: item.element[0].title}).text(item.text); - }, - formatSelectionTooBig: function (limit) { - return _("You can only select %s item(s)").format(limit); - }, - formatLoadMore: function (pageNumber) { - return _("Loading more results…"); - }, - formatSearching: function () { - return _("Searching…"); + language: { + errorLoading:function(){return"The results could not be loaded."}, + inputTooLong:function(e){ + var n = e.input.length - e.max; + return _("Please delete %d character(s)").format(n); + }, + inputTooShort:function(e){ + var n = e.min - e.input.length; + return _("Please enter %n or more characters").format(n); + }, + formatResult: function(item) { + return $('
', {title: item.element[0].title}).text(item.text); + }, + loadingMore:function(){return"Loading more results…"}, + maximumSelected:function(e){ + return _("You can only select %s item(s)").format(e.max); + }, + noResults:function(){return _("No results found")}, + searching:function(){return _("Searching…")}, + removeAllItems:function(){return _("Remove all items")}, + removeItem:function(){return _("Remove item")} } }); -- 2.39.5