aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/select2/select2_locale_hr.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-05-18 15:49:08 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-05-23 11:22:07 +0100
commit875836e662f33bb4c5a9f9093bb8080f214dea5b (patch)
tree3bbf01c13e0c8ec8dccc72356ba36b9b0b9e2bf3 /web/js/select2/select2_locale_hr.js
parent755bc0e550ed9b0cb58211366c4bf5fd0ca9f872 (diff)
Move third party libraries into vendor directories
This makes the git hook that lints our own JavaScript easier, and keeps things more cleanly separated. We also remove unused third party libraries (select2 and jquery.placeholder).
Diffstat (limited to 'web/js/select2/select2_locale_hr.js')
-rw-r--r--web/js/select2/select2_locale_hr.js42
1 files changed, 0 insertions, 42 deletions
diff --git a/web/js/select2/select2_locale_hr.js b/web/js/select2/select2_locale_hr.js
deleted file mode 100644
index b0615405e..000000000
--- a/web/js/select2/select2_locale_hr.js
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * Select2 Croatian translation.
- *
- * Author: Edi Modrić <edi.modric@gmail.com>
- */
-(function ($) {
- "use strict";
-
- var specialNumbers = {
- 1: function(n) { return (n % 100 != 11 ? "znak" : "znakova"); },
- 2: function(n) { return (n % 100 != 12 ? "znaka" : "znakova"); },
- 3: function(n) { return (n % 100 != 13 ? "znaka" : "znakova"); },
- 4: function(n) { return (n % 100 != 14 ? "znaka" : "znakova"); }
- };
-
- $.extend($.fn.select2.defaults, {
- formatNoMatches: function () { return "Nema rezultata"; },
- formatInputTooShort: function (input, min) {
- var n = min - input.length;
- var nMod10 = n % 10;
-
- if (nMod10 > 0 && nMod10 < 5) {
- return "Unesite još " + n + " " + specialNumbers[nMod10](n);
- }
-
- return "Unesite još " + n + " znakova";
- },
- formatInputTooLong: function (input, max) {
- var n = input.length - max;
- var nMod10 = n % 10;
-
- if (nMod10 > 0 && nMod10 < 5) {
- return "Unesite " + n + " " + specialNumbers[nMod10](n) + " manje";
- }
-
- return "Unesite " + n + " znakova manje";
- },
- formatSelectionTooBig: function (limit) { return "Maksimalan broj odabranih stavki je " + limit; },
- formatLoadMore: function (pageNumber) { return "Učitavanje rezultata..."; },
- formatSearching: function () { return "Pretraga..."; }
- });
-})(jQuery);