select2-rails 3.5.0 → 4.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +35 -6
  3. data/Rakefile +1 -3
  4. data/lib/select2-rails/engine.rb +1 -1
  5. data/lib/select2-rails/source_file.rb +19 -30
  6. data/lib/select2-rails/version.rb +1 -1
  7. data/select2-rails.gemspec +1 -1
  8. data/vendor/assets/javascripts/select2-full.js +6820 -0
  9. data/vendor/assets/javascripts/select2.js +6108 -0
  10. data/vendor/assets/javascripts/select2_locale_af.js +3 -0
  11. data/vendor/assets/javascripts/select2_locale_ar.js +3 -0
  12. data/vendor/assets/javascripts/select2_locale_az.js +3 -0
  13. data/vendor/assets/javascripts/select2_locale_bg.js +3 -0
  14. data/vendor/assets/javascripts/select2_locale_bn.js +3 -0
  15. data/vendor/assets/javascripts/select2_locale_bs.js +3 -0
  16. data/vendor/assets/javascripts/select2_locale_ca.js +3 -0
  17. data/vendor/assets/javascripts/select2_locale_cs.js +3 -0
  18. data/vendor/assets/javascripts/select2_locale_da.js +3 -0
  19. data/vendor/assets/javascripts/select2_locale_de.js +3 -0
  20. data/vendor/assets/javascripts/select2_locale_dsb.js +3 -0
  21. data/vendor/assets/javascripts/select2_locale_el.js +3 -0
  22. data/vendor/assets/javascripts/select2_locale_en.js +3 -0
  23. data/vendor/assets/javascripts/select2_locale_es.js +3 -0
  24. data/vendor/assets/javascripts/select2_locale_et.js +3 -0
  25. data/vendor/assets/javascripts/select2_locale_eu.js +3 -0
  26. data/vendor/assets/javascripts/select2_locale_fa.js +3 -0
  27. data/vendor/assets/javascripts/select2_locale_fi.js +3 -0
  28. data/vendor/assets/javascripts/select2_locale_fr.js +3 -0
  29. data/vendor/assets/javascripts/select2_locale_gl.js +3 -0
  30. data/vendor/assets/javascripts/select2_locale_he.js +3 -0
  31. data/vendor/assets/javascripts/select2_locale_hi.js +3 -0
  32. data/vendor/assets/javascripts/select2_locale_hr.js +3 -0
  33. data/vendor/assets/javascripts/select2_locale_hsb.js +3 -0
  34. data/vendor/assets/javascripts/select2_locale_hu.js +3 -0
  35. data/vendor/assets/javascripts/select2_locale_hy.js +3 -0
  36. data/vendor/assets/javascripts/select2_locale_id.js +3 -0
  37. data/vendor/assets/javascripts/select2_locale_is.js +3 -0
  38. data/vendor/assets/javascripts/select2_locale_it.js +3 -0
  39. data/vendor/assets/javascripts/select2_locale_ja.js +3 -0
  40. data/vendor/assets/javascripts/select2_locale_ka.js +3 -0
  41. data/vendor/assets/javascripts/select2_locale_km.js +3 -0
  42. data/vendor/assets/javascripts/select2_locale_ko.js +3 -0
  43. data/vendor/assets/javascripts/select2_locale_lt.js +3 -0
  44. data/vendor/assets/javascripts/select2_locale_lv.js +3 -0
  45. data/vendor/assets/javascripts/select2_locale_mk.js +3 -0
  46. data/vendor/assets/javascripts/select2_locale_ms.js +3 -0
  47. data/vendor/assets/javascripts/select2_locale_nb.js +3 -0
  48. data/vendor/assets/javascripts/select2_locale_ne.js +3 -0
  49. data/vendor/assets/javascripts/select2_locale_nl.js +3 -0
  50. data/vendor/assets/javascripts/select2_locale_pl.js +3 -0
  51. data/vendor/assets/javascripts/select2_locale_ps.js +3 -0
  52. data/vendor/assets/javascripts/select2_locale_pt-BR.js +3 -0
  53. data/vendor/assets/javascripts/select2_locale_pt.js +3 -0
  54. data/vendor/assets/javascripts/select2_locale_ro.js +3 -0
  55. data/vendor/assets/javascripts/select2_locale_ru.js +3 -0
  56. data/vendor/assets/javascripts/select2_locale_sk.js +3 -0
  57. data/vendor/assets/javascripts/select2_locale_sl.js +3 -0
  58. data/vendor/assets/javascripts/select2_locale_sq.js +3 -0
  59. data/vendor/assets/javascripts/select2_locale_sr-Cyrl.js +3 -0
  60. data/vendor/assets/javascripts/select2_locale_sr.js +3 -0
  61. data/vendor/assets/javascripts/select2_locale_sv.js +3 -0
  62. data/vendor/assets/javascripts/select2_locale_th.js +3 -0
  63. data/vendor/assets/javascripts/select2_locale_tk.js +3 -0
  64. data/vendor/assets/javascripts/select2_locale_tr.js +3 -0
  65. data/vendor/assets/javascripts/select2_locale_uk.js +3 -0
  66. data/vendor/assets/javascripts/select2_locale_vi.js +3 -0
  67. data/vendor/assets/javascripts/select2_locale_zh-CN.js +3 -0
  68. data/vendor/assets/javascripts/select2_locale_zh-TW.js +3 -0
  69. data/vendor/assets/stylesheets/select2-bootstrap.css +610 -0
  70. data/vendor/assets/stylesheets/select2.css +481 -0
  71. metadata +82 -77
  72. data/app/assets/images/select2-spinner.gif +0 -0
  73. data/app/assets/images/select2.png +0 -0
  74. data/app/assets/images/select2x2.png +0 -0
  75. data/app/assets/javascripts/select2.js +0 -3217
  76. data/app/assets/javascripts/select2_locale_ar.js +0 -17
  77. data/app/assets/javascripts/select2_locale_bg.js +0 -17
  78. data/app/assets/javascripts/select2_locale_ca.js +0 -17
  79. data/app/assets/javascripts/select2_locale_cs.js +0 -49
  80. data/app/assets/javascripts/select2_locale_da.js +0 -17
  81. data/app/assets/javascripts/select2_locale_de.js +0 -15
  82. data/app/assets/javascripts/select2_locale_el.js +0 -17
  83. data/app/assets/javascripts/select2_locale_es.js +0 -15
  84. data/app/assets/javascripts/select2_locale_et.js +0 -17
  85. data/app/assets/javascripts/select2_locale_eu.js +0 -43
  86. data/app/assets/javascripts/select2_locale_fa.js +0 -17
  87. data/app/assets/javascripts/select2_locale_fi.js +0 -28
  88. data/app/assets/javascripts/select2_locale_fr.js +0 -15
  89. data/app/assets/javascripts/select2_locale_gl.js +0 -43
  90. data/app/assets/javascripts/select2_locale_he.js +0 -17
  91. data/app/assets/javascripts/select2_locale_hr.js +0 -42
  92. data/app/assets/javascripts/select2_locale_hu.js +0 -15
  93. data/app/assets/javascripts/select2_locale_id.js +0 -17
  94. data/app/assets/javascripts/select2_locale_is.js +0 -16
  95. data/app/assets/javascripts/select2_locale_it.js +0 -15
  96. data/app/assets/javascripts/select2_locale_ja.js +0 -15
  97. data/app/assets/javascripts/select2_locale_ko.js +0 -17
  98. data/app/assets/javascripts/select2_locale_lt.js +0 -29
  99. data/app/assets/javascripts/select2_locale_lv.js +0 -16
  100. data/app/assets/javascripts/select2_locale_mk.js +0 -17
  101. data/app/assets/javascripts/select2_locale_ms.js +0 -17
  102. data/app/assets/javascripts/select2_locale_nl.js +0 -15
  103. data/app/assets/javascripts/select2_locale_no.js +0 -18
  104. data/app/assets/javascripts/select2_locale_pl.js +0 -37
  105. data/app/assets/javascripts/select2_locale_pt-BR.js +0 -15
  106. data/app/assets/javascripts/select2_locale_pt-PT.js +0 -15
  107. data/app/assets/javascripts/select2_locale_ro.js +0 -15
  108. data/app/assets/javascripts/select2_locale_ru.js +0 -15
  109. data/app/assets/javascripts/select2_locale_sk.js +0 -48
  110. data/app/assets/javascripts/select2_locale_sv.js +0 -17
  111. data/app/assets/javascripts/select2_locale_th.js +0 -17
  112. data/app/assets/javascripts/select2_locale_tr.js +0 -17
  113. data/app/assets/javascripts/select2_locale_ua.js +0 -17
  114. data/app/assets/javascripts/select2_locale_vi.js +0 -18
  115. data/app/assets/javascripts/select2_locale_zh-CN.js +0 -14
  116. data/app/assets/javascripts/select2_locale_zh-TW.js +0 -14
  117. data/app/assets/stylesheets/select2.css.erb +0 -615
@@ -1,16 +0,0 @@
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);
@@ -1,15 +0,0 @@
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);
@@ -1,15 +0,0 @@
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);
@@ -1,17 +0,0 @@
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);
@@ -1,29 +0,0 @@
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);
@@ -1,16 +0,0 @@
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);
@@ -1,17 +0,0 @@
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);
@@ -1,17 +0,0 @@
1
- /**
2
- * Select2 Malay translation.
3
- *
4
- * Author: Kepoweran <kepoweran@gmail.com>
5
- */
6
- (function ($) {
7
- "use strict";
8
-
9
- $.extend($.fn.select2.defaults, {
10
- formatNoMatches: function () { return "Tiada padanan yang ditemui"; },
11
- formatInputTooShort: function (input, min) { var n = min - input.length; return "Sila masukkan " + n + " aksara lagi"; },
12
- formatInputTooLong: function (input, max) { var n = input.length - max; return "Sila hapuskan " + n + " aksara"; },
13
- formatSelectionTooBig: function (limit) { return "Anda hanya boleh memilih " + limit + " pilihan"; },
14
- formatLoadMore: function (pageNumber) { return "Sedang memuatkan keputusan..."; },
15
- formatSearching: function () { return "Mencari..."; }
16
- });
17
- })(jQuery);
@@ -1,15 +0,0 @@
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);
@@ -1,18 +0,0 @@
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
-
@@ -1,37 +0,0 @@
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);
@@ -1,15 +0,0 @@
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 + " caractere" + (n == 1? "" : "s"); },
10
- formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " caractere" + (n == 1? "" : "s"); },
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);
@@ -1,15 +0,0 @@
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 + " car" + (n == 1 ? "ácter" : "acteres"); },
10
- formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " car" + (n == 1 ? "ácter" : "acteres"); },
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);
@@ -1,15 +0,0 @@
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);
@@ -1,15 +0,0 @@
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);
@@ -1,48 +0,0 @@
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);
@@ -1,17 +0,0 @@
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);
@@ -1,17 +0,0 @@
1
- /**
2
- * Select2 Thai translation.
3
- *
4
- * Author: Atsawin Chaowanakritsanakul <joke@nakhon.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);
@@ -1,17 +0,0 @@
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);
@@ -1,17 +0,0 @@
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);
@@ -1,18 +0,0 @@
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
-