it-logica-application-backbone 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.2
1
+ 1.3.3
@@ -15,6 +15,10 @@
15
15
 
16
16
  //= require ./ladas_table_checkbox_pool.js.coffee
17
17
 
18
+ //= require ./ladas_translations.js
19
+ //= require ./ladas_translations.cs.js
20
+ //= require ./ladas_translations.sk.js
21
+
18
22
  //= require_directory .
19
23
 
20
24
 
@@ -32,7 +32,7 @@ class TableBuilder
32
32
  summarize_page = ""
33
33
  summarize_page += '<tr class="summarize_page">'
34
34
  # todo make sure functions collumn got skipped when placement is different, eg. on the end
35
- summarize_page += '<td class="summarize" colspan="2"><span class="label">Celkem na stránce: </span></td>' if TableBuilder.obj.checkboxes?
35
+ summarize_page += '<td class="summarize" colspan="2"><span class="label">' + window.itl_gem_translations[window.itl_gem_active_language]["total_sum_on_page"] + '</span></td>' if TableBuilder.obj.checkboxes?
36
36
  summarize_page += '<td class="summarize"></td>' if functions_present
37
37
  col_count = 0
38
38
  for col in TableBuilder.obj.columns
@@ -61,7 +61,7 @@ class TableBuilder
61
61
  summarize_all = ""
62
62
  summarize_all += '<tr class="summarize_all">'
63
63
 
64
- summarize_all += '<td class="summarize" colspan="2"><span class="label">Celkem: </span></td>' if TableBuilder.obj.checkboxes?
64
+ summarize_all += '<td class="summarize" colspan="2"><span class="label">' + window.itl_gem_translations[window.itl_gem_active_language]["total_sum"] + '</span></td>' if TableBuilder.obj.checkboxes?
65
65
  #it has colspan 2 so there is no function column
66
66
  #summarize_all += '<td class="summarize"></td>' if functions_present
67
67
 
@@ -0,0 +1,52 @@
1
+ itl_gem_translations[itl_gem_active_language][""]
2
+
3
+ itl_gem_translations = {};
4
+
5
+ itl_gem_translations['cs'] = {
6
+ total_sum:'Celkem: ',
7
+
8
+ };
9
+
10
+
11
+ /* JQuery UI date picker plugin. */
12
+ jQuery(function ($) {
13
+ $.datepicker.regional['cs'] = {
14
+ closeText:'Zavřít',
15
+ prevText:'&#x3c;Dříve',
16
+ nextText:'Později&#x3e;',
17
+ currentText:'Nyní',
18
+ monthNames:['leden', 'únor', 'březen', 'duben', 'květen', 'červen',
19
+ 'červenec', 'srpen', 'září', 'říjen', 'listopad', 'prosinec'],
20
+ monthNamesShort:['led', 'úno', 'bře', 'dub', 'kvě', 'čer',
21
+ 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro'],
22
+ dayNames:['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'],
23
+ dayNamesShort:['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'],
24
+ dayNamesMin:['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'],
25
+ weekHeader:'Týd',
26
+ dateFormat:'dd.mm.yy',
27
+ firstDay:1,
28
+ isRTL:false,
29
+ showMonthAfterYear:false,
30
+ yearSuffix:''};
31
+ $.datepicker.setDefaults($.datepicker.regional[itl_gem_active_language]);
32
+ });
33
+
34
+ /* DAteTime picker addon */
35
+ (function ($) {
36
+ $.timepicker.regional['cs'] = {
37
+ timeOnlyTitle:'Vyberte čas',
38
+ timeText:'Čas',
39
+ hourText:'Hodiny',
40
+ minuteText:'Minuty',
41
+ secondText:'Vteřiny',
42
+ millisecText:'Milisekundy',
43
+ timezoneText:'Časové pásmo',
44
+ currentText:'Nyní',
45
+ closeText:'Zavřít',
46
+ timeFormat:'h:m',
47
+ amNames:['dop.', 'AM', 'A'],
48
+ pmNames:['odp.', 'PM', 'P'],
49
+ ampm:false
50
+ };
51
+ $.timepicker.setDefaults($.timepicker.regional[itl_gem_active_language]);
52
+ })(jQuery);
@@ -0,0 +1 @@
1
+ itl_gem_active_language = "cs"
@@ -1,7 +1,9 @@
1
- /* Czech initialisation for the jQuery UI date picker plugin. */
2
- /* Written by Tomas Muller (tomas@tomas-muller.net). */
1
+
2
+
3
+
4
+ /* JQuery UI date picker plugin. */
3
5
  jQuery(function($){
4
- $.datepicker.regional['cs'] = {
6
+ $.datepicker.regional['sk'] = {
5
7
  closeText: 'Zavřít',
6
8
  prevText: '&#x3c;Dříve',
7
9
  nextText: 'Později&#x3e;',
@@ -19,5 +21,25 @@ jQuery(function($){
19
21
  isRTL: false,
20
22
  showMonthAfterYear: false,
21
23
  yearSuffix: ''};
22
- $.datepicker.setDefaults($.datepicker.regional['cs']);
23
- });
24
+ $.datepicker.setDefaults($.datepicker.regional[itl_gem_active_language]);
25
+ });
26
+
27
+ /* DAteTime picker addon */
28
+ (function($) {
29
+ $.timepicker.regional['sk'] = {
30
+ timeOnlyTitle: 'Vyberte čas',
31
+ timeText: 'Čas',
32
+ hourText: 'Hodiny',
33
+ minuteText: 'Minuty',
34
+ secondText: 'Vteřiny',
35
+ millisecText: 'Milisekundy',
36
+ timezoneText: 'Časové pásmo',
37
+ currentText: 'Nyní',
38
+ closeText: 'Zavřít',
39
+ timeFormat: 'h:m',
40
+ amNames: ['dop.', 'AM', 'A'],
41
+ pmNames: ['odp.', 'PM', 'P'],
42
+ ampm: false
43
+ };
44
+ $.timepicker.setDefaults($.timepicker.regional[itl_gem_active_language]);
45
+ })(jQuery);
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "it-logica-application-backbone"
8
- s.version = "1.3.2"
8
+ s.version = "1.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ladas"]
@@ -137,7 +137,6 @@ Gem::Specification.new do |s|
137
137
  "app/assets/javascripts/backbone_js/bootstrap_modal.js",
138
138
  "app/assets/javascripts/backbone_js/index.js",
139
139
  "app/assets/javascripts/backbone_js/jquery-ui-timepicker-addon.js",
140
- "app/assets/javascripts/backbone_js/jquery-ui-timepicker-cs.js",
141
140
  "app/assets/javascripts/backbone_js/jquery.cookie.js",
142
141
  "app/assets/javascripts/backbone_js/jquery.fileupload-ui.js",
143
142
  "app/assets/javascripts/backbone_js/jquery.fileupload.js",
@@ -147,7 +146,6 @@ Gem::Specification.new do |s|
147
146
  "app/assets/javascripts/backbone_js/jquery.jstree.js",
148
147
  "app/assets/javascripts/backbone_js/jquery.multiselect.min.js",
149
148
  "app/assets/javascripts/backbone_js/jquery.multiselect.zfilter.js",
150
- "app/assets/javascripts/backbone_js/jquery.ui.datepicker-cs.js",
151
149
  "app/assets/javascripts/backbone_js/jquery.ui.widget.js",
152
150
  "app/assets/javascripts/backbone_js/ladas_alert.js.coffee",
153
151
  "app/assets/javascripts/backbone_js/ladas_breadcrumb.js.coffee",
@@ -170,6 +168,9 @@ Gem::Specification.new do |s|
170
168
  "app/assets/javascripts/backbone_js/ladas_table_sorting.js.coffee",
171
169
  "app/assets/javascripts/backbone_js/ladas_table_summaries.js.coffee",
172
170
  "app/assets/javascripts/backbone_js/ladas_tinymce.js",
171
+ "app/assets/javascripts/backbone_js/ladas_translations.cs.js",
172
+ "app/assets/javascripts/backbone_js/ladas_translations.js",
173
+ "app/assets/javascripts/backbone_js/ladas_translations.sk.js",
173
174
  "app/assets/javascripts/backbone_js/load-image.min.js",
174
175
  "app/assets/javascripts/backbone_js/tinymce/changelog.txt",
175
176
  "app/assets/javascripts/backbone_js/tinymce/examples/css/content.css",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: it-logica-application-backbone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-12-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: htmlentities
16
- requirement: &73537010 !ruby/object:Gem::Requirement
16
+ requirement: &71177190 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *73537010
24
+ version_requirements: *71177190
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &73536370 !ruby/object:Gem::Requirement
27
+ requirement: &71176380 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.1.3
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *73536370
35
+ version_requirements: *71176380
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: shoulda
38
- requirement: &73535590 !ruby/object:Gem::Requirement
38
+ requirement: &71175830 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *73535590
46
+ version_requirements: *71175830
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rdoc
49
- requirement: &73535020 !ruby/object:Gem::Requirement
49
+ requirement: &71175060 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '3.12'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *73535020
57
+ version_requirements: *71175060
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: bundler
60
- requirement: &73534200 !ruby/object:Gem::Requirement
60
+ requirement: &71173740 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.1.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *73534200
68
+ version_requirements: *71173740
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: jeweler
71
- requirement: &73532580 !ruby/object:Gem::Requirement
71
+ requirement: &71172030 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.8.4
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *73532580
79
+ version_requirements: *71172030
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: simplecov
82
- requirement: &76133040 !ruby/object:Gem::Requirement
82
+ requirement: &73772750 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *76133040
90
+ version_requirements: *73772750
91
91
  description: longer description of your gem
92
92
  email: ladislav.smola@it-logica.cz
93
93
  executables: []
@@ -216,7 +216,6 @@ files:
216
216
  - app/assets/javascripts/backbone_js/bootstrap_modal.js
217
217
  - app/assets/javascripts/backbone_js/index.js
218
218
  - app/assets/javascripts/backbone_js/jquery-ui-timepicker-addon.js
219
- - app/assets/javascripts/backbone_js/jquery-ui-timepicker-cs.js
220
219
  - app/assets/javascripts/backbone_js/jquery.cookie.js
221
220
  - app/assets/javascripts/backbone_js/jquery.fileupload-ui.js
222
221
  - app/assets/javascripts/backbone_js/jquery.fileupload.js
@@ -226,7 +225,6 @@ files:
226
225
  - app/assets/javascripts/backbone_js/jquery.jstree.js
227
226
  - app/assets/javascripts/backbone_js/jquery.multiselect.min.js
228
227
  - app/assets/javascripts/backbone_js/jquery.multiselect.zfilter.js
229
- - app/assets/javascripts/backbone_js/jquery.ui.datepicker-cs.js
230
228
  - app/assets/javascripts/backbone_js/jquery.ui.widget.js
231
229
  - app/assets/javascripts/backbone_js/ladas_alert.js.coffee
232
230
  - app/assets/javascripts/backbone_js/ladas_breadcrumb.js.coffee
@@ -249,6 +247,9 @@ files:
249
247
  - app/assets/javascripts/backbone_js/ladas_table_sorting.js.coffee
250
248
  - app/assets/javascripts/backbone_js/ladas_table_summaries.js.coffee
251
249
  - app/assets/javascripts/backbone_js/ladas_tinymce.js
250
+ - app/assets/javascripts/backbone_js/ladas_translations.cs.js
251
+ - app/assets/javascripts/backbone_js/ladas_translations.js
252
+ - app/assets/javascripts/backbone_js/ladas_translations.sk.js
252
253
  - app/assets/javascripts/backbone_js/load-image.min.js
253
254
  - app/assets/javascripts/backbone_js/tinymce/changelog.txt
254
255
  - app/assets/javascripts/backbone_js/tinymce/examples/css/content.css
@@ -630,7 +631,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
630
631
  version: '0'
631
632
  segments:
632
633
  - 0
633
- hash: 873395517
634
+ hash: -317186797
634
635
  required_rubygems_version: !ruby/object:Gem::Requirement
635
636
  none: false
636
637
  requirements:
@@ -1,20 +0,0 @@
1
- /* Czech translation for the jQuery Timepicker Addon */
2
- /* Written by Ondřej Vodáček */
3
- (function($) {
4
- $.timepicker.regional['cs'] = {
5
- timeOnlyTitle: 'Vyberte čas',
6
- timeText: 'Čas',
7
- hourText: 'Hodiny',
8
- minuteText: 'Minuty',
9
- secondText: 'Vteřiny',
10
- millisecText: 'Milisekundy',
11
- timezoneText: 'Časové pásmo',
12
- currentText: 'Nyní',
13
- closeText: 'Zavřít',
14
- timeFormat: 'h:m',
15
- amNames: ['dop.', 'AM', 'A'],
16
- pmNames: ['odp.', 'PM', 'P'],
17
- ampm: false
18
- };
19
- $.timepicker.setDefaults($.timepicker.regional['cs']);
20
- })(jQuery);