select2-rails 3.5.4 → 3.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/Rakefile +0 -1
- data/lib/select2-rails/engine.rb +5 -1
- data/lib/select2-rails/source_file.rb +13 -32
- data/lib/select2-rails/version.rb +1 -1
- data/{app → vendor}/assets/images/select2-spinner.gif +0 -0
- data/{app → vendor}/assets/images/select2.png +0 -0
- data/{app → vendor}/assets/images/select2x2.png +0 -0
- data/{app → vendor}/assets/javascripts/select2.js +735 -261
- data/vendor/assets/javascripts/select2_locale_ar.js +19 -0
- data/vendor/assets/javascripts/select2_locale_az.js +20 -0
- data/{app → vendor}/assets/javascripts/select2_locale_bg.js +12 -9
- data/{app → vendor}/assets/javascripts/select2_locale_ca.js +6 -4
- data/{app → vendor}/assets/javascripts/select2_locale_cs.js +6 -4
- data/{app → vendor}/assets/javascripts/select2_locale_da.js +4 -2
- data/{app → vendor}/assets/javascripts/select2_locale_de.js +7 -4
- data/{app → vendor}/assets/javascripts/select2_locale_el.js +11 -9
- data/{app → vendor}/assets/javascripts/select2_locale_es.js +10 -6
- data/{app → vendor}/assets/javascripts/select2_locale_et.js +4 -2
- data/{app → vendor}/assets/javascripts/select2_locale_eu.js +6 -4
- data/vendor/assets/javascripts/select2_locale_fa.js +21 -0
- data/{app → vendor}/assets/javascripts/select2_locale_fi.js +6 -4
- data/{app → vendor}/assets/javascripts/select2_locale_fr.js +9 -6
- data/{app → vendor}/assets/javascripts/select2_locale_gl.js +6 -4
- data/{app → vendor}/assets/javascripts/select2_locale_he.js +6 -4
- data/vendor/assets/javascripts/select2_locale_hr.js +24 -0
- data/{app → vendor}/assets/javascripts/select2_locale_hu.js +7 -5
- data/vendor/assets/javascripts/select2_locale_id.js +21 -0
- data/{app → vendor}/assets/javascripts/select2_locale_is.js +8 -7
- data/{app → vendor}/assets/javascripts/select2_locale_it.js +6 -4
- data/{app → vendor}/assets/javascripts/select2_locale_ja.js +4 -2
- data/vendor/assets/javascripts/select2_locale_ka.js +19 -0
- data/{app → vendor}/assets/javascripts/select2_locale_ko.js +6 -4
- data/vendor/assets/javascripts/select2_locale_lt.js +26 -0
- data/{app → vendor}/assets/javascripts/select2_locale_lv.js +12 -9
- data/{app → vendor}/assets/javascripts/select2_locale_mk.js +6 -4
- data/{app → vendor}/assets/javascripts/select2_locale_ms.js +8 -4
- data/vendor/assets/javascripts/select2_locale_nb.js +22 -0
- data/{app → vendor}/assets/javascripts/select2_locale_nl.js +9 -7
- data/{app → vendor}/assets/javascripts/select2_locale_no.js +6 -4
- data/vendor/assets/javascripts/select2_locale_pl.js +54 -0
- data/{app → vendor}/assets/javascripts/select2_locale_pt-BR.js +9 -6
- data/{app → vendor}/assets/javascripts/select2_locale_pt-PT.js +6 -4
- data/{app → vendor}/assets/javascripts/select2_locale_ro.js +6 -4
- data/vendor/assets/javascripts/select2_locale_rs.js +19 -0
- data/vendor/assets/javascripts/select2_locale_ru.js +23 -0
- data/{app → vendor}/assets/javascripts/select2_locale_sk.js +15 -13
- data/{app → vendor}/assets/javascripts/select2_locale_sv.js +6 -4
- data/{app → vendor}/assets/javascripts/select2_locale_th.js +6 -4
- data/{app → vendor}/assets/javascripts/select2_locale_tr.js +7 -4
- data/vendor/assets/javascripts/select2_locale_ug-CN.js +16 -0
- data/vendor/assets/javascripts/select2_locale_uk.js +25 -0
- data/{app → vendor}/assets/javascripts/select2_locale_vi.js +10 -8
- data/{app → vendor}/assets/javascripts/select2_locale_zh-CN.js +6 -4
- data/{app → vendor}/assets/javascripts/select2_locale_zh-TW.js +6 -4
- data/{app → vendor}/assets/stylesheets/select2-bootstrap.css +1 -1
- data/{app/assets/stylesheets/select2.css.erb → vendor/assets/stylesheets/select2.scss} +136 -62
- metadata +66 -61
- data/app/assets/javascripts/select2_locale_ar.js +0 -17
- data/app/assets/javascripts/select2_locale_fa.js +0 -17
- data/app/assets/javascripts/select2_locale_hr.js +0 -42
- data/app/assets/javascripts/select2_locale_id.js +0 -17
- data/app/assets/javascripts/select2_locale_lt.js +0 -29
- data/app/assets/javascripts/select2_locale_pl.js +0 -37
- data/app/assets/javascripts/select2_locale_ru.js +0 -15
- data/app/assets/javascripts/select2_locale_uk.js +0 -17
@@ -4,12 +4,14 @@
|
|
4
4
|
(function ($) {
|
5
5
|
"use strict";
|
6
6
|
|
7
|
-
$.
|
7
|
+
$.fn.select2.locales['it'] = {
|
8
8
|
formatNoMatches: function () { return "Nessuna corrispondenza trovata"; },
|
9
9
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter" + (n == 1? "e" : "i"); },
|
10
10
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Inserisci " + n + " caratter" + (n == 1? "e" : "i") + " in meno"; },
|
11
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
|
-
}
|
12
|
+
formatLoadMore: function (pageNumber) { return "Caricamento in corso…"; },
|
13
|
+
formatSearching: function () { return "Ricerca…"; }
|
14
|
+
};
|
15
|
+
|
16
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['it']);
|
15
17
|
})(jQuery);
|
@@ -4,12 +4,14 @@
|
|
4
4
|
(function ($) {
|
5
5
|
"use strict";
|
6
6
|
|
7
|
-
$.
|
7
|
+
$.fn.select2.locales['ja'] = {
|
8
8
|
formatNoMatches: function () { return "該当なし"; },
|
9
9
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "後" + n + "文字入れてください"; },
|
10
10
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "検索文字列が" + n + "文字長すぎます"; },
|
11
11
|
formatSelectionTooBig: function (limit) { return "最多で" + limit + "項目までしか選択できません"; },
|
12
12
|
formatLoadMore: function (pageNumber) { return "読込中・・・"; },
|
13
13
|
formatSearching: function () { return "検索中・・・"; }
|
14
|
-
}
|
14
|
+
};
|
15
|
+
|
16
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['ja']);
|
15
17
|
})(jQuery);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Georgian (Kartuli) translation.
|
3
|
+
*
|
4
|
+
* Author: Dimitri Kurashvili dimakura@gmail.com
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.fn.select2.locales['ka'] = {
|
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['ka']);
|
19
|
+
})(jQuery);
|
@@ -1,17 +1,19 @@
|
|
1
1
|
/**
|
2
|
-
* Select2
|
2
|
+
* Select2 Korean translation.
|
3
3
|
*
|
4
|
-
*
|
4
|
+
* @author Swen Mun <longfinfunnel@gmail.com>
|
5
5
|
*/
|
6
6
|
(function ($) {
|
7
7
|
"use strict";
|
8
8
|
|
9
|
-
$.
|
9
|
+
$.fn.select2.locales['ko'] = {
|
10
10
|
formatNoMatches: function () { return "결과 없음"; },
|
11
11
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "너무 짧습니다. "+n+"글자 더 입력해주세요."; },
|
12
12
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "너무 깁니다. "+n+"글자 지워주세요."; },
|
13
13
|
formatSelectionTooBig: function (limit) { return "최대 "+limit+"개까지만 선택하실 수 있습니다."; },
|
14
14
|
formatLoadMore: function (pageNumber) { return "불러오는 중…"; },
|
15
15
|
formatSearching: function () { return "검색 중…"; }
|
16
|
-
}
|
16
|
+
};
|
17
|
+
|
18
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['ko']);
|
17
19
|
})(jQuery);
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Lithuanian translation.
|
3
|
+
*
|
4
|
+
* @author CRONUS Karmalakas <cronus dot karmalakas at gmail dot com>
|
5
|
+
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
6
|
+
*/
|
7
|
+
(function ($) {
|
8
|
+
"use strict";
|
9
|
+
|
10
|
+
$.fn.select2.locales['lt'] = {
|
11
|
+
formatNoMatches: function () { return "Atitikmenų nerasta"; },
|
12
|
+
formatInputTooShort: function (input, min) { return "Įrašykite dar" + character(min - input.length); },
|
13
|
+
formatInputTooLong: function (input, max) { return "Pašalinkite" + character(input.length - max); },
|
14
|
+
formatSelectionTooBig: function (limit) {
|
15
|
+
return "Jūs galite pasirinkti tik " + limit + " element" + ((limit%100 > 9 && limit%100 < 21) || limit%10 == 0 ? "ų" : limit%10 > 1 ? "us" : "ą");
|
16
|
+
},
|
17
|
+
formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų…"; },
|
18
|
+
formatSearching: function () { return "Ieškoma…"; }
|
19
|
+
};
|
20
|
+
|
21
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['lt']);
|
22
|
+
|
23
|
+
function character (n) {
|
24
|
+
return " " + n + " simbol" + ((n%100 > 9 && n%100 < 21) || n%10 == 0 ? "ių" : n%10 > 1 ? "ius" : "į");
|
25
|
+
}
|
26
|
+
})(jQuery);
|
@@ -1,16 +1,19 @@
|
|
1
1
|
/**
|
2
|
-
* Select2 Latvian translation
|
2
|
+
* Select2 Latvian translation.
|
3
|
+
*
|
4
|
+
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
3
5
|
*/
|
4
6
|
(function ($) {
|
5
7
|
"use strict";
|
6
8
|
|
7
|
-
$.
|
9
|
+
$.fn.select2.locales['lv'] = {
|
8
10
|
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" :
|
10
|
-
formatInputTooLong: function (input, max) { var n = input.length - max; return "Lūdzu ievadiet par " + n + " simbol" + (n == 11 ? "iem" :
|
11
|
-
formatSelectionTooBig: function (limit) { return "Jūs varat izvēlēties ne vairāk kā " + limit + " element" + (limit == 11 ? "us" :
|
12
|
-
formatLoadMore: function (pageNumber) { return "Datu ielāde
|
13
|
-
formatSearching: function () { return "Meklēšana
|
14
|
-
}
|
15
|
-
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Lūdzu ievadiet vēl " + n + " simbol" + (n == 11 ? "us" : n%10 == 1 ? "u" : "us"); },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Lūdzu ievadiet par " + n + " simbol" + (n == 11 ? "iem" : n%10 == 1 ? "u" : "iem") + " mazāk"; },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Jūs varat izvēlēties ne vairāk kā " + limit + " element" + (limit == 11 ? "us" : limit%10 == 1 ? "u" : "us"); },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Datu ielāde…"; },
|
15
|
+
formatSearching: function () { return "Meklēšana…"; }
|
16
|
+
};
|
17
|
+
|
18
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['lv']);
|
16
19
|
})(jQuery);
|
@@ -6,12 +6,14 @@
|
|
6
6
|
(function ($) {
|
7
7
|
"use strict";
|
8
8
|
|
9
|
-
$.
|
9
|
+
$.fn.select2.locales['mk'] = {
|
10
10
|
formatNoMatches: function () { return "Нема пронајдено совпаѓања"; },
|
11
11
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Ве молиме внесете уште " + n + " карактер" + (n == 1 ? "" : "и"); },
|
12
12
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Ве молиме внесете " + n + " помалку карактер" + (n == 1? "" : "и"); },
|
13
13
|
formatSelectionTooBig: function (limit) { return "Можете да изберете само " + limit + " ставк" + (limit == 1 ? "а" : "и"); },
|
14
|
-
formatLoadMore: function (pageNumber) { return "Вчитување
|
15
|
-
formatSearching: function () { return "
|
16
|
-
}
|
14
|
+
formatLoadMore: function (pageNumber) { return "Вчитување резултати…"; },
|
15
|
+
formatSearching: function () { return "Пребарување…"; }
|
16
|
+
};
|
17
|
+
|
18
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['mk']);
|
17
19
|
})(jQuery);
|
@@ -2,16 +2,20 @@
|
|
2
2
|
* Select2 Malay translation.
|
3
3
|
*
|
4
4
|
* Author: Kepoweran <kepoweran@gmail.com>
|
5
|
+
* Author: Salahuddin Hairai <mr.od3n@gmail.com>
|
5
6
|
*/
|
6
7
|
(function ($) {
|
7
8
|
"use strict";
|
8
9
|
|
9
|
-
$.
|
10
|
+
$.fn.select2.locales['ms'] = {
|
11
|
+
formatMatches: function (matches) { if (matches === 1) { return "Satu keputusan ditemui, tekan enter untuk memilih."; } return matches + " keputusan ditemui, gunakan kekunci anak panah ke atas dan ke bawah untuk menavigasi."; },
|
10
12
|
formatNoMatches: function () { return "Tiada padanan yang ditemui"; },
|
11
13
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Sila masukkan " + n + " aksara lagi"; },
|
12
14
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Sila hapuskan " + n + " aksara"; },
|
13
15
|
formatSelectionTooBig: function (limit) { return "Anda hanya boleh memilih " + limit + " pilihan"; },
|
14
|
-
formatLoadMore: function (pageNumber) { return "Sedang memuatkan keputusan
|
15
|
-
formatSearching: function () { return "Mencari
|
16
|
-
}
|
16
|
+
formatLoadMore: function (pageNumber) { return "Sedang memuatkan keputusan…"; },
|
17
|
+
formatSearching: function () { return "Mencari…"; }
|
18
|
+
};
|
19
|
+
|
20
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['ms']);
|
17
21
|
})(jQuery);
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Norwegian Bokmål translation.
|
3
|
+
*
|
4
|
+
* Author: Torgeir Veimo <torgeir.veimo@gmail.com>
|
5
|
+
* Author: Bjørn Johansen <post@bjornjohansen.no>
|
6
|
+
*/
|
7
|
+
(function ($) {
|
8
|
+
"use strict";
|
9
|
+
|
10
|
+
$.fn.select2.locales['nb'] = {
|
11
|
+
formatMatches: function (matches) { if (matches === 1) { return "Ett resultat er tilgjengelig, trykk enter for å velge det."; } return matches + " resultater er tilgjengelig. Bruk piltastene opp og ned for å navigere."; },
|
12
|
+
formatNoMatches: function () { return "Ingen treff"; },
|
13
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vennligst skriv inn " + n + (n>1 ? " flere tegn" : " tegn til"); },
|
14
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vennligst fjern " + n + " tegn"; },
|
15
|
+
formatSelectionTooBig: function (limit) { return "Du kan velge maks " + limit + " elementer"; },
|
16
|
+
formatLoadMore: function (pageNumber) { return "Laster flere resultater …"; },
|
17
|
+
formatSearching: function () { return "Søker …"; }
|
18
|
+
};
|
19
|
+
|
20
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['no']);
|
21
|
+
})(jQuery);
|
22
|
+
|
@@ -4,12 +4,14 @@
|
|
4
4
|
(function ($) {
|
5
5
|
"use strict";
|
6
6
|
|
7
|
-
$.
|
7
|
+
$.fn.select2.locales['nl'] = {
|
8
8
|
formatNoMatches: function () { return "Geen resultaten gevonden"; },
|
9
|
-
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vul " + n + " karakter" + (n == 1? "" : "s") + "
|
10
|
-
formatInputTooLong: function (input, max) { var n = input.length - max; return "
|
9
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vul nog " + n + " karakter" + (n == 1? "" : "s") + " in"; },
|
10
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Haal " + n + " karakter" + (n == 1? "" : "s") + " weg"; },
|
11
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
|
-
|
12
|
+
formatLoadMore: function (pageNumber) { return "Meer resultaten laden…"; },
|
13
|
+
formatSearching: function () { return "Zoeken…"; }
|
14
|
+
};
|
15
|
+
|
16
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['nl']);
|
17
|
+
})(jQuery);
|
@@ -6,13 +6,15 @@
|
|
6
6
|
(function ($) {
|
7
7
|
"use strict";
|
8
8
|
|
9
|
-
$.
|
9
|
+
$.fn.select2.locales['no'] = {
|
10
10
|
formatNoMatches: function () { return "Ingen treff"; },
|
11
11
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vennligst skriv inn " + n + (n>1 ? " flere tegn" : " tegn til"); },
|
12
12
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vennligst fjern " + n + " tegn"; },
|
13
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
|
-
}
|
14
|
+
formatLoadMore: function (pageNumber) { return "Laster flere resultater…"; },
|
15
|
+
formatSearching: function () { return "Søker…"; }
|
16
|
+
};
|
17
|
+
|
18
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['no']);
|
17
19
|
})(jQuery);
|
18
20
|
|
@@ -0,0 +1,54 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Polish translation.
|
3
|
+
*
|
4
|
+
* @author Jan Kondratowicz <jan@kondratowicz.pl>
|
5
|
+
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
6
|
+
* @author Michał Połtyn <mike@poltyn.com>
|
7
|
+
* @author Damian Zajkowski <damian.zajkowski@gmail.com>
|
8
|
+
*/
|
9
|
+
(function($) {
|
10
|
+
"use strict";
|
11
|
+
|
12
|
+
$.fn.select2.locales['pl'] = {
|
13
|
+
formatNoMatches: function() {
|
14
|
+
return "Brak wyników";
|
15
|
+
},
|
16
|
+
formatInputTooShort: function(input, min) {
|
17
|
+
return "Wpisz co najmniej" + character(min - input.length, "znak", "i");
|
18
|
+
},
|
19
|
+
formatInputTooLong: function(input, max) {
|
20
|
+
return "Wpisana fraza jest za długa o" + character(input.length - max, "znak", "i");
|
21
|
+
},
|
22
|
+
formatSelectionTooBig: function(limit) {
|
23
|
+
return "Możesz zaznaczyć najwyżej" + character(limit, "element", "y");
|
24
|
+
},
|
25
|
+
formatLoadMore: function(pageNumber) {
|
26
|
+
return "Ładowanie wyników…";
|
27
|
+
},
|
28
|
+
formatSearching: function() {
|
29
|
+
return "Szukanie…";
|
30
|
+
}
|
31
|
+
};
|
32
|
+
|
33
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['pl']);
|
34
|
+
|
35
|
+
function character(n, word, pluralSuffix) {
|
36
|
+
//Liczba pojedyncza - brak suffiksu
|
37
|
+
//jeden znak
|
38
|
+
//jeden element
|
39
|
+
var suffix = '';
|
40
|
+
if (n > 1 && n < 5) {
|
41
|
+
//Liczaba mnoga ilość od 2 do 4 - własny suffiks
|
42
|
+
//Dwa znaki, trzy znaki, cztery znaki.
|
43
|
+
//Dwa elementy, trzy elementy, cztery elementy
|
44
|
+
suffix = pluralSuffix;
|
45
|
+
} else if (n == 0 || n >= 5) {
|
46
|
+
//Ilość 0 suffiks ów
|
47
|
+
//Liczaba mnoga w ilości 5 i więcej - suffiks ów (nie poprawny dla wszystkich wyrazów, np. 100 wiadomości)
|
48
|
+
//Zero znaków, Pięć znaków, sześć znaków, siedem znaków, osiem znaków.
|
49
|
+
//Zero elementów Pięć elementów, sześć elementów, siedem elementów, osiem elementów.
|
50
|
+
suffix = 'ów';
|
51
|
+
}
|
52
|
+
return " " + n + " " + word + suffix;
|
53
|
+
}
|
54
|
+
})(jQuery);
|
@@ -4,12 +4,15 @@
|
|
4
4
|
(function ($) {
|
5
5
|
"use strict";
|
6
6
|
|
7
|
-
$.
|
7
|
+
$.fn.select2.locales['pt-BR'] = {
|
8
8
|
formatNoMatches: function () { return "Nenhum resultado encontrado"; },
|
9
|
-
|
10
|
-
|
9
|
+
formatAjaxError: function () { return "Erro na busca"; },
|
10
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Digite " + (min == 1 ? "" : "mais") + " " + n + " caracter" + (n == 1? "" : "es"); },
|
11
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " caracter" + (n == 1? "" : "es"); },
|
11
12
|
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
|
-
}
|
13
|
+
formatLoadMore: function (pageNumber) { return "Carregando mais resultados…"; },
|
14
|
+
formatSearching: function () { return "Buscando…"; }
|
15
|
+
};
|
16
|
+
|
17
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['pt-BR']);
|
15
18
|
})(jQuery);
|
@@ -4,12 +4,14 @@
|
|
4
4
|
(function ($) {
|
5
5
|
"use strict";
|
6
6
|
|
7
|
-
$.
|
7
|
+
$.fn.select2.locales['pt-PT'] = {
|
8
8
|
formatNoMatches: function () { return "Nenhum resultado encontrado"; },
|
9
9
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduza " + n + " car" + (n == 1 ? "ácter" : "acteres"); },
|
10
10
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " car" + (n == 1 ? "ácter" : "acteres"); },
|
11
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
|
-
}
|
12
|
+
formatLoadMore: function (pageNumber) { return "A carregar mais resultados…"; },
|
13
|
+
formatSearching: function () { return "A pesquisar…"; }
|
14
|
+
};
|
15
|
+
|
16
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['pt-PT']);
|
15
17
|
})(jQuery);
|
@@ -4,12 +4,14 @@
|
|
4
4
|
(function ($) {
|
5
5
|
"use strict";
|
6
6
|
|
7
|
-
$.
|
7
|
+
$.fn.select2.locales['ro'] = {
|
8
8
|
formatNoMatches: function () { return "Nu a fost găsit nimic"; },
|
9
9
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vă rugăm să introduceți incă " + n + " caracter" + (n == 1 ? "" : "e"); },
|
10
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
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
|
-
}
|
12
|
+
formatLoadMore: function (pageNumber) { return "Se încarcă…"; },
|
13
|
+
formatSearching: function () { return "Căutare…"; }
|
14
|
+
};
|
15
|
+
|
16
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['ro']);
|
15
17
|
})(jQuery);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Serbian translation.
|
3
|
+
*
|
4
|
+
* @author Limon Monte <limon.monte@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.fn.select2.locales['rs'] = {
|
10
|
+
formatNoMatches: function () { return "Ništa nije pronađeno"; },
|
11
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Ukucajte bar još " + n + " simbol" + (n % 10 == 1 && n % 100 != 11 ? "" : "a"); },
|
12
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Obrišite " + n + " simbol" + (n % 10 == 1 && n % 100 != 11 ? "" : "a"); },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Možete izabrati samo " + limit + " stavk" + (limit % 10 == 1 && limit % 100 != 11 ? "u" : (limit % 10 >= 2 && limit % 10 <= 4 && (limit % 100 < 12 || limit % 100 > 14)? "e" : "i")); },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Preuzimanje još rezultata…"; },
|
15
|
+
formatSearching: function () { return "Pretraga…"; }
|
16
|
+
};
|
17
|
+
|
18
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['rs']);
|
19
|
+
})(jQuery);
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Russian translation.
|
3
|
+
*
|
4
|
+
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.fn.select2.locales['ru'] = {
|
10
|
+
formatNoMatches: function () { return "Совпадений не найдено"; },
|
11
|
+
formatInputTooShort: function (input, min) { return "Пожалуйста, введите еще хотя бы" + character(min - input.length); },
|
12
|
+
formatInputTooLong: function (input, max) { return "Пожалуйста, введите на" + character(input.length - max) + " меньше"; },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit%10 == 1 && limit%100 != 11 ? "а" : "ов"); },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Загрузка данных…"; },
|
15
|
+
formatSearching: function () { return "Поиск…"; }
|
16
|
+
};
|
17
|
+
|
18
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['ru']);
|
19
|
+
|
20
|
+
function character (n) {
|
21
|
+
return " " + n + " символ" + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 20) ? n%10 > 1 ? "a" : "" : "ов");
|
22
|
+
}
|
23
|
+
})(jQuery);
|
@@ -10,39 +10,41 @@
|
|
10
10
|
2: function(masc) { return (masc ? "dva" : "dve"); },
|
11
11
|
3: function() { return "tri"; },
|
12
12
|
4: function() { return "štyri"; }
|
13
|
-
}
|
14
|
-
$.
|
13
|
+
};
|
14
|
+
$.fn.select2.locales['sk'] = {
|
15
15
|
formatNoMatches: function () { return "Nenašli sa žiadne položky"; },
|
16
16
|
formatInputTooShort: function (input, min) {
|
17
17
|
var n = min - input.length;
|
18
18
|
if (n == 1) {
|
19
|
-
return "Prosím zadajte ešte jeden znak";
|
19
|
+
return "Prosím, zadajte ešte jeden znak";
|
20
20
|
} else if (n <= 4) {
|
21
|
-
return "Prosím zadajte ešte ďalšie "+smallNumbers[n](true)+" znaky";
|
21
|
+
return "Prosím, zadajte ešte ďalšie "+smallNumbers[n](true)+" znaky";
|
22
22
|
} else {
|
23
|
-
return "Prosím zadajte ešte ďalších "+n+" znakov";
|
23
|
+
return "Prosím, zadajte ešte ďalších "+n+" znakov";
|
24
24
|
}
|
25
25
|
},
|
26
26
|
formatInputTooLong: function (input, max) {
|
27
27
|
var n = input.length - max;
|
28
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";
|
29
|
+
return "Prosím, zadajte o jeden znak menej";
|
30
|
+
} else if (n >= 2 && n <= 4) {
|
31
|
+
return "Prosím, zadajte o "+smallNumbers[n](true)+" znaky menej";
|
32
32
|
} else {
|
33
|
-
return "Prosím zadajte o "+n+" znakov menej";
|
33
|
+
return "Prosím, zadajte o "+n+" znakov menej";
|
34
34
|
}
|
35
35
|
},
|
36
36
|
formatSelectionTooBig: function (limit) {
|
37
37
|
if (limit == 1) {
|
38
38
|
return "Môžete zvoliť len jednu položku";
|
39
|
-
} else if (limit <= 4) {
|
39
|
+
} else if (limit >= 2 && limit <= 4) {
|
40
40
|
return "Môžete zvoliť najviac "+smallNumbers[limit](false)+" položky";
|
41
41
|
} else {
|
42
42
|
return "Môžete zvoliť najviac "+limit+" položiek";
|
43
43
|
}
|
44
44
|
},
|
45
|
-
formatLoadMore: function (pageNumber) { return "Načítavajú sa ďalšie výsledky
|
46
|
-
formatSearching: function () { return "Vyhľadávanie
|
47
|
-
}
|
45
|
+
formatLoadMore: function (pageNumber) { return "Načítavajú sa ďalšie výsledky…"; },
|
46
|
+
formatSearching: function () { return "Vyhľadávanie…"; }
|
47
|
+
};
|
48
|
+
|
49
|
+
$.extend($.fn.select2.defaults, $.fn.select2.locales['sk']);
|
48
50
|
})(jQuery);
|