select2-rails 3.4.4 → 3.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +14 -1
- data/lib/select2-rails/source_file.rb +10 -1
- data/lib/select2-rails/version.rb +1 -1
- data/vendor/assets/javascripts/select2_locale_ar.js +17 -0
- data/vendor/assets/javascripts/select2_locale_ca.js +17 -0
- data/vendor/assets/javascripts/select2_locale_cs.js +49 -0
- data/vendor/assets/javascripts/select2_locale_da.js +17 -0
- data/vendor/assets/javascripts/select2_locale_de.js +15 -0
- data/vendor/assets/javascripts/select2_locale_el.js +17 -0
- data/vendor/assets/javascripts/select2_locale_es.js +15 -0
- data/vendor/assets/javascripts/select2_locale_et.js +17 -0
- data/vendor/assets/javascripts/select2_locale_eu.js +43 -0
- data/vendor/assets/javascripts/select2_locale_fi.js +28 -0
- data/vendor/assets/javascripts/select2_locale_fr.js +15 -0
- data/vendor/assets/javascripts/select2_locale_gl.js +43 -0
- data/vendor/assets/javascripts/select2_locale_he.js +17 -0
- data/vendor/assets/javascripts/select2_locale_hr.js +42 -0
- data/vendor/assets/javascripts/select2_locale_hu.js +15 -0
- data/vendor/assets/javascripts/select2_locale_id.js +17 -0
- data/vendor/assets/javascripts/select2_locale_is.js +16 -0
- data/vendor/assets/javascripts/select2_locale_it.js +15 -0
- data/vendor/assets/javascripts/select2_locale_ja.js +15 -0
- data/vendor/assets/javascripts/select2_locale_ko.js +17 -0
- data/vendor/assets/javascripts/select2_locale_lt.js +29 -0
- data/vendor/assets/javascripts/select2_locale_lv.js +16 -0
- data/vendor/assets/javascripts/select2_locale_mk.js +17 -0
- data/vendor/assets/javascripts/select2_locale_nl.js +15 -0
- data/vendor/assets/javascripts/select2_locale_no.js +18 -0
- data/vendor/assets/javascripts/select2_locale_pl.js +37 -0
- data/vendor/assets/javascripts/select2_locale_pt-BR.js +15 -0
- data/vendor/assets/javascripts/select2_locale_pt-PT.js +15 -0
- data/vendor/assets/javascripts/select2_locale_ro.js +15 -0
- data/vendor/assets/javascripts/select2_locale_ru.js +15 -0
- data/vendor/assets/javascripts/select2_locale_sk.js +48 -0
- data/vendor/assets/javascripts/select2_locale_sv.js +17 -0
- data/vendor/assets/javascripts/select2_locale_tr.js +17 -0
- data/vendor/assets/javascripts/select2_locale_ua.js +17 -0
- data/vendor/assets/javascripts/select2_locale_vi.js +18 -0
- data/vendor/assets/javascripts/select2_locale_zh-CN.js +14 -0
- data/vendor/assets/javascripts/select2_locale_zh-TW.js +14 -0
- metadata +39 -2
data/README.md
CHANGED
@@ -2,9 +2,10 @@
|
|
2
2
|
|
3
3
|
[Select2](https://github.com/ivaynberg/select2) is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.
|
4
4
|
|
5
|
-
|
6
5
|
The `select2-rails` gem integrates the `Select2` jQuery plugin with the Rails asset pipeline.
|
7
6
|
|
7
|
+
[![Gem Version](https://badge.fury.io/rb/select2-rails.png)](http://badge.fury.io/rb/select2-rails)
|
8
|
+
|
8
9
|
## Usage
|
9
10
|
|
10
11
|
### Install select2-rails gem
|
@@ -25,6 +26,18 @@ Add to your `app/assets/stylesheets/application.css`:
|
|
25
26
|
|
26
27
|
*= require select2
|
27
28
|
|
29
|
+
## Internationalization (i18n)
|
30
|
+
|
31
|
+
The `select2-rails` now supports multiple languages.
|
32
|
+
|
33
|
+
Add the following to your `app/assets/javascripts/application.js`:
|
34
|
+
|
35
|
+
//= require select2_locale_"any possible language"
|
36
|
+
|
37
|
+
Possible languages:
|
38
|
+
|
39
|
+
ar, ca, cs, da, de, el, es, et, eu, fi, fr, gl, he, hr, hu, id, is, it, ja, ko, lt, lv, mk, nl, no, pl, pt-BR, pt-PT, ro, ru, sk, sv, tr, ua, vi, zh-CN, zh-TW
|
40
|
+
|
28
41
|
## Version
|
29
42
|
From `v2.1.0` on, `select2-rails`'s version will match the version of `Select2` it uses.
|
30
43
|
|
@@ -15,6 +15,9 @@ class SourceFile < Thor
|
|
15
15
|
get "#{remote}/raw/#{tag}/select2-spinner.gif", "images/select2-spinner.gif"
|
16
16
|
get "#{remote}/raw/#{tag}/select2.css", "stylesheets/select2.css"
|
17
17
|
get "#{remote}/raw/#{tag}/select2.js", "javascripts/select2.js"
|
18
|
+
languages.each do |lang|
|
19
|
+
get "#{remote}/raw/#{tag}/select2_locale_#{lang}.js", "javascripts/select2_locale_#{lang}.js"
|
20
|
+
end
|
18
21
|
end
|
19
22
|
|
20
23
|
desc "convert css to scss file", "convert css to scss file"
|
@@ -37,7 +40,13 @@ class SourceFile < Thor
|
|
37
40
|
def fetch_tags
|
38
41
|
http = HTTPClient.new
|
39
42
|
response = JSON.parse(http.get("https://api.github.com/repos/ivaynberg/select2/tags").body)
|
40
|
-
response.map{|tag| tag["name"]}.sort
|
43
|
+
response.map{|tag| tag["name"]}.sort
|
44
|
+
end
|
45
|
+
def languages
|
46
|
+
[ "ar", "ca", "cs", "da", "de", "el", "es", "et", "eu", "fi", "fr", "gl", "he", "hr",
|
47
|
+
"hu", "id", "is", "it", "ja", "ko", "lt", "lv", "mk", "nl", "no", "pl", "pt-BR",
|
48
|
+
"pt-PT", "ro", "ru", "sk", "sv", "tr", "ua", "vi", "zh-CN", "zh-TW"
|
49
|
+
].sort
|
41
50
|
end
|
42
51
|
def select msg, elements
|
43
52
|
elements.each_with_index do |element, index|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Arabic translation.
|
3
|
+
*
|
4
|
+
* Author: Your Name <amedhat3@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "لا توجد نتائج"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "من فضلك أدخل " + n + " حروف أكثر"; },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "من فضلك أحذف " + n + " حروف"; },
|
13
|
+
formatSelectionTooBig: function (limit) { return "يمكنك ان تختار " + limit + " أختيارات فقط"; },
|
14
|
+
formatLoadMore: function (pageNumber) { return "تحمل المذيد من النتائج ..."; },
|
15
|
+
formatSearching: function () { return "جاري البحث ..."; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Catalan translation.
|
3
|
+
*
|
4
|
+
* Author: David Planella <david.planella@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "No s'ha trobat cap coincidència"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduïu " + n + " caràcter" + (n == 1 ? "" : "s") + " més"; },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Introduïu " + n + " caràcter" + (n == 1? "" : "s") + "menys"; },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Només podeu seleccionar " + limit + " element" + (limit == 1 ? "" : "s"); },
|
14
|
+
formatLoadMore: function (pageNumber) { return "S'estan carregant més resultats..."; },
|
15
|
+
formatSearching: function () { return "S'està cercant..."; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Czech translation.
|
3
|
+
*
|
4
|
+
* Author: Michal Marek <ahoj@michal-marek.cz>
|
5
|
+
* Author - sklonovani: David Vallner <david@vallner.net>
|
6
|
+
*/
|
7
|
+
(function ($) {
|
8
|
+
"use strict";
|
9
|
+
// use text for the numbers 2 through 4
|
10
|
+
var smallNumbers = {
|
11
|
+
2: function(masc) { return (masc ? "dva" : "dvě"); },
|
12
|
+
3: function() { return "tři"; },
|
13
|
+
4: function() { return "čtyři"; }
|
14
|
+
}
|
15
|
+
$.extend($.fn.select2.defaults, {
|
16
|
+
formatNoMatches: function () { return "Nenalezeny žádné položky"; },
|
17
|
+
formatInputTooShort: function (input, min) {
|
18
|
+
var n = min - input.length;
|
19
|
+
if (n == 1) {
|
20
|
+
return "Prosím zadejte ještě jeden znak";
|
21
|
+
} else if (n <= 4) {
|
22
|
+
return "Prosím zadejte ještě další "+smallNumbers[n](true)+" znaky";
|
23
|
+
} else {
|
24
|
+
return "Prosím zadejte ještě dalších "+n+" znaků";
|
25
|
+
}
|
26
|
+
},
|
27
|
+
formatInputTooLong: function (input, max) {
|
28
|
+
var n = input.length - max;
|
29
|
+
if (n == 1) {
|
30
|
+
return "Prosím zadejte o jeden znak méně";
|
31
|
+
} else if (n <= 4) {
|
32
|
+
return "Prosím zadejte o "+smallNumbers[n](true)+" znaky méně";
|
33
|
+
} else {
|
34
|
+
return "Prosím zadejte o "+n+" znaků méně";
|
35
|
+
}
|
36
|
+
},
|
37
|
+
formatSelectionTooBig: function (limit) {
|
38
|
+
if (limit == 1) {
|
39
|
+
return "Můžete zvolit jen jednu položku";
|
40
|
+
} else if (limit <= 4) {
|
41
|
+
return "Můžete zvolit maximálně "+smallNumbers[limit](false)+" položky";
|
42
|
+
} else {
|
43
|
+
return "Můžete zvolit maximálně "+limit+" položek";
|
44
|
+
}
|
45
|
+
},
|
46
|
+
formatLoadMore: function (pageNumber) { return "Načítají se další výsledky..."; },
|
47
|
+
formatSearching: function () { return "Vyhledávání..."; }
|
48
|
+
});
|
49
|
+
})(jQuery);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Danish translation.
|
3
|
+
*
|
4
|
+
* Author: Anders Jenbo <anders@jenbo.dk>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "Ingen resultater fundet"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Angiv venligst " + n + " tegn mere"; },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Angiv venligst " + n + " tegn mindre"; },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Du kan kun vælge " + limit + " emne" + (limit === 1 ? "" : "r"); },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Indlæser flere resultater…"; },
|
15
|
+
formatSearching: function () { return "Søger…"; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 German translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.extend($.fn.select2.defaults, {
|
8
|
+
formatNoMatches: function () { return "Keine Übereinstimmungen gefunden"; },
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Bitte " + n + " Zeichen mehr eingeben"; },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Bitte " + n + " Zeichen weniger eingeben"; },
|
11
|
+
formatSelectionTooBig: function (limit) { return "Sie können nur " + limit + " Eintr" + (limit === 1 ? "ag" : "äge") + " auswählen"; },
|
12
|
+
formatLoadMore: function (pageNumber) { return "Lade mehr Ergebnisse..."; },
|
13
|
+
formatSearching: function () { return "Suche..."; }
|
14
|
+
});
|
15
|
+
})(jQuery);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 <Language> translation.
|
3
|
+
*
|
4
|
+
* Author: Your Name <your@email>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "Δεν βρέθηκαν αποτελέσματα"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Παρακαλούμε εισάγετε " + n + " περισσότερους χαρακτήρες" + (n == 1 ? "" : "s"); },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Παρακαλούμε διαγράψτε " + n + " χαρακτήρες" + (n == 1 ? "" : "s"); },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Μπορείτε να επιλέξετε μόνο " + limit + " αντικείμενο" + (limit == 1 ? "" : "s"); },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Φόρτωση περισσότερων..."; },
|
15
|
+
formatSearching: function () { return "Αναζήτηση..."; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Spanish translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.extend($.fn.select2.defaults, {
|
8
|
+
formatNoMatches: function () { return "No se encontraron resultados"; },
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Por favor adicione " + n + " caracter" + (n == 1? "" : "es"); },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Por favor elimine " + n + " caracter" + (n == 1? "" : "es"); },
|
11
|
+
formatSelectionTooBig: function (limit) { return "Solo puede seleccionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
|
12
|
+
formatLoadMore: function (pageNumber) { return "Cargando más resultados..."; },
|
13
|
+
formatSearching: function () { return "Buscando..."; }
|
14
|
+
});
|
15
|
+
})(jQuery);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Estonian translation.
|
3
|
+
*
|
4
|
+
* Author: Kuldar Kalvik <kuldar@kalvik.ee>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "Tulemused puuduvad"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Sisesta " + n + " täht" + (n == 1 ? "" : "e") + " rohkem"; },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Sisesta " + n + " täht" + (n == 1? "" : "e") + " vähem"; },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Saad vaid " + limit + " tulemus" + (limit == 1 ? "e" : "t") + " valida"; },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Laen tulemusi.."; },
|
15
|
+
formatSearching: function () { return "Otsin.."; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Basque translation.
|
3
|
+
*
|
4
|
+
* Author: Julen Ruiz Aizpuru <julenx at gmail dot com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () {
|
11
|
+
return "Ez da bat datorrenik aurkitu";
|
12
|
+
},
|
13
|
+
formatInputTooShort: function (input, min) {
|
14
|
+
var n = min - input.length;
|
15
|
+
if (n === 1) {
|
16
|
+
return "Idatzi karaktere bat gehiago";
|
17
|
+
} else {
|
18
|
+
return "Idatzi " + n + " karaktere gehiago";
|
19
|
+
}
|
20
|
+
},
|
21
|
+
formatInputTooLong: function (input, max) {
|
22
|
+
var n = input.length - max;
|
23
|
+
if (n === 1) {
|
24
|
+
return "Idatzi karaktere bat gutxiago";
|
25
|
+
} else {
|
26
|
+
return "Idatzi " + n + " karaktere gutxiago";
|
27
|
+
}
|
28
|
+
},
|
29
|
+
formatSelectionTooBig: function (limit) {
|
30
|
+
if (limit === 1 ) {
|
31
|
+
return "Elementu bakarra hauta dezakezu";
|
32
|
+
} else {
|
33
|
+
return limit + " elementu hauta ditzakezu soilik";
|
34
|
+
}
|
35
|
+
},
|
36
|
+
formatLoadMore: function (pageNumber) {
|
37
|
+
return "Emaitza gehiago kargatzen...";
|
38
|
+
},
|
39
|
+
formatSearching: function () {
|
40
|
+
return "Bilatzen...";
|
41
|
+
}
|
42
|
+
});
|
43
|
+
})(jQuery);
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Finnish translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
$.extend($.fn.select2.defaults, {
|
7
|
+
formatNoMatches: function () {
|
8
|
+
return "Ei tuloksia";
|
9
|
+
},
|
10
|
+
formatInputTooShort: function (input, min) {
|
11
|
+
var n = min - input.length;
|
12
|
+
return "Ole hyvä ja anna " + n + " merkkiä lisää.";
|
13
|
+
},
|
14
|
+
formatInputTooLong: function (input, max) {
|
15
|
+
var n = input.length - max;
|
16
|
+
return "Ole hyvä ja annar " + n + " merkkiä vähemmän.";
|
17
|
+
},
|
18
|
+
formatSelectionTooBig: function (limit) {
|
19
|
+
return "Voit valita ainoastaan " + limit + " kpl";
|
20
|
+
},
|
21
|
+
formatLoadMore: function (pageNumber) {
|
22
|
+
return "Ladataan lisää tuloksia...";
|
23
|
+
},
|
24
|
+
formatSearching: function () {
|
25
|
+
return "Etsitään...";
|
26
|
+
}
|
27
|
+
});
|
28
|
+
})(jQuery);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 French translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.extend($.fn.select2.defaults, {
|
8
|
+
formatNoMatches: function () { return "Aucun résultat trouvé"; },
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Merci de saisir " + n + " caractère" + (n == 1? "" : "s") + " de plus"; },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Merci de supprimer " + n + " caractère" + (n == 1? "" : "s"); },
|
11
|
+
formatSelectionTooBig: function (limit) { return "Vous pouvez seulement sélectionner " + limit + " élément" + (limit == 1 ? "" : "s"); },
|
12
|
+
formatLoadMore: function (pageNumber) { return "Chargement de résultats supplémentaires..."; },
|
13
|
+
formatSearching: function () { return "Recherche en cours..."; }
|
14
|
+
});
|
15
|
+
})(jQuery);
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Galician translation
|
3
|
+
*
|
4
|
+
* Author: Leandro Regueiro <leandro.regueiro@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () {
|
11
|
+
return "Non se atoparon resultados";
|
12
|
+
},
|
13
|
+
formatInputTooShort: function (input, min) {
|
14
|
+
var n = min - input.length;
|
15
|
+
if (n === 1) {
|
16
|
+
return "Engada un carácter";
|
17
|
+
} else {
|
18
|
+
return "Engada " + n + " caracteres";
|
19
|
+
}
|
20
|
+
},
|
21
|
+
formatInputTooLong: function (input, max) {
|
22
|
+
var n = input.length - max;
|
23
|
+
if (n === 1) {
|
24
|
+
return "Elimine un carácter";
|
25
|
+
} else {
|
26
|
+
return "Elimine " + n + " caracteres";
|
27
|
+
}
|
28
|
+
},
|
29
|
+
formatSelectionTooBig: function (limit) {
|
30
|
+
if (limit === 1 ) {
|
31
|
+
return "Só pode seleccionar un elemento";
|
32
|
+
} else {
|
33
|
+
return "Só pode seleccionar " + limit + " elementos";
|
34
|
+
}
|
35
|
+
},
|
36
|
+
formatLoadMore: function (pageNumber) {
|
37
|
+
return "Cargando máis resultados...";
|
38
|
+
},
|
39
|
+
formatSearching: function () {
|
40
|
+
return "Buscando...";
|
41
|
+
}
|
42
|
+
});
|
43
|
+
})(jQuery);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Hebrew translation.
|
3
|
+
*
|
4
|
+
* Author: Yakir Sitbon <http://www.yakirs.net/>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "לא נמצאו התאמות"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "נא להזין עוד " + n + " תווים נוספים"; },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "נא להזין פחות " + n + " תווים"; },
|
13
|
+
formatSelectionTooBig: function (limit) { return "ניתן לבחור " + limit + " פריטים"; },
|
14
|
+
formatLoadMore: function (pageNumber) { return "טוען תוצאות נוספות..."; },
|
15
|
+
formatSearching: function () { return "מחפש..."; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Croatian translation.
|
3
|
+
*
|
4
|
+
* Author: Edi Modrić <edi.modric@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
var specialNumbers = {
|
10
|
+
1: function(n) { return (n % 100 != 11 ? "znak" : "znakova"); },
|
11
|
+
2: function(n) { return (n % 100 != 12 ? "znaka" : "znakova"); },
|
12
|
+
3: function(n) { return (n % 100 != 13 ? "znaka" : "znakova"); },
|
13
|
+
4: function(n) { return (n % 100 != 14 ? "znaka" : "znakova"); }
|
14
|
+
};
|
15
|
+
|
16
|
+
$.extend($.fn.select2.defaults, {
|
17
|
+
formatNoMatches: function () { return "Nema rezultata"; },
|
18
|
+
formatInputTooShort: function (input, min) {
|
19
|
+
var n = min - input.length;
|
20
|
+
var nMod10 = n % 10;
|
21
|
+
|
22
|
+
if (nMod10 > 0 && nMod10 < 5) {
|
23
|
+
return "Unesite još " + n + " " + specialNumbers[nMod10](n);
|
24
|
+
}
|
25
|
+
|
26
|
+
return "Unesite još " + n + " znakova";
|
27
|
+
},
|
28
|
+
formatInputTooLong: function (input, max) {
|
29
|
+
var n = input.length - max;
|
30
|
+
var nMod10 = n % 10;
|
31
|
+
|
32
|
+
if (nMod10 > 0 && nMod10 < 5) {
|
33
|
+
return "Unesite " + n + " " + specialNumbers[nMod10](n) + " manje";
|
34
|
+
}
|
35
|
+
|
36
|
+
return "Unesite " + n + " znakova manje";
|
37
|
+
},
|
38
|
+
formatSelectionTooBig: function (limit) { return "Maksimalan broj odabranih stavki je " + limit; },
|
39
|
+
formatLoadMore: function (pageNumber) { return "Učitavanje rezultata..."; },
|
40
|
+
formatSearching: function () { return "Pretraga..."; }
|
41
|
+
});
|
42
|
+
})(jQuery);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Hungarian translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.extend($.fn.select2.defaults, {
|
8
|
+
formatNoMatches: function () { return "Nincs találat."; },
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Túl rövid. Még " + n + " karakter hiányzik."; },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Túl hosszú. " + n + " kerekterrel több mint kellene."; },
|
11
|
+
formatSelectionTooBig: function (limit) { return "Csak " + limit + " elemet lehet kiválasztani."; },
|
12
|
+
formatLoadMore: function (pageNumber) { return "Töltés..."; },
|
13
|
+
formatSearching: function () { return "Keresés..."; }
|
14
|
+
});
|
15
|
+
})(jQuery);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Indonesian translation.
|
3
|
+
*
|
4
|
+
* Author: Ibrahim Yusuf <ibrahim7usuf@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "Tidak ada data yang sesuai"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Masukkan " + n + " huruf lagi" + (n == 1 ? "" : "s"); },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Hapus " + n + " huruf" + (n == 1 ? "" : "s"); },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Anda hanya dapat memilih " + limit + " pilihan" + (limit == 1 ? "" : "s"); },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Mengambil data..."; },
|
15
|
+
formatSearching: function () { return "Mencari..."; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Icelandic translation.
|
3
|
+
*
|
4
|
+
*/
|
5
|
+
(function ($) {
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
$.extend($.fn.select2.defaults, {
|
9
|
+
formatNoMatches: function () { return "Ekkert fannst"; },
|
10
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vinsamlegast skrifið " + n + " staf" + (n == 1 ? "" : "i") + " í viðbót"; },
|
11
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vinsamlegast styttið texta um " + n + " staf" + (n == 1 ? "" : "i"); },
|
12
|
+
formatSelectionTooBig: function (limit) { return "Þú getur aðeins valið " + limit + " atriði"; },
|
13
|
+
formatLoadMore: function (pageNumber) { return "Sæki fleiri niðurstöður..."; },
|
14
|
+
formatSearching: function () { return "Leita..."; }
|
15
|
+
});
|
16
|
+
})(jQuery);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Italian translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.extend($.fn.select2.defaults, {
|
8
|
+
formatNoMatches: function () { return "Nessuna corrispondenza trovata"; },
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter" + (n == 1? "e" : "i"); },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Inserisci " + n + " caratter" + (n == 1? "e" : "i") + " in meno"; },
|
11
|
+
formatSelectionTooBig: function (limit) { return "Puoi selezionare solo " + limit + " element" + (limit == 1 ? "o" : "i"); },
|
12
|
+
formatLoadMore: function (pageNumber) { return "Caricamento in corso..."; },
|
13
|
+
formatSearching: function () { return "Ricerca..."; }
|
14
|
+
});
|
15
|
+
})(jQuery);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Japanese translation.
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.extend($.fn.select2.defaults, {
|
8
|
+
formatNoMatches: function () { return "該当なし"; },
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "後" + n + "文字入れてください"; },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "検索文字列が" + n + "文字長すぎます"; },
|
11
|
+
formatSelectionTooBig: function (limit) { return "最多で" + limit + "項目までしか選択できません"; },
|
12
|
+
formatLoadMore: function (pageNumber) { return "読込中・・・"; },
|
13
|
+
formatSearching: function () { return "検索中・・・"; }
|
14
|
+
});
|
15
|
+
})(jQuery);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 <Language> translation.
|
3
|
+
*
|
4
|
+
* Author: Swen Mun <longfinfunnel@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "결과 없음"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "너무 짧습니다. "+n+"글자 더 입력해주세요."; },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "너무 깁니다. "+n+"글자 지워주세요."; },
|
13
|
+
formatSelectionTooBig: function (limit) { return "최대 "+limit+"개까지만 선택하실 수 있습니다."; },
|
14
|
+
formatLoadMore: function (pageNumber) { return "불러오는 중…"; },
|
15
|
+
formatSearching: function () { return "검색 중…"; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 lithuanian translation.
|
3
|
+
*
|
4
|
+
* Author: CRONUS Karmalakas <cronus dot karmalakas at gmail dot com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "Atitikmenų nerasta"; },
|
11
|
+
formatInputTooShort: function (input, min) {
|
12
|
+
var n = min - input.length,
|
13
|
+
suffix = (n % 10 == 1) && (n % 100 != 11) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių');
|
14
|
+
return "Įrašykite dar " + n + " simbol" + suffix;
|
15
|
+
},
|
16
|
+
formatInputTooLong: function (input, max) {
|
17
|
+
var n = input.length - max,
|
18
|
+
suffix = (n % 10 == 1) && (n % 100 != 11) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių');
|
19
|
+
return "Pašalinkite " + n + " simbol" + suffix;
|
20
|
+
},
|
21
|
+
formatSelectionTooBig: function (limit) {
|
22
|
+
var n = limit,
|
23
|
+
suffix = (n % 10 == 1) && (n % 100 != 11) ? 'ą' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'us' : 'ų');
|
24
|
+
return "Jūs galite pasirinkti tik " + limit + " element" + suffix;
|
25
|
+
},
|
26
|
+
formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų..."; },
|
27
|
+
formatSearching: function () { return "Ieškoma..."; }
|
28
|
+
});
|
29
|
+
})(jQuery);
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Latvian translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.extend($.fn.select2.defaults, {
|
8
|
+
formatNoMatches: function () { return "Sakritību nav"; },
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Lūdzu ievadiet vēl " + n + " simbol" + (n == 11 ? "us" : (/^\d*[1]$/im.test(n)? "u" : "us")); },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Lūdzu ievadiet par " + n + " simbol" + (n == 11 ? "iem" : (/^\d*[1]$/im.test(n)? "u" : "iem")) + " mazāk"; },
|
11
|
+
formatSelectionTooBig: function (limit) { return "Jūs varat izvēlēties ne vairāk kā " + limit + " element" + (limit == 11 ? "us" : (/^\d*[1]$/im.test(limit)? "u" : "us")); },
|
12
|
+
formatLoadMore: function (pageNumber) { return "Datu ielāde..."; },
|
13
|
+
formatSearching: function () { return "Meklēšana..."; }
|
14
|
+
});
|
15
|
+
|
16
|
+
})(jQuery);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Macedonian translation.
|
3
|
+
*
|
4
|
+
* Author: Marko Aleksic <psybaron@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "Нема пронајдено совпаѓања"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Ве молиме внесете уште " + n + " карактер" + (n == 1 ? "" : "и"); },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Ве молиме внесете " + n + " помалку карактер" + (n == 1? "" : "и"); },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Можете да изберете само " + limit + " ставк" + (limit == 1 ? "а" : "и"); },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Вчитување резултати..."; },
|
15
|
+
formatSearching: function () { return "Пребарување..."; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Dutch translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.extend($.fn.select2.defaults, {
|
8
|
+
formatNoMatches: function () { return "Geen resultaten gevonden"; },
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vul " + n + " karakter" + (n == 1? "" : "s") + " meer in"; },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vul " + n + " karakter" + (n == 1? "" : "s") + " minder in"; },
|
11
|
+
formatSelectionTooBig: function (limit) { return "Maximaal " + limit + " item" + (limit == 1 ? "" : "s") + " toegestaan"; },
|
12
|
+
formatLoadMore: function (pageNumber) { return "Meer resultaten laden..."; },
|
13
|
+
formatSearching: function () { return "Zoeken..."; },
|
14
|
+
});
|
15
|
+
})(jQuery);
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Norwegian translation.
|
3
|
+
*
|
4
|
+
* Author: Torgeir Veimo <torgeir.veimo@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "Ingen treff"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vennligst skriv inn " + n + (n>1 ? " flere tegn" : " tegn til"); },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vennligst fjern " + n + " tegn"; },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Du kan velge maks " + limit + " elementer"; },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Laster flere resultater..."; },
|
15
|
+
formatSearching: function () { return "Søker..."; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
18
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Polish translation.
|
3
|
+
*
|
4
|
+
* Author: Jan Kondratowicz <jan@kondratowicz.pl>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
var pl_suffix = function(n) {
|
10
|
+
if(n == 1) return "";
|
11
|
+
if((n%100 > 1 && n%100 < 5) || (n%100 > 20 && n%10 > 1 && n%10 < 5)) return "i";
|
12
|
+
return "ów";
|
13
|
+
};
|
14
|
+
|
15
|
+
$.extend($.fn.select2.defaults, {
|
16
|
+
formatNoMatches: function () {
|
17
|
+
return "Brak wyników.";
|
18
|
+
},
|
19
|
+
formatInputTooShort: function (input, min) {
|
20
|
+
var n = min - input.length;
|
21
|
+
return "Wpisz jeszcze " + n + " znak" + pl_suffix(n) + ".";
|
22
|
+
},
|
23
|
+
formatInputTooLong: function (input, max) {
|
24
|
+
var n = input.length - max;
|
25
|
+
return "Wpisana fraza jest za długa o " + n + " znak" + pl_suffix(n) + ".";
|
26
|
+
},
|
27
|
+
formatSelectionTooBig: function (limit) {
|
28
|
+
return "Możesz zaznaczyć najwyżej " + limit + " element" + pl_suffix(limit) + ".";
|
29
|
+
},
|
30
|
+
formatLoadMore: function (pageNumber) {
|
31
|
+
return "Ładowanie wyników...";
|
32
|
+
},
|
33
|
+
formatSearching: function () {
|
34
|
+
return "Szukanie...";
|
35
|
+
}
|
36
|
+
});
|
37
|
+
})(jQuery);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Brazilian Portuguese translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.extend($.fn.select2.defaults, {
|
8
|
+
formatNoMatches: function () { return "Nenhum resultado encontrado"; },
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Informe " + n + " caracter" + (n == 1? "" : "es"); },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " caracter" + (n == 1? "" : "es"); },
|
11
|
+
formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
|
12
|
+
formatLoadMore: function (pageNumber) { return "Carregando mais resultados..."; },
|
13
|
+
formatSearching: function () { return "Buscando..."; }
|
14
|
+
});
|
15
|
+
})(jQuery);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Portuguese (Portugal) translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.extend($.fn.select2.defaults, {
|
8
|
+
formatNoMatches: function () { return "Nenhum resultado encontrado"; },
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduza " + n + " caracter" + (n == 1 ? "" : "es"); },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " caracter" + (n == 1 ? "" : "es"); },
|
11
|
+
formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
|
12
|
+
formatLoadMore: function (pageNumber) { return "A carregar mais resultados..."; },
|
13
|
+
formatSearching: function () { return "A pesquisar..."; }
|
14
|
+
});
|
15
|
+
})(jQuery);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Romanian translation.
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.extend($.fn.select2.defaults, {
|
8
|
+
formatNoMatches: function () { return "Nu a fost găsit nimic"; },
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vă rugăm să introduceți incă " + n + " caracter" + (n == 1 ? "" : "e"); },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vă rugăm să introduceți mai puțin de " + n + " caracter" + (n == 1? "" : "e"); },
|
11
|
+
formatSelectionTooBig: function (limit) { return "Aveți voie să selectați cel mult " + limit + " element" + (limit == 1 ? "" : "e"); },
|
12
|
+
formatLoadMore: function (pageNumber) { return "Se încarcă..."; },
|
13
|
+
formatSearching: function () { return "Căutare..."; }
|
14
|
+
});
|
15
|
+
})(jQuery);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Russian translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.extend($.fn.select2.defaults, {
|
8
|
+
formatNoMatches: function () { return "Совпадений не найдено"; },
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Пожалуйста, введите еще " + n + " символ" + (n == 1 ? "" : ((n > 1)&&(n < 5) ? "а" : "ов")); },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Пожалуйста, введите на " + n + " символ" + (n == 1 ? "" : ((n > 1)&&(n < 5)? "а" : "ов")) + " меньше"; },
|
11
|
+
formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit == 1 ? "а" : "ов"); },
|
12
|
+
formatLoadMore: function (pageNumber) { return "Загрузка данных..."; },
|
13
|
+
formatSearching: function () { return "Поиск..."; }
|
14
|
+
});
|
15
|
+
})(jQuery);
|
@@ -0,0 +1,48 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Slovak translation.
|
3
|
+
*
|
4
|
+
* Author: David Vallner <david@vallner.net>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
// use text for the numbers 2 through 4
|
9
|
+
var smallNumbers = {
|
10
|
+
2: function(masc) { return (masc ? "dva" : "dve"); },
|
11
|
+
3: function() { return "tri"; },
|
12
|
+
4: function() { return "štyri"; }
|
13
|
+
}
|
14
|
+
$.extend($.fn.select2.defaults, {
|
15
|
+
formatNoMatches: function () { return "Nenašli sa žiadne položky"; },
|
16
|
+
formatInputTooShort: function (input, min) {
|
17
|
+
var n = min - input.length;
|
18
|
+
if (n == 1) {
|
19
|
+
return "Prosím zadajte ešte jeden znak";
|
20
|
+
} else if (n <= 4) {
|
21
|
+
return "Prosím zadajte ešte ďalšie "+smallNumbers[n](true)+" znaky";
|
22
|
+
} else {
|
23
|
+
return "Prosím zadajte ešte ďalších "+n+" znakov";
|
24
|
+
}
|
25
|
+
},
|
26
|
+
formatInputTooLong: function (input, max) {
|
27
|
+
var n = input.length - max;
|
28
|
+
if (n == 1) {
|
29
|
+
return "Prosím zadajte o jeden znak menej";
|
30
|
+
} else if (n <= 4) {
|
31
|
+
return "Prosím zadajte o "+smallNumbers[n](true)+" znaky menej";
|
32
|
+
} else {
|
33
|
+
return "Prosím zadajte o "+n+" znakov menej";
|
34
|
+
}
|
35
|
+
},
|
36
|
+
formatSelectionTooBig: function (limit) {
|
37
|
+
if (limit == 1) {
|
38
|
+
return "Môžete zvoliť len jednu položku";
|
39
|
+
} else if (limit <= 4) {
|
40
|
+
return "Môžete zvoliť najviac "+smallNumbers[limit](false)+" položky";
|
41
|
+
} else {
|
42
|
+
return "Môžete zvoliť najviac "+limit+" položiek";
|
43
|
+
}
|
44
|
+
},
|
45
|
+
formatLoadMore: function (pageNumber) { return "Načítavajú sa ďalšie výsledky..."; },
|
46
|
+
formatSearching: function () { return "Vyhľadávanie..."; }
|
47
|
+
});
|
48
|
+
})(jQuery);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Swedish translation.
|
3
|
+
*
|
4
|
+
* Author: Jens Rantil <jens.rantil@telavox.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "Inga träffar"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Var god skriv in " + n + (n>1 ? " till tecken" : " tecken till"); },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Var god sudda ut " + n + " tecken"; },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Du kan max välja " + limit + " element"; },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Laddar fler resultat..."; },
|
15
|
+
formatSearching: function () { return "Söker..."; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Turkish translation.
|
3
|
+
*
|
4
|
+
* Author: Salim KAYABAŞI <salim.kayabasi@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "Sonuç bulunamadı"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "En az " + n + " karakter daha girmelisiniz"; },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return n + " karakter azaltmalısınız"; },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Sadece " + limit + " seçim yapabilirsiniz"; },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Daha fazla..."; },
|
15
|
+
formatSearching: function () { return "Aranıyor..."; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 <Language> translation.
|
3
|
+
*
|
4
|
+
* Author: bigmihail <bigmihail@bigmir.net>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "Нічого не знайдено"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length, s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Введіть буль ласка ще " + n + " символ" + s[ (n%100>4 && n%100<=20)? 2 : p[Math.min(n%10, 5)] ]; },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max, s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Введіть буль ласка на " + n + " символ" + s[ (n%100>4 && n%100<=20)? 2 : p[Math.min(n%10, 5)] ] + " менше"; },
|
13
|
+
formatSelectionTooBig: function (limit) {var s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Ви можете вибрати лише " + limit + " елемент" + s[ (limit%100>4 && limit%100<=20)? 2 : p[Math.min(limit%10, 5)] ]; },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Завантаження даних..."; },
|
15
|
+
formatSearching: function () { return "Пошук..."; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Vietnamese translation.
|
3
|
+
*
|
4
|
+
* Author: Long Nguyen <olragon@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
10
|
+
formatNoMatches: function () { return "Không tìm thấy kết quả"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vui lòng nhập nhiều hơn " + n + " ký tự" + (n == 1 ? "" : "s"); },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vui lòng nhập ít hơn " + n + " ký tự" + (n == 1? "" : "s"); },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Chỉ có thể chọn được " + limit + " tùy chọn" + (limit == 1 ? "" : "s"); },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Đang lấy thêm kết quả..."; },
|
15
|
+
formatSearching: function () { return "Đang tìm..."; }
|
16
|
+
});
|
17
|
+
})(jQuery);
|
18
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Chinese translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
$.extend($.fn.select2.defaults, {
|
7
|
+
formatNoMatches: function () { return "没有找到匹配项"; },
|
8
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";},
|
9
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "请删掉" + n + "个字符";},
|
10
|
+
formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; },
|
11
|
+
formatLoadMore: function (pageNumber) { return "加载结果中..."; },
|
12
|
+
formatSearching: function () { return "搜索中..."; }
|
13
|
+
});
|
14
|
+
})(jQuery);
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Traditional Chinese translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
$.extend($.fn.select2.defaults, {
|
7
|
+
formatNoMatches: function () { return "沒有找到相符的項目"; },
|
8
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "請再輸入" + n + "個字元";},
|
9
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "請刪掉" + n + "個字元";},
|
10
|
+
formatSelectionTooBig: function (limit) { return "你只能選擇最多" + limit + "項"; },
|
11
|
+
formatLoadMore: function (pageNumber) { return "載入中..."; },
|
12
|
+
formatSearching: function () { return "搜尋中..."; }
|
13
|
+
});
|
14
|
+
})(jQuery);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: select2-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-08-
|
13
|
+
date: 2013-08-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thor
|
@@ -116,6 +116,43 @@ files:
|
|
116
116
|
- vendor/assets/images/select2.png
|
117
117
|
- vendor/assets/images/select2x2.png
|
118
118
|
- vendor/assets/javascripts/select2.js
|
119
|
+
- vendor/assets/javascripts/select2_locale_ar.js
|
120
|
+
- vendor/assets/javascripts/select2_locale_ca.js
|
121
|
+
- vendor/assets/javascripts/select2_locale_cs.js
|
122
|
+
- vendor/assets/javascripts/select2_locale_da.js
|
123
|
+
- vendor/assets/javascripts/select2_locale_de.js
|
124
|
+
- vendor/assets/javascripts/select2_locale_el.js
|
125
|
+
- vendor/assets/javascripts/select2_locale_es.js
|
126
|
+
- vendor/assets/javascripts/select2_locale_et.js
|
127
|
+
- vendor/assets/javascripts/select2_locale_eu.js
|
128
|
+
- vendor/assets/javascripts/select2_locale_fi.js
|
129
|
+
- vendor/assets/javascripts/select2_locale_fr.js
|
130
|
+
- vendor/assets/javascripts/select2_locale_gl.js
|
131
|
+
- vendor/assets/javascripts/select2_locale_he.js
|
132
|
+
- vendor/assets/javascripts/select2_locale_hr.js
|
133
|
+
- vendor/assets/javascripts/select2_locale_hu.js
|
134
|
+
- vendor/assets/javascripts/select2_locale_id.js
|
135
|
+
- vendor/assets/javascripts/select2_locale_is.js
|
136
|
+
- vendor/assets/javascripts/select2_locale_it.js
|
137
|
+
- vendor/assets/javascripts/select2_locale_ja.js
|
138
|
+
- vendor/assets/javascripts/select2_locale_ko.js
|
139
|
+
- vendor/assets/javascripts/select2_locale_lt.js
|
140
|
+
- vendor/assets/javascripts/select2_locale_lv.js
|
141
|
+
- vendor/assets/javascripts/select2_locale_mk.js
|
142
|
+
- vendor/assets/javascripts/select2_locale_nl.js
|
143
|
+
- vendor/assets/javascripts/select2_locale_no.js
|
144
|
+
- vendor/assets/javascripts/select2_locale_pl.js
|
145
|
+
- vendor/assets/javascripts/select2_locale_pt-BR.js
|
146
|
+
- vendor/assets/javascripts/select2_locale_pt-PT.js
|
147
|
+
- vendor/assets/javascripts/select2_locale_ro.js
|
148
|
+
- vendor/assets/javascripts/select2_locale_ru.js
|
149
|
+
- vendor/assets/javascripts/select2_locale_sk.js
|
150
|
+
- vendor/assets/javascripts/select2_locale_sv.js
|
151
|
+
- vendor/assets/javascripts/select2_locale_tr.js
|
152
|
+
- vendor/assets/javascripts/select2_locale_ua.js
|
153
|
+
- vendor/assets/javascripts/select2_locale_vi.js
|
154
|
+
- vendor/assets/javascripts/select2_locale_zh-CN.js
|
155
|
+
- vendor/assets/javascripts/select2_locale_zh-TW.js
|
119
156
|
- vendor/assets/stylesheets/select2.css.scss
|
120
157
|
homepage: https://github.com/argerim/select2-rails
|
121
158
|
licenses: []
|