From 6eea4d6156c620efeec3b494ef9761fe99e62110 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 --- .../intranet-tmpl/prog/en/includes/select2.inc | 43 +++++++++------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc index c776cbafc8..9652f0b573 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc @@ -25,31 +25,24 @@ }, // 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); - }, - 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); + }, + 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.11.0