Преглед на файлове

国际化定制基本结束

xuxueli преди 7 години
родител
ревизия
68db58ad72

+ 1 - 0
xxl-job-admin/src/main/resources/i18n/message.properties Целия файл

@@ -29,6 +29,7 @@ system_opt_edit=编辑
29 29
 system_opt_del=删除
30 30
 system_unvalid=非法
31 31
 system_not_found=不存在
32
+system_nav=导航
32 33
 
33 34
 ## daterangepicker
34 35
 daterangepicker_ranges_recent_hour=最近一小时

+ 5 - 4
xxl-job-admin/src/main/resources/i18n/message_en.properties Целия файл

@@ -4,9 +4,9 @@ admin_version=1.9.1(SNAPSHOT)
4 4
 
5 5
 ## system
6 6
 system_tips=System message
7
-system_ok=Confirm
7
+system_ok=Confirm 
8 8
 system_close=Close
9
-system_save=Save
9
+system_save=Save 
10 10
 system_cancel=Cancel
11 11
 system_search=Search
12 12
 system_status=Status
@@ -25,10 +25,11 @@ system_show=Show
25 25
 system_empty=Empty
26 26
 system_opt_suc=operate success
27 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 30
 system_unvalid=illegal
31 31
 system_not_found=not exist
32
+system_nav=Navigation
32 33
 
33 34
 ## daterangepicker
34 35
 daterangepicker_ranges_recent_hour=recent one hour

+ 1 - 1
xxl-job-admin/src/main/webapp/WEB-INF/template/common/common.macro.ftl Целия файл

@@ -92,7 +92,7 @@
92 92
 		<section class="sidebar">
93 93
 			<!-- sidebar menu: : style can be found in sidebar.less -->
94 94
 			<ul class="sidebar-menu">
95
-                <li class="header">导航</li>
95
+                <li class="header">${I18n.system_nav}</li>
96 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 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 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 Целия файл

@@ -2,7 +2,11 @@ $(function(){
2 2
 
3 3
 	// logout
4 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 10
 			layer.close(index);
7 11
 
8 12
 			$.post(base_url + "/logout", function(data, status) {
@@ -11,18 +15,10 @@ $(function(){
11 15
                     setTimeout(function(){
12 16
                         window.location.href = base_url + "/";
13 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 18
 				} else {
23 19
 					layer.open({
24 20
 						title: I18n.system_tips ,
25
-                        btn: [ I18n.system_ok , I18n.system_close ],
21
+                        btn: [ I18n.system_ok ],
26 22
 						content: (data.msg || I18n.logout_fail),
27 23
 						icon: '2'
28 24
 					});

+ 1 - 0
xxl-job-admin/src/main/webapp/static/js/index.js Целия файл

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

+ 4 - 0
xxl-job-admin/src/main/webapp/static/js/jobcode.index.1.js Целия файл

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

+ 11 - 1
xxl-job-admin/src/main/webapp/static/js/jobgroup.index.1.js Целия файл

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

+ 11 - 11
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js Целия файл

@@ -204,7 +204,11 @@ $(function() {
204 204
 		
205 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 212
 			layer.close(index);
209 213
 
210 214
 			$.ajax({
@@ -219,7 +223,7 @@ $(function() {
219 223
 
220 224
 						layer.open({
221 225
 							title: I18n.system_tips,
222
-                            btn: [ I18n.system_ok , I18n.system_close ],
226
+                            btn: [ I18n.system_ok ],
223 227
 							content: typeName + I18n.system_success ,
224 228
 							icon: '1',
225 229
 							end: function(layero, index){
@@ -232,7 +236,7 @@ $(function() {
232 236
 					} else {
233 237
 						layer.open({
234 238
 							title: I18n.system_tips,
235
-                            btn: [ I18n.system_ok , I18n.system_close ],
239
+                            btn: [ I18n.system_ok ],
236 240
 							content: (data.msg || typeName + I18n.system_fail ),
237 241
 							icon: '2'
238 242
 						});
@@ -289,6 +293,7 @@ $(function() {
289 293
 					$('#addModal').modal('hide');
290 294
 					layer.open({
291 295
 						title: I18n.system_tips ,
296
+                        btn: [ I18n.system_ok ],
292 297
 						content: I18n.system_add_suc ,
293 298
 						icon: '1',
294 299
 						end: function(layero, index){
@@ -299,6 +304,7 @@ $(function() {
299 304
     			} else {
300 305
 					layer.open({
301 306
 						title: I18n.system_tips ,
307
+                        btn: [ I18n.system_ok ],
302 308
 						content: (data.msg || I18n.system_add_fail),
303 309
 						icon: '2'
304 310
 					});
@@ -348,14 +354,6 @@ $(function() {
348 354
 
349 355
         var id = $(this).parent('p').attr("id");
350 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 358
 		// base data
361 359
 		$("#updateModal .form input[name='id']").val( row.id );
@@ -422,6 +420,7 @@ $(function() {
422 420
 					$('#updateModal').modal('hide');
423 421
 					layer.open({
424 422
 						title: I18n.system_tips ,
423
+                        btn: [ I18n.system_ok ],
425 424
 						content: I18n.system_update_suc ,
426 425
 						icon: '1',
427 426
 						end: function(layero, index){
@@ -432,6 +431,7 @@ $(function() {
432 431
     			} else {
433 432
 					layer.open({
434 433
 						title: I18n.system_tips ,
434
+                        btn: [ I18n.system_ok ],
435 435
 						content: (data.msg || I18n.system_update_fail ),
436 436
 						icon: '2'
437 437
 					});

+ 10 - 1
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js Целия файл

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

+ 0 - 8
xxl-job-admin/src/main/webapp/static/js/login.1.js Целия файл

@@ -52,14 +52,6 @@ $(function(){
52 52
                     setTimeout(function(){
53 53
                         window.location.href = base_url;
54 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 55
 				} else {
64 56
                     layer.open({
65 57
                         title: I18n.system_tips,