xuxueli 5 anni fa
parent
commit
4eb77dddd1

+ 6 - 0
xxl-job-admin/src/main/resources/i18n/message.properties Vedi File

@@ -34,6 +34,7 @@ system_nav=导航
34 34
 system_digits=整数
35 35
 system_lengh_limit=长度限制
36 36
 system_permission_limit=权限拦截
37
+system_welcome=欢迎
37 38
 
38 39
 ## daterangepicker
39 40
 daterangepicker_ranges_recent_hour=最近一小时
@@ -86,6 +87,11 @@ logout_confirm=确认注销登录?
86 87
 logout_success=注销成功
87 88
 logout_fail=注销失败
88 89
 
90
+## change pwd
91
+change_pwd=修改密码
92
+change_pwd_suc_to_logout=修改密码成功,即将注销登陆
93
+change_pwd_field_newpwd=新密码
94
+
89 95
 ## dashboard
90 96
 job_dashboard_name=运行报表
91 97
 job_dashboard_job_num=任务数量

+ 6 - 0
xxl-job-admin/src/main/resources/i18n/message_en.properties Vedi File

@@ -34,6 +34,7 @@ system_nav=Navigation
34 34
 system_digits=digits
35 35
 system_lengh_limit=Length limit
36 36
 system_permission_limit=Permission limit
37
+system_welcome=Welcome
37 38
 
38 39
 ## daterangepicker
39 40
 daterangepicker_ranges_recent_hour=recent one hour
@@ -86,6 +87,11 @@ logout_confirm=Confirm logout?
86 87
 logout_success=Logout success
87 88
 logout_fail=Logout fail
88 89
 
90
+## change pwd
91
+change_pwd=Change password
92
+change_pwd_suc_to_logout=Change password successful, about to log out login
93
+change_pwd_field_newpwd=new password
94
+
89 95
 ## dashboard
90 96
 job_dashboard_name=Run report
91 97
 job_dashboard_job_num=Job number

+ 3 - 3
xxl-job-admin/src/main/resources/static/js/common.1.js Vedi File

@@ -125,7 +125,7 @@ $(function(){
125 125
                 if (data.code == 200) {
126 126
                     $('#updatePwdModal').modal('hide');
127 127
 
128
-                    layer.msg( '修改密码成功,即将注销登陆' );
128
+                    layer.msg( I18n.change_pwd_suc_to_logout );
129 129
                     setTimeout(function(){
130 130
                         $.post(base_url + "/logout", function(data, status) {
131 131
                             if (data.code == 200) {
@@ -133,7 +133,7 @@ $(function(){
133 133
                             } else {
134 134
                                 layer.open({
135 135
                                     icon: '2',
136
-                                    content: (data.msg||'注销失败')
136
+                                    content: (data.msg|| I18n.logout_fail)
137 137
                                 });
138 138
                             }
139 139
                         });
@@ -141,7 +141,7 @@ $(function(){
141 141
                 } else {
142 142
                     layer.open({
143 143
                         icon: '2',
144
-                        content: (data.msg||'修改密码失败')
144
+                        content: (data.msg|| I18n.change_pwd + I18n.system_fail )
145 145
                     });
146 146
                 }
147 147
             });

+ 7 - 7
xxl-job-admin/src/main/resources/templates/common/common.macro.ftl Vedi File

@@ -84,11 +84,11 @@
84 84
 					<#-- login user -->
85 85
                     <li class="dropdown">
86 86
                         <a href="javascript:" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
87
-                            欢迎 ${Request["XXL_JOB_LOGIN_IDENTITY"].username}
87
+                            ${I18n.system_welcome} ${Request["XXL_JOB_LOGIN_IDENTITY"].username}
88 88
                             <span class="caret"></span>
89 89
                         </a>
90 90
                         <ul class="dropdown-menu" role="menu">
91
-                            <li id="updatePwd" ><a href="javascript:">修改密码</a></li>
91
+                            <li id="updatePwd" ><a href="javascript:">${I18n.change_pwd}</a></li>
92 92
                             <li id="logoutBtn" ><a href="javascript:">${I18n.logout_btn}</a></li>
93 93
                         </ul>
94 94
                     </li>
@@ -103,19 +103,19 @@
103 103
 		<div class="modal-dialog ">
104 104
 			<div class="modal-content">
105 105
 				<div class="modal-header">
106
-					<h4 class="modal-title" >修改密码</h4>
106
+					<h4 class="modal-title" >${I18n.change_pwd}</h4>
107 107
 				</div>
108 108
 				<div class="modal-body">
109 109
 					<form class="form-horizontal form" role="form" >
110 110
 						<div class="form-group">
111
-							<label for="lastname" class="col-sm-2 control-label">新密码<font color="red">*</font></label>
112
-							<div class="col-sm-10"><input type="text" class="form-control" name="password" placeholder="请输入新密码" maxlength="100" ></div>
111
+							<label for="lastname" class="col-sm-2 control-label">${I18n.change_pwd_field_newpwd}<font color="red">*</font></label>
112
+							<div class="col-sm-10"><input type="text" class="form-control" name="password" placeholder="${I18n.system_please_input} ${I18n.change_pwd_field_newpwd}" maxlength="100" ></div>
113 113
 						</div>
114 114
 						<hr>
115 115
 						<div class="form-group">
116 116
 							<div class="col-sm-offset-3 col-sm-6">
117
-								<button type="submit" class="btn btn-primary"  >保存</button>
118
-								<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
117
+								<button type="submit" class="btn btn-primary"  >${I18n.system_save}</button>
118
+								<button type="button" class="btn btn-default" data-dismiss="modal">${I18n.system_cancel}</button>
119 119
 							</div>
120 120
 						</div>
121 121
 					</form>