powerhome-select2-rails 3.5.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.md +74 -0
- data/Rakefile +11 -0
- data/lib/select2-rails.rb +7 -0
- data/lib/select2-rails/engine.rb +10 -0
- data/lib/select2-rails/source_file.rb +56 -0
- data/lib/select2-rails/version.rb +5 -0
- data/select2-rails.gemspec +22 -0
- data/vendor/assets/images/select2-spinner.gif +0 -0
- data/vendor/assets/images/select2.png +0 -0
- data/vendor/assets/images/select2x2.png +0 -0
- data/vendor/assets/javascripts/select2.js +3508 -0
- data/vendor/assets/javascripts/select2_locale_ar.js +19 -0
- data/vendor/assets/javascripts/select2_locale_az.js +20 -0
- data/vendor/assets/javascripts/select2_locale_bg.js +20 -0
- data/vendor/assets/javascripts/select2_locale_ca.js +19 -0
- data/vendor/assets/javascripts/select2_locale_cs.js +51 -0
- data/vendor/assets/javascripts/select2_locale_da.js +19 -0
- data/vendor/assets/javascripts/select2_locale_de.js +18 -0
- data/vendor/assets/javascripts/select2_locale_el.js +19 -0
- data/vendor/assets/javascripts/select2_locale_es.js +17 -0
- data/vendor/assets/javascripts/select2_locale_et.js +19 -0
- data/vendor/assets/javascripts/select2_locale_eu.js +45 -0
- data/vendor/assets/javascripts/select2_locale_fa.js +21 -0
- data/vendor/assets/javascripts/select2_locale_fi.js +30 -0
- data/vendor/assets/javascripts/select2_locale_fr.js +18 -0
- data/vendor/assets/javascripts/select2_locale_gl.js +45 -0
- data/vendor/assets/javascripts/select2_locale_he.js +19 -0
- data/vendor/assets/javascripts/select2_locale_hr.js +24 -0
- data/vendor/assets/javascripts/select2_locale_hu.js +17 -0
- data/vendor/assets/javascripts/select2_locale_id.js +19 -0
- data/vendor/assets/javascripts/select2_locale_is.js +17 -0
- data/vendor/assets/javascripts/select2_locale_it.js +17 -0
- data/vendor/assets/javascripts/select2_locale_ja.js +17 -0
- data/vendor/assets/javascripts/select2_locale_ka.js +19 -0
- data/vendor/assets/javascripts/select2_locale_ko.js +19 -0
- data/vendor/assets/javascripts/select2_locale_lt.js +26 -0
- data/vendor/assets/javascripts/select2_locale_lv.js +19 -0
- data/vendor/assets/javascripts/select2_locale_mk.js +19 -0
- data/vendor/assets/javascripts/select2_locale_ms.js +19 -0
- data/vendor/assets/javascripts/select2_locale_nl.js +17 -0
- data/vendor/assets/javascripts/select2_locale_no.js +20 -0
- data/vendor/assets/javascripts/select2_locale_pl.js +25 -0
- data/vendor/assets/javascripts/select2_locale_pt-BR.js +17 -0
- data/vendor/assets/javascripts/select2_locale_pt-PT.js +17 -0
- data/vendor/assets/javascripts/select2_locale_ro.js +17 -0
- data/vendor/assets/javascripts/select2_locale_rs.js +19 -0
- data/vendor/assets/javascripts/select2_locale_ru.js +23 -0
- data/vendor/assets/javascripts/select2_locale_sk.js +50 -0
- data/vendor/assets/javascripts/select2_locale_sv.js +19 -0
- data/vendor/assets/javascripts/select2_locale_th.js +19 -0
- data/vendor/assets/javascripts/select2_locale_tr.js +19 -0
- data/vendor/assets/javascripts/select2_locale_ug-CN.js +16 -0
- data/vendor/assets/javascripts/select2_locale_uk.js +25 -0
- data/vendor/assets/javascripts/select2_locale_vi.js +20 -0
- data/vendor/assets/javascripts/select2_locale_zh-CN.js +16 -0
- data/vendor/assets/javascripts/select2_locale_zh-TW.js +16 -0
- data/vendor/assets/stylesheets/select2-bootstrap.css +87 -0
- data/vendor/assets/stylesheets/select2.scss +704 -0
- metadata +164 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Arabic translation.
|
3
|
+
*
|
4
|
+
* Author: Adel KEDJOUR <adel@kedjour.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.fn.select2.locales['ar'] = {
|
10
|
+
formatNoMatches: function () { return "لم يتم العثور على مطابقات"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; if (n == 1){ return "الرجاء إدخال حرف واحد على الأكثر"; } return n == 2 ? "الرجاء إدخال حرفين على الأكثر" : "الرجاء إدخال " + n + " على الأكثر"; },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; if (n == 1){ return "الرجاء إدخال حرف واحد على الأقل"; } return n == 2 ? "الرجاء إدخال حرفين على الأقل" : "الرجاء إدخال " + n + " على الأقل "; },
|
13
|
+
formatSelectionTooBig: function (limit) { if (n == 1){ return "يمكنك أن تختار إختيار واحد فقط"; } return n == 2 ? "يمكنك أن تختار إختيارين فقط" : "يمكنك أن تختار " + n + " إختيارات فقط"; },
|
14
|
+
formatLoadMore: function (pageNumber) { return "تحميل المزيد من النتائج…"; },
|
15
|
+
formatSearching: function () { return "البحث…"; }
|
16
|
+
};
|
17
|
+
|
18
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['ar']);
|
19
|
+
})(jQuery);
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Azerbaijani translation.
|
3
|
+
*
|
4
|
+
* Author: Farhad Safarov <farhad.safarov@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.fn.select2.locales['az'] = {
|
10
|
+
formatMatches: function (matches) { return matches + " nəticə mövcuddur, hərəkət etdirmək üçün yuxarı və aşağı düymələrindən istifadə edin."; },
|
11
|
+
formatNoMatches: function () { return "Nəticə tapılmadı"; },
|
12
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return n + " simvol daxil edin"; },
|
13
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return n + " simvol silin"; },
|
14
|
+
formatSelectionTooBig: function (limit) { return "Sadəcə " + limit + " element seçə bilərsiniz"; },
|
15
|
+
formatLoadMore: function (pageNumber) { return "Daha çox nəticə yüklənir…"; },
|
16
|
+
formatSearching: function () { return "Axtarılır…"; }
|
17
|
+
};
|
18
|
+
|
19
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['az']);
|
20
|
+
})(jQuery);
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Bulgarian translation.
|
3
|
+
*
|
4
|
+
* @author Lubomir Vikev <lubomirvikev@gmail.com>
|
5
|
+
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
6
|
+
*/
|
7
|
+
(function ($) {
|
8
|
+
"use strict";
|
9
|
+
|
10
|
+
$.fn.select2.locales['bg'] = {
|
11
|
+
formatNoMatches: function () { return "Няма намерени съвпадения"; },
|
12
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Моля въведете още " + n + " символ" + (n > 1 ? "а" : ""); },
|
13
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Моля въведете с " + n + " по-малко символ" + (n > 1 ? "а" : ""); },
|
14
|
+
formatSelectionTooBig: function (limit) { return "Можете да направите до " + limit + (limit > 1 ? " избора" : " избор"); },
|
15
|
+
formatLoadMore: function (pageNumber) { return "Зареждат се още…"; },
|
16
|
+
formatSearching: function () { return "Търсене…"; }
|
17
|
+
};
|
18
|
+
|
19
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['bg']);
|
20
|
+
})(jQuery);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Catalan translation.
|
3
|
+
*
|
4
|
+
* Author: David Planella <david.planella@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.fn.select2.locales['ca'] = {
|
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
|
+
|
18
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['ca']);
|
19
|
+
})(jQuery);
|
@@ -0,0 +1,51 @@
|
|
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
|
+
$.fn.select2.locales['cs'] = {
|
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
|
+
|
50
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['cs']);
|
51
|
+
})(jQuery);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Danish translation.
|
3
|
+
*
|
4
|
+
* Author: Anders Jenbo <anders@jenbo.dk>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.fn.select2.locales['da'] = {
|
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
|
+
|
18
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['da']);
|
19
|
+
})(jQuery);
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 German translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.fn.select2.locales['de'] = {
|
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
|
+
formatMatches: function (matches) { return matches + " Ergebnis " + (matches > 1 ? "se" : "") + " verfügbar, zum Navigieren die Hoch-/Runter-Pfeiltasten verwenden."; }
|
15
|
+
};
|
16
|
+
|
17
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['de']);
|
18
|
+
})(jQuery);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Greek translation.
|
3
|
+
*
|
4
|
+
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.fn.select2.locales['el'] = {
|
10
|
+
formatNoMatches: function () { return "Δεν βρέθηκαν αποτελέσματα"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Παρακαλούμε εισάγετε " + n + " περισσότερο" + (n > 1 ? "υς" : "") + " χαρακτήρ" + (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
|
+
|
18
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['el']);
|
19
|
+
})(jQuery);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Spanish translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.fn.select2.locales['es'] = {
|
8
|
+
formatNoMatches: function () { return "No se encontraron resultados"; },
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Por favor, introduzca " + n + " car" + (n == 1? "ácter" : "acteres"); },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Por favor, elimine " + n + " car" + (n == 1? "ácter" : "acteres"); },
|
11
|
+
formatSelectionTooBig: function (limit) { return "Sólo puede seleccionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
|
12
|
+
formatLoadMore: function (pageNumber) { return "Cargando más resultados…"; },
|
13
|
+
formatSearching: function () { return "Buscando…"; }
|
14
|
+
};
|
15
|
+
|
16
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['es']);
|
17
|
+
})(jQuery);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Estonian translation.
|
3
|
+
*
|
4
|
+
* Author: Kuldar Kalvik <kuldar@kalvik.ee>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.fn.select2.locales['et'] = {
|
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
|
+
|
18
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['et']);
|
19
|
+
})(jQuery);
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Basque translation.
|
3
|
+
*
|
4
|
+
* Author: Julen Ruiz Aizpuru <julenx at gmail dot com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.fn.select2.locales['eu'] = {
|
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
|
+
|
44
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['eu']);
|
45
|
+
})(jQuery);
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Persian translation.
|
3
|
+
*
|
4
|
+
* Author: Ali Choopan <choopan@arsh.co>
|
5
|
+
* Author: Ebrahim Byagowi <ebrahim@gnu.org>
|
6
|
+
*/
|
7
|
+
(function ($) {
|
8
|
+
"use strict";
|
9
|
+
|
10
|
+
$.fn.select2.locales['fa'] = {
|
11
|
+
formatMatches: function (matches) { return matches + " نتیجه موجود است، کلیدهای جهت بالا و پایین را برای گشتن استفاده کنید."; },
|
12
|
+
formatNoMatches: function () { return "نتیجهای یافت نشد."; },
|
13
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "لطفاً " + n + " نویسه بیشتر وارد نمایید"; },
|
14
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "لطفاً " + n + " نویسه را حذف کنید."; },
|
15
|
+
formatSelectionTooBig: function (limit) { return "شما فقط میتوانید " + limit + " مورد را انتخاب کنید"; },
|
16
|
+
formatLoadMore: function (pageNumber) { return "در حال بارگیری موارد بیشتر…"; },
|
17
|
+
formatSearching: function () { return "در حال جستجو…"; }
|
18
|
+
};
|
19
|
+
|
20
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['fa']);
|
21
|
+
})(jQuery);
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Finnish translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
$.fn.select2.locales['fi'] = {
|
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 anna " + 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
|
+
|
29
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['fi']);
|
30
|
+
})(jQuery);
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 French translation
|
3
|
+
*/
|
4
|
+
(function ($) {
|
5
|
+
"use strict";
|
6
|
+
|
7
|
+
$.fn.select2.locales['fr'] = {
|
8
|
+
formatMatches: function (matches) { return matches + " résultats sont disponibles, utilisez les flèches haut et bas pour naviguer."; },
|
9
|
+
formatNoMatches: function () { return "Aucun résultat trouvé"; },
|
10
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Saisissez " + n + " caractère" + (n == 1? "" : "s") + " supplémentaire" + (n == 1? "" : "s") ; },
|
11
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Supprimez " + n + " caractère" + (n == 1? "" : "s"); },
|
12
|
+
formatSelectionTooBig: function (limit) { return "Vous pouvez seulement sélectionner " + limit + " élément" + (limit == 1 ? "" : "s"); },
|
13
|
+
formatLoadMore: function (pageNumber) { return "Chargement de résultats supplémentaires…"; },
|
14
|
+
formatSearching: function () { return "Recherche en cours…"; }
|
15
|
+
};
|
16
|
+
|
17
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['fr']);
|
18
|
+
})(jQuery);
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Galician translation
|
3
|
+
*
|
4
|
+
* Author: Leandro Regueiro <leandro.regueiro@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.fn.select2.locales['gl'] = {
|
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
|
+
|
44
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['gl']);
|
45
|
+
})(jQuery);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Hebrew translation.
|
3
|
+
*
|
4
|
+
* Author: Yakir Sitbon <http://www.yakirs.net/>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.fn.select2.locales['he'] = {
|
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
|
+
|
18
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['he']);
|
19
|
+
})(jQuery);
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Croatian translation.
|
3
|
+
*
|
4
|
+
* @author Edi Modrić <edi.modric@gmail.com>
|
5
|
+
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
6
|
+
*/
|
7
|
+
(function ($) {
|
8
|
+
"use strict";
|
9
|
+
|
10
|
+
$.fn.select2.locales['hr'] = {
|
11
|
+
formatNoMatches: function () { return "Nema rezultata"; },
|
12
|
+
formatInputTooShort: function (input, min) { return "Unesite još" + character(min - input.length); },
|
13
|
+
formatInputTooLong: function (input, max) { return "Unesite" + character(input.length - max) + " manje"; },
|
14
|
+
formatSelectionTooBig: function (limit) { return "Maksimalan broj odabranih stavki je " + limit; },
|
15
|
+
formatLoadMore: function (pageNumber) { return "Učitavanje rezultata…"; },
|
16
|
+
formatSearching: function () { return "Pretraga…"; }
|
17
|
+
};
|
18
|
+
|
19
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['hr']);
|
20
|
+
|
21
|
+
function character (n) {
|
22
|
+
return " " + n + " znak" + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 19) ? n%10 > 1 ? "a" : "" : "ova");
|
23
|
+
}
|
24
|
+
})(jQuery);
|