it-logica-application-backbone 1.3.3 → 1.3.4

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.3
1
+ 1.3.4
@@ -79,10 +79,10 @@ class EditableTableBuilder
79
79
  # todo make sure functions collumn got skipped when placement is different, eg. on the end
80
80
 
81
81
  if EditableTableBuilder.obj.static_columns_left_side?
82
- summarize_page += '<td class="summarize headcol" colspan="2"><span class="label">Celkem na stránce: </span></td>' if EditableTableBuilder.obj.checkboxes?
82
+ summarize_page += '<td class="summarize headcol" colspan="2"><span class="label">' + window.itl_gem_translations[window.itl_gem_active_language]["total_sum_on_page"] + '</span></td>' if EditableTableBuilder.obj.checkboxes?
83
83
  summarize_page += '<td class="summarize headcol">Celkem na stránce: </td>' if functions_present && !EditableTableBuilder.obj.checkboxes?
84
84
  else
85
- summarize_page += '<td class="summarize headcol" colspan="2"><span class="label">Celkem na stránce: </span></td>' if EditableTableBuilder.obj.checkboxes?
85
+ summarize_page += '<td class="summarize headcol" colspan="2"><span class="label">' + window.itl_gem_translations[window.itl_gem_active_language]["total_sum_on_page"] + '</span></td>' if EditableTableBuilder.obj.checkboxes?
86
86
  summarize_page += '<td class="summarize headcol">Celkem na stránce: </td>' if functions_present && !EditableTableBuilder.obj.checkboxes?
87
87
 
88
88
  #headcol" if ((EditableTableBuilder.obj.static_columns_left_side).indexOf(col.name) != -1)
@@ -129,11 +129,11 @@ class EditableTableBuilder
129
129
  summarize_all += '<tr class="summarize_all" data-row-count-number="summarize_all">'
130
130
 
131
131
  if EditableTableBuilder.obj.static_columns_left_side?
132
- summarize_all += '<td class="summarize headcol" colspan="2"><span class="label">Celkem: </span></td>' if EditableTableBuilder.obj.checkboxes?
132
+ summarize_all += '<td class="summarize headcol" colspan="2"><span class="label">' + window.itl_gem_translations[window.itl_gem_active_language]["total_sum"] + '</span></td>' if EditableTableBuilder.obj.checkboxes?
133
133
  #it has colspan 2 so there is no function column
134
134
  summarize_all += '<td class="summarize headcol">Celkem: </td>' if functions_present && !EditableTableBuilder.obj.checkboxes?
135
135
  else
136
- summarize_all += '<td class="summarize headcol" colspan="2"><span class="label">Celkem: </span></td>' if EditableTableBuilder.obj.checkboxes?
136
+ summarize_all += '<td class="summarize headcol" colspan="2"><span class="label">' + window.itl_gem_translations[window.itl_gem_active_language]["total_sum"] + '</span></td>' if EditableTableBuilder.obj.checkboxes?
137
137
  #it has colspan 2 so there is no function column
138
138
  summarize_all += '<td class="summarize headcol">Celkem: </td>' if functions_present && !EditableTableBuilder.obj.checkboxes?
139
139
 
@@ -115,16 +115,16 @@ function load_page(settings, caller_object) {
115
115
  }
116
116
  else if (jqXHR.status == 401) {
117
117
  Alert.clear(content_id);
118
- Alert.set_message_header("Přístup nepovolen.");
119
- Alert.set_message("Nemáte dostatečná oprávnění na tuto akci!");
118
+ Alert.set_message_header(window.itl_gem_translations[window.itl_gem_active_language]["access_denied"]);
119
+ Alert.set_message(window.itl_gem_translations[window.itl_gem_active_language]["access_denied_no_rights_for_this_action"]);
120
120
  Alert.set_status("error");
121
121
  Alert.show(content_id);
122
122
  }
123
123
  else {
124
124
  //alert("Request failed: " + textStatus + " status: " + jqXHR.status + " response" + jqXHR);
125
125
  Alert.clear(content_id);
126
- Alert.set_message_header("Server error.");
127
- Alert.set_message("There has been server error, please wait for the fix of the problem.");
126
+ Alert.set_message_header(window.itl_gem_translations[window.itl_gem_active_language]["server_error"]);
127
+ Alert.set_message(window.itl_gem_translations[window.itl_gem_active_language]["server_error_message"]);
128
128
  Alert.set_status("error");
129
129
  Alert.show(content_id);
130
130
  }
@@ -58,15 +58,15 @@ function connect_callback_to_form(caller_id) {
58
58
  else if (xhr.status == 401) {
59
59
  //alert("Nemáte oprávnění na tuto akci!");
60
60
  Alert.clear("#" + caller_id);
61
- Alert.set_message_header("Přístup nepovolen.");
62
- Alert.set_message("Nemáte dostatečná oprávnění na tuto akci!");
61
+ Alert.set_message_header(window.itl_gem_translations[window.itl_gem_active_language]["access_denied"]);
62
+ Alert.set_message(window.itl_gem_translations[window.itl_gem_active_language]["access_denied_no_rights_for_this_action"]);
63
63
  Alert.set_status("error");
64
64
  Alert.show("#" + caller_id);
65
65
  }
66
66
  else {
67
67
  Alert.clear("#" + caller_id);
68
- Alert.set_message_header("Server error.");
69
- Alert.set_message("There has been server error, please wait for fix of the problem.");
68
+ Alert.set_message_header(window.itl_gem_translations[window.itl_gem_active_language]["server_error"]);
69
+ Alert.set_message(window.itl_gem_translations[window.itl_gem_active_language]["server_error_message"]);
70
70
  Alert.set_status("error");
71
71
  Alert.show("#" + caller_id);
72
72
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  $(this).tinymce({
5
5
  // localization
6
- language:"cs", // change language here en,cs,sk
6
+ language:window.itl_gem_active_language, // change language here en,cs,sk
7
7
 
8
8
  // Location of TinyMCE script
9
9
  script_url:'/assets/backbone_js/tinymce/jscripts/tiny_mce/tiny_mce.js',
@@ -1,10 +1,14 @@
1
- itl_gem_translations[itl_gem_active_language][""]
2
1
 
3
- itl_gem_translations = {};
2
+
3
+
4
4
 
5
5
  itl_gem_translations['cs'] = {
6
6
  total_sum:'Celkem: ',
7
-
7
+ total_sum_on_page:'Celkem na stránce ',
8
+ access_denied: "Přístup nepovolen.",
9
+ access_denied_no_rights_for_this_action: "Nemáte dostatečná oprávnění na tuto akci!",
10
+ server_error: "Server error.",
11
+ server_error_message: "There has been server error, please wait for the fix of the problem."
8
12
  };
9
13
 
10
14
 
@@ -28,7 +32,7 @@ jQuery(function ($) {
28
32
  isRTL:false,
29
33
  showMonthAfterYear:false,
30
34
  yearSuffix:''};
31
- $.datepicker.setDefaults($.datepicker.regional[itl_gem_active_language]);
35
+ $.datepicker.setDefaults($.datepicker.regional[window.itl_gem_active_language]);
32
36
  });
33
37
 
34
38
  /* DAteTime picker addon */
@@ -41,12 +45,12 @@ jQuery(function ($) {
41
45
  secondText:'Vteřiny',
42
46
  millisecText:'Milisekundy',
43
47
  timezoneText:'Časové pásmo',
44
- currentText:'Nyní',
48
+ currentText:'Nyní cs',
45
49
  closeText:'Zavřít',
46
50
  timeFormat:'h:m',
47
51
  amNames:['dop.', 'AM', 'A'],
48
52
  pmNames:['odp.', 'PM', 'P'],
49
53
  ampm:false
50
54
  };
51
- $.timepicker.setDefaults($.timepicker.regional[itl_gem_active_language]);
55
+ $.timepicker.setDefaults($.timepicker.regional[window.itl_gem_active_language]);
52
56
  })(jQuery);
@@ -1 +1,3 @@
1
+ itl_gem_translations = {};
2
+ // default translation language settings
1
3
  itl_gem_active_language = "cs"
@@ -1,45 +1,56 @@
1
1
 
2
2
 
3
3
 
4
+
5
+ itl_gem_translations['sk'] = {
6
+ total_sum:'Celkem: ',
7
+ total_sum_on_page:'Celkem na stránce ',
8
+ access_denied: "Přístup nepovolen.",
9
+ access_denied_no_rights_for_this_action: "Nemáte dostatečná oprávnění na tuto akci!",
10
+ server_error: "Server error.",
11
+ server_error_message: "There has been server error, please wait for the fix of the problem."
12
+ };
13
+
14
+
4
15
  /* JQuery UI date picker plugin. */
5
- jQuery(function($){
6
- $.datepicker.regional['sk'] = {
7
- closeText: 'Zavřít',
8
- prevText: '&#x3c;Dříve',
9
- nextText: 'Později&#x3e;',
10
- currentText: 'Nyní',
11
- monthNames: ['leden','únor','březen','duben','květen','červen',
12
- 'červenec','srpen','září','říjen','listopad','prosinec'],
13
- monthNamesShort: ['led','úno','bře','dub','kvě','čer',
14
- 'čvc','srp','zář','říj','lis','pro'],
15
- dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'],
16
- dayNamesShort: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'],
17
- dayNamesMin: ['ne','po','út','st','čt','pá','so'],
18
- weekHeader: 'Týd',
19
- dateFormat: 'dd.mm.yy',
20
- firstDay: 1,
21
- isRTL: false,
22
- showMonthAfterYear: false,
23
- yearSuffix: ''};
24
- $.datepicker.setDefaults($.datepicker.regional[itl_gem_active_language]);
16
+ jQuery(function ($) {
17
+ $.datepicker.regional['sk'] = {
18
+ closeText:'Zavřít',
19
+ prevText:'&#x3c;Dříve',
20
+ nextText:'Později&#x3e;',
21
+ currentText:'Nyní',
22
+ monthNames:['leden', 'únor', 'březen', 'duben', 'květen', 'červen',
23
+ 'červenec', 'srpen', 'září', 'říjen', 'listopad', 'prosinec'],
24
+ monthNamesShort:['led', 'úno', 'bře', 'dub', 'kvě', 'čer',
25
+ 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro'],
26
+ dayNames:['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'],
27
+ dayNamesShort:['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'],
28
+ dayNamesMin:['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'],
29
+ weekHeader:'Týd',
30
+ dateFormat:'dd.mm.yy',
31
+ firstDay:1,
32
+ isRTL:false,
33
+ showMonthAfterYear:false,
34
+ yearSuffix:''};
35
+ $.datepicker.setDefaults($.datepicker.regional[window.itl_gem_active_language]);
25
36
  });
26
37
 
27
38
  /* 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]);
39
+ (function ($) {
40
+ $.timepicker.regional['sk'] = {
41
+ timeOnlyTitle:'Vyberte čas',
42
+ timeText:'Čas',
43
+ hourText:'Hodiny',
44
+ minuteText:'Minuty',
45
+ secondText:'Vteřiny',
46
+ millisecText:'Milisekundy',
47
+ timezoneText:'Časové pásmo',
48
+ currentText:'Nyní cs',
49
+ closeText:'Zavřít',
50
+ timeFormat:'h:m',
51
+ amNames:['dop.', 'AM', 'A'],
52
+ pmNames:['odp.', 'PM', 'P'],
53
+ ampm:false
54
+ };
55
+ $.timepicker.setDefaults($.timepicker.regional[window.itl_gem_active_language]);
45
56
  })(jQuery);
@@ -151,7 +151,13 @@
151
151
 
152
152
 
153
153
  <script type="text/javascript">
154
- $.datepicker.setDefaults($.datepicker.regional[ "cs" ]);
154
+ jQuery(function ($) {
155
+ $.datepicker.setDefaults($.datepicker.regional[ window.itl_gem_active_language ]);
156
+ });
157
+ (function ($) {
158
+ $.timepicker.setDefaults($.timepicker.regional[window.itl_gem_active_language]);
159
+ })(jQuery);
160
+
155
161
  $('.datetime_class').datetimepicker({
156
162
  dateFormat:"yy-mm-dd",
157
163
  timeFormat:'hh:mm',
@@ -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.3"
8
+ s.version = "1.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ladas"]
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.3
4
+ version: 1.3.4
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: &71177190 !ruby/object:Gem::Requirement
16
+ requirement: &78582220 !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: *71177190
24
+ version_requirements: *78582220
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &71176380 !ruby/object:Gem::Requirement
27
+ requirement: &78581430 !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: *71176380
35
+ version_requirements: *78581430
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: shoulda
38
- requirement: &71175830 !ruby/object:Gem::Requirement
38
+ requirement: &78580910 !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: *71175830
46
+ version_requirements: *78580910
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rdoc
49
- requirement: &71175060 !ruby/object:Gem::Requirement
49
+ requirement: &78579840 !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: *71175060
57
+ version_requirements: *78579840
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: bundler
60
- requirement: &71173740 !ruby/object:Gem::Requirement
60
+ requirement: &78578270 !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: *71173740
68
+ version_requirements: *78578270
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: jeweler
71
- requirement: &71172030 !ruby/object:Gem::Requirement
71
+ requirement: &81443560 !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: *71172030
79
+ version_requirements: *81443560
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: simplecov
82
- requirement: &73772750 !ruby/object:Gem::Requirement
82
+ requirement: &81442600 !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: *73772750
90
+ version_requirements: *81442600
91
91
  description: longer description of your gem
92
92
  email: ladislav.smola@it-logica.cz
93
93
  executables: []
@@ -631,7 +631,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
631
631
  version: '0'
632
632
  segments:
633
633
  - 0
634
- hash: -317186797
634
+ hash: -58933233
635
635
  required_rubygems_version: !ruby/object:Gem::Requirement
636
636
  none: false
637
637
  requirements: