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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -6
  3. data/Rakefile +0 -1
  4. data/lib/select2-rails/engine.rb +5 -1
  5. data/lib/select2-rails/source_file.rb +13 -32
  6. data/lib/select2-rails/version.rb +1 -1
  7. data/{app → vendor}/assets/images/select2-spinner.gif +0 -0
  8. data/{app → vendor}/assets/images/select2.png +0 -0
  9. data/{app → vendor}/assets/images/select2x2.png +0 -0
  10. data/{app → vendor}/assets/javascripts/select2.js +735 -261
  11. data/vendor/assets/javascripts/select2_locale_ar.js +19 -0
  12. data/vendor/assets/javascripts/select2_locale_az.js +20 -0
  13. data/{app → vendor}/assets/javascripts/select2_locale_bg.js +12 -9
  14. data/{app → vendor}/assets/javascripts/select2_locale_ca.js +6 -4
  15. data/{app → vendor}/assets/javascripts/select2_locale_cs.js +6 -4
  16. data/{app → vendor}/assets/javascripts/select2_locale_da.js +4 -2
  17. data/{app → vendor}/assets/javascripts/select2_locale_de.js +7 -4
  18. data/{app → vendor}/assets/javascripts/select2_locale_el.js +11 -9
  19. data/{app → vendor}/assets/javascripts/select2_locale_es.js +10 -6
  20. data/{app → vendor}/assets/javascripts/select2_locale_et.js +4 -2
  21. data/{app → vendor}/assets/javascripts/select2_locale_eu.js +6 -4
  22. data/vendor/assets/javascripts/select2_locale_fa.js +21 -0
  23. data/{app → vendor}/assets/javascripts/select2_locale_fi.js +6 -4
  24. data/{app → vendor}/assets/javascripts/select2_locale_fr.js +9 -6
  25. data/{app → vendor}/assets/javascripts/select2_locale_gl.js +6 -4
  26. data/{app → vendor}/assets/javascripts/select2_locale_he.js +6 -4
  27. data/vendor/assets/javascripts/select2_locale_hr.js +24 -0
  28. data/{app → vendor}/assets/javascripts/select2_locale_hu.js +7 -5
  29. data/vendor/assets/javascripts/select2_locale_id.js +21 -0
  30. data/{app → vendor}/assets/javascripts/select2_locale_is.js +8 -7
  31. data/{app → vendor}/assets/javascripts/select2_locale_it.js +6 -4
  32. data/{app → vendor}/assets/javascripts/select2_locale_ja.js +4 -2
  33. data/vendor/assets/javascripts/select2_locale_ka.js +19 -0
  34. data/{app → vendor}/assets/javascripts/select2_locale_ko.js +6 -4
  35. data/vendor/assets/javascripts/select2_locale_lt.js +26 -0
  36. data/{app → vendor}/assets/javascripts/select2_locale_lv.js +12 -9
  37. data/{app → vendor}/assets/javascripts/select2_locale_mk.js +6 -4
  38. data/{app → vendor}/assets/javascripts/select2_locale_ms.js +8 -4
  39. data/vendor/assets/javascripts/select2_locale_nb.js +22 -0
  40. data/{app → vendor}/assets/javascripts/select2_locale_nl.js +9 -7
  41. data/{app → vendor}/assets/javascripts/select2_locale_no.js +6 -4
  42. data/vendor/assets/javascripts/select2_locale_pl.js +54 -0
  43. data/{app → vendor}/assets/javascripts/select2_locale_pt-BR.js +9 -6
  44. data/{app → vendor}/assets/javascripts/select2_locale_pt-PT.js +6 -4
  45. data/{app → vendor}/assets/javascripts/select2_locale_ro.js +6 -4
  46. data/vendor/assets/javascripts/select2_locale_rs.js +19 -0
  47. data/vendor/assets/javascripts/select2_locale_ru.js +23 -0
  48. data/{app → vendor}/assets/javascripts/select2_locale_sk.js +15 -13
  49. data/{app → vendor}/assets/javascripts/select2_locale_sv.js +6 -4
  50. data/{app → vendor}/assets/javascripts/select2_locale_th.js +6 -4
  51. data/{app → vendor}/assets/javascripts/select2_locale_tr.js +7 -4
  52. data/vendor/assets/javascripts/select2_locale_ug-CN.js +16 -0
  53. data/vendor/assets/javascripts/select2_locale_uk.js +25 -0
  54. data/{app → vendor}/assets/javascripts/select2_locale_vi.js +10 -8
  55. data/{app → vendor}/assets/javascripts/select2_locale_zh-CN.js +6 -4
  56. data/{app → vendor}/assets/javascripts/select2_locale_zh-TW.js +6 -4
  57. data/{app → vendor}/assets/stylesheets/select2-bootstrap.css +1 -1
  58. data/{app/assets/stylesheets/select2.css.erb → vendor/assets/stylesheets/select2.scss} +136 -62
  59. metadata +66 -61
  60. data/app/assets/javascripts/select2_locale_ar.js +0 -17
  61. data/app/assets/javascripts/select2_locale_fa.js +0 -17
  62. data/app/assets/javascripts/select2_locale_hr.js +0 -42
  63. data/app/assets/javascripts/select2_locale_id.js +0 -17
  64. data/app/assets/javascripts/select2_locale_lt.js +0 -29
  65. data/app/assets/javascripts/select2_locale_pl.js +0 -37
  66. data/app/assets/javascripts/select2_locale_ru.js +0 -15
  67. data/app/assets/javascripts/select2_locale_uk.js +0 -17
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.5.4
4
+ version: 3.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rogerio Medeiros
@@ -9,62 +9,62 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-26 00:00:00.000000000 Z
12
+ date: 2016-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0.14'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0.14'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '1.0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '1.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rails
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '3.0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '3.0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: httpclient
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '2.2'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '2.2'
70
70
  description: Select2 is a jQuery based replacement for select boxes. It supports searching,
@@ -77,62 +77,67 @@ executables: []
77
77
  extensions: []
78
78
  extra_rdoc_files: []
79
79
  files:
80
- - .gitignore
80
+ - ".gitignore"
81
81
  - Gemfile
82
82
  - README.md
83
83
  - Rakefile
84
- - app/assets/images/select2-spinner.gif
85
- - app/assets/images/select2.png
86
- - app/assets/images/select2x2.png
87
- - app/assets/javascripts/select2.js
88
- - app/assets/javascripts/select2_locale_ar.js
89
- - app/assets/javascripts/select2_locale_bg.js
90
- - app/assets/javascripts/select2_locale_ca.js
91
- - app/assets/javascripts/select2_locale_cs.js
92
- - app/assets/javascripts/select2_locale_da.js
93
- - app/assets/javascripts/select2_locale_de.js
94
- - app/assets/javascripts/select2_locale_el.js
95
- - app/assets/javascripts/select2_locale_es.js
96
- - app/assets/javascripts/select2_locale_et.js
97
- - app/assets/javascripts/select2_locale_eu.js
98
- - app/assets/javascripts/select2_locale_fa.js
99
- - app/assets/javascripts/select2_locale_fi.js
100
- - app/assets/javascripts/select2_locale_fr.js
101
- - app/assets/javascripts/select2_locale_gl.js
102
- - app/assets/javascripts/select2_locale_he.js
103
- - app/assets/javascripts/select2_locale_hr.js
104
- - app/assets/javascripts/select2_locale_hu.js
105
- - app/assets/javascripts/select2_locale_id.js
106
- - app/assets/javascripts/select2_locale_is.js
107
- - app/assets/javascripts/select2_locale_it.js
108
- - app/assets/javascripts/select2_locale_ja.js
109
- - app/assets/javascripts/select2_locale_ko.js
110
- - app/assets/javascripts/select2_locale_lt.js
111
- - app/assets/javascripts/select2_locale_lv.js
112
- - app/assets/javascripts/select2_locale_mk.js
113
- - app/assets/javascripts/select2_locale_ms.js
114
- - app/assets/javascripts/select2_locale_nl.js
115
- - app/assets/javascripts/select2_locale_no.js
116
- - app/assets/javascripts/select2_locale_pl.js
117
- - app/assets/javascripts/select2_locale_pt-BR.js
118
- - app/assets/javascripts/select2_locale_pt-PT.js
119
- - app/assets/javascripts/select2_locale_ro.js
120
- - app/assets/javascripts/select2_locale_ru.js
121
- - app/assets/javascripts/select2_locale_sk.js
122
- - app/assets/javascripts/select2_locale_sv.js
123
- - app/assets/javascripts/select2_locale_th.js
124
- - app/assets/javascripts/select2_locale_tr.js
125
- - app/assets/javascripts/select2_locale_uk.js
126
- - app/assets/javascripts/select2_locale_vi.js
127
- - app/assets/javascripts/select2_locale_zh-CN.js
128
- - app/assets/javascripts/select2_locale_zh-TW.js
129
- - app/assets/stylesheets/select2-bootstrap.css
130
- - app/assets/stylesheets/select2.css.erb
131
84
  - lib/select2-rails.rb
132
85
  - lib/select2-rails/engine.rb
133
86
  - lib/select2-rails/source_file.rb
134
87
  - lib/select2-rails/version.rb
135
88
  - select2-rails.gemspec
89
+ - vendor/assets/images/select2-spinner.gif
90
+ - vendor/assets/images/select2.png
91
+ - vendor/assets/images/select2x2.png
92
+ - vendor/assets/javascripts/select2.js
93
+ - vendor/assets/javascripts/select2_locale_ar.js
94
+ - vendor/assets/javascripts/select2_locale_az.js
95
+ - vendor/assets/javascripts/select2_locale_bg.js
96
+ - vendor/assets/javascripts/select2_locale_ca.js
97
+ - vendor/assets/javascripts/select2_locale_cs.js
98
+ - vendor/assets/javascripts/select2_locale_da.js
99
+ - vendor/assets/javascripts/select2_locale_de.js
100
+ - vendor/assets/javascripts/select2_locale_el.js
101
+ - vendor/assets/javascripts/select2_locale_es.js
102
+ - vendor/assets/javascripts/select2_locale_et.js
103
+ - vendor/assets/javascripts/select2_locale_eu.js
104
+ - vendor/assets/javascripts/select2_locale_fa.js
105
+ - vendor/assets/javascripts/select2_locale_fi.js
106
+ - vendor/assets/javascripts/select2_locale_fr.js
107
+ - vendor/assets/javascripts/select2_locale_gl.js
108
+ - vendor/assets/javascripts/select2_locale_he.js
109
+ - vendor/assets/javascripts/select2_locale_hr.js
110
+ - vendor/assets/javascripts/select2_locale_hu.js
111
+ - vendor/assets/javascripts/select2_locale_id.js
112
+ - vendor/assets/javascripts/select2_locale_is.js
113
+ - vendor/assets/javascripts/select2_locale_it.js
114
+ - vendor/assets/javascripts/select2_locale_ja.js
115
+ - vendor/assets/javascripts/select2_locale_ka.js
116
+ - vendor/assets/javascripts/select2_locale_ko.js
117
+ - vendor/assets/javascripts/select2_locale_lt.js
118
+ - vendor/assets/javascripts/select2_locale_lv.js
119
+ - vendor/assets/javascripts/select2_locale_mk.js
120
+ - vendor/assets/javascripts/select2_locale_ms.js
121
+ - vendor/assets/javascripts/select2_locale_nb.js
122
+ - vendor/assets/javascripts/select2_locale_nl.js
123
+ - vendor/assets/javascripts/select2_locale_no.js
124
+ - vendor/assets/javascripts/select2_locale_pl.js
125
+ - vendor/assets/javascripts/select2_locale_pt-BR.js
126
+ - vendor/assets/javascripts/select2_locale_pt-PT.js
127
+ - vendor/assets/javascripts/select2_locale_ro.js
128
+ - vendor/assets/javascripts/select2_locale_rs.js
129
+ - vendor/assets/javascripts/select2_locale_ru.js
130
+ - vendor/assets/javascripts/select2_locale_sk.js
131
+ - vendor/assets/javascripts/select2_locale_sv.js
132
+ - vendor/assets/javascripts/select2_locale_th.js
133
+ - vendor/assets/javascripts/select2_locale_tr.js
134
+ - vendor/assets/javascripts/select2_locale_ug-CN.js
135
+ - vendor/assets/javascripts/select2_locale_uk.js
136
+ - vendor/assets/javascripts/select2_locale_vi.js
137
+ - vendor/assets/javascripts/select2_locale_zh-CN.js
138
+ - vendor/assets/javascripts/select2_locale_zh-TW.js
139
+ - vendor/assets/stylesheets/select2-bootstrap.css
140
+ - vendor/assets/stylesheets/select2.scss
136
141
  homepage: https://github.com/argerim/select2-rails
137
142
  licenses:
138
143
  - MIT
@@ -143,17 +148,17 @@ require_paths:
143
148
  - lib
144
149
  required_ruby_version: !ruby/object:Gem::Requirement
145
150
  requirements:
146
- - - '>='
151
+ - - ">="
147
152
  - !ruby/object:Gem::Version
148
153
  version: '0'
149
154
  required_rubygems_version: !ruby/object:Gem::Requirement
150
155
  requirements:
151
- - - '>='
156
+ - - ">="
152
157
  - !ruby/object:Gem::Version
153
158
  version: '0'
154
159
  requirements: []
155
160
  rubyforge_project:
156
- rubygems_version: 2.0.0.rc.2
161
+ rubygems_version: 2.4.8
157
162
  signing_key:
158
163
  specification_version: 4
159
164
  summary: Integrate Select2 javascript library with Rails asset pipeline
@@ -1,17 +0,0 @@
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);
@@ -1,17 +0,0 @@
1
- /**
2
- * Select2 <fa> translation.
3
- *
4
- * Author: Ali Choopan <choopan@arsh.co>
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,42 +0,0 @@
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);
@@ -1,17 +0,0 @@
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);
@@ -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,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 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,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);