Bug 25727: Adjust translations
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 13 Jun 2020 11:32:56 +0000 (13:32 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Aug 2020 09:19:03 +0000 (11:19 +0200)
Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc

index 9f0a4ae..e51ebfd 100644 (file)
     },
 
     // 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 $('<div>', {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 $('<div>', {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")}
     }
   });
 </script>