Pārlūkot izejas kodu

国际化定制基本结束

xuxueli 7 gadus atpakaļ
vecāks
revīzija
68db58ad72

+ 1 - 0
xxl-job-admin/src/main/resources/i18n/message.properties Parādīt failu

29
 system_opt_del=删除
29
 system_opt_del=删除
30
 system_unvalid=非法
30
 system_unvalid=非法
31
 system_not_found=不存在
31
 system_not_found=不存在
32
+system_nav=导航
32
 
33
 
33
 ## daterangepicker
34
 ## daterangepicker
34
 daterangepicker_ranges_recent_hour=最近一小时
35
 daterangepicker_ranges_recent_hour=最近一小时

+ 5 - 4
xxl-job-admin/src/main/resources/i18n/message_en.properties Parādīt failu

4
 
4
 
5
 ## system
5
 ## system
6
 system_tips=System message
6
 system_tips=System message
7
-system_ok=Confirm
7
+system_ok=Confirm 
8
 system_close=Close
8
 system_close=Close
9
-system_save=Save
9
+system_save=Save 
10
 system_cancel=Cancel
10
 system_cancel=Cancel
11
 system_search=Search
11
 system_search=Search
12
 system_status=Status
12
 system_status=Status
25
 system_empty=Empty
25
 system_empty=Empty
26
 system_opt_suc=operate success
26
 system_opt_suc=operate success
27
 system_opt_fail=operate fail
27
 system_opt_fail=operate fail
28
-system_opt_edit=Edit
29
-system_opt_del=Delete
28
+system_opt_edit=Edit 
29
+system_opt_del=Delete 
30
 system_unvalid=illegal
30
 system_unvalid=illegal
31
 system_not_found=not exist
31
 system_not_found=not exist
32
+system_nav=Navigation
32
 
33
 
33
 ## daterangepicker
34
 ## daterangepicker
34
 daterangepicker_ranges_recent_hour=recent one hour
35
 daterangepicker_ranges_recent_hour=recent one hour

+ 1 - 1
xxl-job-admin/src/main/webapp/WEB-INF/template/common/common.macro.ftl Parādīt failu

92
 		<section class="sidebar">
92
 		<section class="sidebar">
93
 			<!-- sidebar menu: : style can be found in sidebar.less -->
93
 			<!-- sidebar menu: : style can be found in sidebar.less -->
94
 			<ul class="sidebar-menu">
94
 			<ul class="sidebar-menu">
95
-                <li class="header">导航</li>
95
+                <li class="header">${I18n.system_nav}</li>
96
 				<li class="nav-click <#if pageName == "jobinfo">active</#if>" ><a href="${request.contextPath}/jobinfo"><i class="fa fa-circle-o text-aqua"></i><span>${I18n.jobinfo_name}</span></a></li>
96
 				<li class="nav-click <#if pageName == "jobinfo">active</#if>" ><a href="${request.contextPath}/jobinfo"><i class="fa fa-circle-o text-aqua"></i><span>${I18n.jobinfo_name}</span></a></li>
97
 				<li class="nav-click <#if pageName == "joblog">active</#if>" ><a href="${request.contextPath}/joblog"><i class="fa fa-circle-o text-yellow"></i><span>${I18n.joblog_name}</span></a></li>
97
 				<li class="nav-click <#if pageName == "joblog">active</#if>" ><a href="${request.contextPath}/joblog"><i class="fa fa-circle-o text-yellow"></i><span>${I18n.joblog_name}</span></a></li>
98
                 <li class="nav-click <#if pageName == "jobgroup">active</#if>" ><a href="${request.contextPath}/jobgroup"><i class="fa fa-circle-o text-green"></i><span>${I18n.jobgroup_name}</span></a></li>
98
                 <li class="nav-click <#if pageName == "jobgroup">active</#if>" ><a href="${request.contextPath}/jobgroup"><i class="fa fa-circle-o text-green"></i><span>${I18n.jobgroup_name}</span></a></li>

+ 6 - 10
xxl-job-admin/src/main/webapp/static/js/common.1.js Parādīt failu

2
 
2
 
3
 	// logout
3
 	// logout
4
 	$("#logoutBtn").click(function(){
4
 	$("#logoutBtn").click(function(){
5
-		layer.confirm( I18n.logout_confirm , {icon: 3, title: I18n.system_tips }, function(index){
5
+		layer.confirm( I18n.logout_confirm , {
6
+			icon: 3,
7
+			title: I18n.system_tips ,
8
+            btn: [ I18n.system_ok, I18n.system_cancel ]
9
+		}, function(index){
6
 			layer.close(index);
10
 			layer.close(index);
7
 
11
 
8
 			$.post(base_url + "/logout", function(data, status) {
12
 			$.post(base_url + "/logout", function(data, status) {
11
                     setTimeout(function(){
15
                     setTimeout(function(){
12
                         window.location.href = base_url + "/";
16
                         window.location.href = base_url + "/";
13
                     }, 500);
17
                     }, 500);
14
-					/*layer.open({
15
-						title: I18n.system_tips ,
16
-						content: I18n.logout_success ,
17
-						icon: '1',
18
-						end: function(layero, index){
19
-							window.location.href = base_url + "/";
20
-						}
21
-					});*/
22
 				} else {
18
 				} else {
23
 					layer.open({
19
 					layer.open({
24
 						title: I18n.system_tips ,
20
 						title: I18n.system_tips ,
25
-                        btn: [ I18n.system_ok , I18n.system_close ],
21
+                        btn: [ I18n.system_ok ],
26
 						content: (data.msg || I18n.logout_fail),
22
 						content: (data.msg || I18n.logout_fail),
27
 						icon: '2'
23
 						icon: '2'
28
 					});
24
 					});

+ 1 - 0
xxl-job-admin/src/main/webapp/static/js/index.js Parādīt failu

62
                 } else {
62
                 } else {
63
                     layer.open({
63
                     layer.open({
64
                         title: I18n.system_tips ,
64
                         title: I18n.system_tips ,
65
+                        btn: [ I18n.system_ok ],
65
                         content: (data.msg || I18n.job_dashboard_report_loaddata_fail ),
66
                         content: (data.msg || I18n.job_dashboard_report_loaddata_fail ),
66
                         icon: '2'
67
                         icon: '2'
67
                     });
68
                     });

+ 4 - 0
xxl-job-admin/src/main/webapp/static/js/jobcode.index.1.js Parādīt failu

39
 		if (!glueRemark) {
39
 		if (!glueRemark) {
40
 			layer.open({
40
 			layer.open({
41
 				title: I18n.system_tips,
41
 				title: I18n.system_tips,
42
+                btn: [ I18n.system_ok],
42
 				content: I18n.system_please_input + I18n.jobinfo_glue_remark ,
43
 				content: I18n.system_please_input + I18n.jobinfo_glue_remark ,
43
 				icon: '2'
44
 				icon: '2'
44
 			});
45
 			});
47
 		if (glueRemark.length <4 || glueRemark.length > 100) {
48
 		if (glueRemark.length <4 || glueRemark.length > 100) {
48
 			layer.open({
49
 			layer.open({
49
 				title: I18n.system_tips ,
50
 				title: I18n.system_tips ,
51
+                btn: [ I18n.system_ok ],
50
 				content: I18n.jobinfo_glue_remark_limit ,
52
 				content: I18n.jobinfo_glue_remark_limit ,
51
 				icon: '2'
53
 				icon: '2'
52
 			});
54
 			});
66
 				if (data.code == 200) {
68
 				if (data.code == 200) {
67
 					layer.open({
69
 					layer.open({
68
 						title: I18n.system_tips,
70
 						title: I18n.system_tips,
71
+                        btn: [ I18n.system_ok ],
69
 						content: (I18n.system_save + I18n.system_success) ,
72
 						content: (I18n.system_save + I18n.system_success) ,
70
 						icon: '1',
73
 						icon: '1',
71
 						end: function(layero, index){
74
 						end: function(layero, index){
76
 				} else {
79
 				} else {
77
 					layer.open({
80
 					layer.open({
78
 						title: I18n.system_tips,
81
 						title: I18n.system_tips,
82
+                        btn: [ I18n.system_ok ],
79
 						content: (data.msg || (I18n.system_save + I18n.system_fail) ),
83
 						content: (data.msg || (I18n.system_save + I18n.system_fail) ),
80
 						icon: '2'
84
 						icon: '2'
81
 					});
85
 					});

+ 11 - 1
xxl-job-admin/src/main/webapp/static/js/jobgroup.index.1.js Parādīt failu

4
 	$('.remove').on('click', function(){
4
 	$('.remove').on('click', function(){
5
 		var id = $(this).attr('id');
5
 		var id = $(this).attr('id');
6
 
6
 
7
-		layer.confirm( (I18n.system_ok + I18n.jobgroup_del + '?') , {icon: 3, title: I18n.system_tips }, function(index){
7
+		layer.confirm( (I18n.system_ok + I18n.jobgroup_del + '?') , {
8
+			icon: 3,
9
+			title: I18n.system_tips ,
10
+            btn: [ I18n.system_ok, I18n.system_cancel ]
11
+		}, function(index){
8
 			layer.close(index);
12
 			layer.close(index);
9
 
13
 
10
 			$.ajax({
14
 			$.ajax({
16
 					if (data.code == 200) {
20
 					if (data.code == 200) {
17
 						layer.open({
21
 						layer.open({
18
 							title: I18n.system_tips ,
22
 							title: I18n.system_tips ,
23
+                            btn: [ I18n.system_ok ],
19
 							content: (I18n.jobgroup_del + I18n.system_success),
24
 							content: (I18n.jobgroup_del + I18n.system_success),
20
 							icon: '1',
25
 							icon: '1',
21
 							end: function(layero, index){
26
 							end: function(layero, index){
25
 					} else {
30
 					} else {
26
 						layer.open({
31
 						layer.open({
27
 							title: I18n.system_tips,
32
 							title: I18n.system_tips,
33
+                            btn: [ I18n.system_ok ],
28
 							content: (data.msg || (I18n.jobgroup_del + I18n.system_fail)),
34
 							content: (data.msg || (I18n.jobgroup_del + I18n.system_fail)),
29
 							icon: '2'
35
 							icon: '2'
30
 						});
36
 						});
97
 					$('#addModal').modal('hide');
103
 					$('#addModal').modal('hide');
98
 					layer.open({
104
 					layer.open({
99
 						title: I18n.system_tips ,
105
 						title: I18n.system_tips ,
106
+                        btn: [ I18n.system_ok ],
100
 						content: I18n.system_add_suc ,
107
 						content: I18n.system_add_suc ,
101
 						icon: '1',
108
 						icon: '1',
102
 						end: function(layero, index){
109
 						end: function(layero, index){
106
 				} else {
113
 				} else {
107
 					layer.open({
114
 					layer.open({
108
 						title: I18n.system_tips,
115
 						title: I18n.system_tips,
116
+                        btn: [ I18n.system_ok ],
109
 						content: (data.msg || I18n.system_add_fail  ),
117
 						content: (data.msg || I18n.system_add_fail  ),
110
 						icon: '2'
118
 						icon: '2'
111
 					});
119
 					});
203
 
211
 
204
 					layer.open({
212
 					layer.open({
205
 						title: I18n.system_tips ,
213
 						title: I18n.system_tips ,
214
+                        btn: [ I18n.system_ok ],
206
 						content: I18n.system_update_suc ,
215
 						content: I18n.system_update_suc ,
207
 						icon: '1',
216
 						icon: '1',
208
 						end: function(layero, index){
217
 						end: function(layero, index){
212
 				} else {
221
 				} else {
213
 					layer.open({
222
 					layer.open({
214
 						title: I18n.system_tips,
223
 						title: I18n.system_tips,
224
+                        btn: [ I18n.system_ok ],
215
 						content: (data.msg || I18n.system_update_fail  ),
225
 						content: (data.msg || I18n.system_update_fail  ),
216
 						icon: '2'
226
 						icon: '2'
217
 					});
227
 					});

+ 11 - 11
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js Parādīt failu

204
 		
204
 		
205
 		var id = $(this).parent('p').attr("id");
205
 		var id = $(this).parent('p').attr("id");
206
 
206
 
207
-		layer.confirm( I18n.system_ok + typeName + '?', {icon: 3, title: I18n.system_tips }, function(index){
207
+		layer.confirm( I18n.system_ok + typeName + '?', {
208
+			icon: 3,
209
+			title: I18n.system_tips ,
210
+            btn: [ I18n.system_ok, I18n.system_cancel ]
211
+		}, function(index){
208
 			layer.close(index);
212
 			layer.close(index);
209
 
213
 
210
 			$.ajax({
214
 			$.ajax({
219
 
223
 
220
 						layer.open({
224
 						layer.open({
221
 							title: I18n.system_tips,
225
 							title: I18n.system_tips,
222
-                            btn: [ I18n.system_ok , I18n.system_close ],
226
+                            btn: [ I18n.system_ok ],
223
 							content: typeName + I18n.system_success ,
227
 							content: typeName + I18n.system_success ,
224
 							icon: '1',
228
 							icon: '1',
225
 							end: function(layero, index){
229
 							end: function(layero, index){
232
 					} else {
236
 					} else {
233
 						layer.open({
237
 						layer.open({
234
 							title: I18n.system_tips,
238
 							title: I18n.system_tips,
235
-                            btn: [ I18n.system_ok , I18n.system_close ],
239
+                            btn: [ I18n.system_ok ],
236
 							content: (data.msg || typeName + I18n.system_fail ),
240
 							content: (data.msg || typeName + I18n.system_fail ),
237
 							icon: '2'
241
 							icon: '2'
238
 						});
242
 						});
289
 					$('#addModal').modal('hide');
293
 					$('#addModal').modal('hide');
290
 					layer.open({
294
 					layer.open({
291
 						title: I18n.system_tips ,
295
 						title: I18n.system_tips ,
296
+                        btn: [ I18n.system_ok ],
292
 						content: I18n.system_add_suc ,
297
 						content: I18n.system_add_suc ,
293
 						icon: '1',
298
 						icon: '1',
294
 						end: function(layero, index){
299
 						end: function(layero, index){
299
     			} else {
304
     			} else {
300
 					layer.open({
305
 					layer.open({
301
 						title: I18n.system_tips ,
306
 						title: I18n.system_tips ,
307
+                        btn: [ I18n.system_ok ],
302
 						content: (data.msg || I18n.system_add_fail),
308
 						content: (data.msg || I18n.system_add_fail),
303
 						icon: '2'
309
 						icon: '2'
304
 					});
310
 					});
348
 
354
 
349
         var id = $(this).parent('p').attr("id");
355
         var id = $(this).parent('p').attr("id");
350
         var row = tableData['key'+id];
356
         var row = tableData['key'+id];
351
-        /*if (!row) {
352
-            layer.open({
353
-                title: I18n.system_tips ,
354
-                content: ("数据加载失败,请刷新页面"),
355
-                icon: '2'
356
-            });
357
-            return;
358
-        }*/
359
 
357
 
360
 		// base data
358
 		// base data
361
 		$("#updateModal .form input[name='id']").val( row.id );
359
 		$("#updateModal .form input[name='id']").val( row.id );
422
 					$('#updateModal').modal('hide');
420
 					$('#updateModal').modal('hide');
423
 					layer.open({
421
 					layer.open({
424
 						title: I18n.system_tips ,
422
 						title: I18n.system_tips ,
423
+                        btn: [ I18n.system_ok ],
425
 						content: I18n.system_update_suc ,
424
 						content: I18n.system_update_suc ,
426
 						icon: '1',
425
 						icon: '1',
427
 						end: function(layero, index){
426
 						end: function(layero, index){
432
     			} else {
431
     			} else {
433
 					layer.open({
432
 					layer.open({
434
 						title: I18n.system_tips ,
433
 						title: I18n.system_tips ,
434
+                        btn: [ I18n.system_ok ],
435
 						content: (data.msg || I18n.system_update_fail ),
435
 						content: (data.msg || I18n.system_update_fail ),
436
 						icon: '2'
436
 						icon: '2'
437
 					});
437
 					});

+ 10 - 1
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js Parādīt failu

21
 				} else {
21
 				} else {
22
 					layer.open({
22
 					layer.open({
23
 						title: I18n.system_tips ,
23
 						title: I18n.system_tips ,
24
+                        btn: [ I18n.system_ok ],
24
 						content: (data.msg || I18n.system_api_error ),
25
 						content: (data.msg || I18n.system_api_error ),
25
 						icon: '2'
26
 						icon: '2'
26
 					});
27
 					});
240
 	$('#joblog_list').on('click', '.logKill', function(){
241
 	$('#joblog_list').on('click', '.logKill', function(){
241
 		var _id = $(this).attr('_id');
242
 		var _id = $(this).attr('_id');
242
 
243
 
243
-        layer.confirm( (I18n.system_ok + I18n.joblog_kill_log + '?'), {icon: 3, title: I18n.system_tips }, function(index){
244
+        layer.confirm( (I18n.system_ok + I18n.joblog_kill_log + '?'), {
245
+        	icon: 3,
246
+			title: I18n.system_tips ,
247
+            btn: [ I18n.system_ok, I18n.system_cancel ]
248
+		}, function(index){
244
             layer.close(index);
249
             layer.close(index);
245
 
250
 
246
             $.ajax({
251
             $.ajax({
252
                     if (data.code == 200) {
257
                     if (data.code == 200) {
253
                         layer.open({
258
                         layer.open({
254
                             title: I18n.system_tips,
259
                             title: I18n.system_tips,
260
+                            btn: [ I18n.system_ok ],
255
                             content: I18n.system_opt_suc ,
261
                             content: I18n.system_opt_suc ,
256
                             icon: '1',
262
                             icon: '1',
257
                             end: function(layero, index){
263
                             end: function(layero, index){
261
                     } else {
267
                     } else {
262
                         layer.open({
268
                         layer.open({
263
                             title: I18n.system_tips,
269
                             title: I18n.system_tips,
270
+                            btn: [ I18n.system_ok ],
264
                             content: (data.msg || I18n.system_opt_fail ),
271
                             content: (data.msg || I18n.system_opt_fail ),
265
                             icon: '2'
272
                             icon: '2'
266
                         });
273
                         });
297
 				$('#clearLogModal').modal('hide');
304
 				$('#clearLogModal').modal('hide');
298
 				layer.open({
305
 				layer.open({
299
 					title: I18n.system_tips ,
306
 					title: I18n.system_tips ,
307
+                    btn: [ I18n.system_ok ],
300
 					content: (I18n.joblog_clean_log + I18n.system_success) ,
308
 					content: (I18n.joblog_clean_log + I18n.system_success) ,
301
 					icon: '1',
309
 					icon: '1',
302
 					end: function(layero, index){
310
 					end: function(layero, index){
306
 			} else {
314
 			} else {
307
 				layer.open({
315
 				layer.open({
308
 					title: I18n.system_tips ,
316
 					title: I18n.system_tips ,
317
+                    btn: [ I18n.system_ok ],
309
 					content: (data.msg || (I18n.joblog_clean_log + I18n.system_fail) ),
318
 					content: (data.msg || (I18n.joblog_clean_log + I18n.system_fail) ),
310
 					icon: '2'
319
 					icon: '2'
311
 				});
320
 				});

+ 0 - 8
xxl-job-admin/src/main/webapp/static/js/login.1.js Parādīt failu

52
                     setTimeout(function(){
52
                     setTimeout(function(){
53
                         window.location.href = base_url;
53
                         window.location.href = base_url;
54
                     }, 500);
54
                     }, 500);
55
-                    /*layer.open({
56
-                        title: I18n.system_tips,
57
-                        content: I18n.login_success,
58
-                        icon: '1',
59
-                        end: function(layero, index){
60
-                            window.location.href = base_url;
61
-                        }
62
-                    });*/
63
 				} else {
55
 				} else {
64
                     layer.open({
56
                     layer.open({
65
                         title: I18n.system_tips,
57
                         title: I18n.system_tips,