diff --git a/conf/lang/en-us.ini b/conf/lang/en-us.ini index 77eda9b8..da7b302f 100644 --- a/conf/lang/en-us.ini +++ b/conf/lang/en-us.ini @@ -24,6 +24,7 @@ dingtalk_login = DingTalk QrCode login account_recovery = Account recovery new_password = New password confirm_password = Confirm password +new_account = Create New Account [message] keyword_placeholder = input keyword please... @@ -32,6 +33,7 @@ click_to_change = Click to change one logging_in = logging in... return_account_login = Return account password login no_account_yet = No account yet? +has_account = Already have an account? account_empty = Account cannot be empty email_empty = Email cannot be empty password_empty = Password cannot be empty diff --git a/conf/lang/zh-cn.ini b/conf/lang/zh-cn.ini index b4161a2d..25b2832b 100644 --- a/conf/lang/zh-cn.ini +++ b/conf/lang/zh-cn.ini @@ -24,6 +24,7 @@ dingtalk_login = 扫码登录 account_recovery = 找回密码 new_password = 新密码 confirm_password = 确认密码 +new_account = 用户注册 [message] keyword_placeholder = 请输入关键词... @@ -32,6 +33,7 @@ click_to_change = 点击换一张 logging_in = 正在登录... return_account_login = 返回账号密码登录 no_account_yet = 还没有账号? +has_account = 已有账号? account_empty = 账号不能为空 email_empty = 邮箱不能为空 password_empty = 密码不能为空 diff --git a/views/account/login.tpl b/views/account/login.tpl index 405f81d0..990e8623 100644 --- a/views/account/login.tpl +++ b/views/account/login.tpl @@ -78,7 +78,7 @@ {{if .ENABLED_REGISTER}} {{if ne .ENABLED_REGISTER "false"}}
- {{i18n .Lang "message.no_account_yet"}}{{i18n .Lang "common.register"}} + {{i18n .Lang "message.no_account_yet"}} {{i18n .Lang "common.register"}}
{{end}} {{end}} diff --git a/views/account/register.tpl b/views/account/register.tpl index 9861c2d6..5f53fba8 100644 --- a/views/account/register.tpl +++ b/views/account/register.tpl @@ -6,8 +6,8 @@ - - 用户注册 - Powered by MinDoc + + {{i18n .Lang "common.new_account"}} - Powered by MinDoc @@ -35,13 +35,13 @@
{{ .xsrfdata }} -

用户注册

+

{{i18n .Lang "common.new_account"}}

- +
@@ -49,7 +49,7 @@
- +
@@ -57,13 +57,13 @@
- +
- +
@@ -72,18 +72,18 @@
-   +   - +
- +
{{if ne .ENABLED_REGISTER "false"}}
- 已有账号?立即登录 + {{i18n .Lang "message.has_account"}} {{i18n .Lang "common.login"}}
{{end}} @@ -117,28 +117,28 @@ var email = $.trim($("#email").val()); if(account === ""){ - $("#account").focus().tooltip({placement:"auto",title : "账号不能为空",trigger : 'manual'}) + $("#account").focus().tooltip({placement:"auto",title : "{{i18n .Lang "message.account_empty"}}",trigger : 'manual'}) .tooltip('show') .parents('.form-group').addClass('has-error'); return false; }else if(password === ""){ - $("#password").focus().tooltip({title : '密码不能为空',trigger : 'manual'}) + $("#password").focus().tooltip({title : '{{i18n .Lang "message.password_empty"}}',trigger : 'manual'}) .tooltip('show') .parents('.form-group').addClass('has-error'); return false; }else if(confirmPassword !== password){ - $("#confirm_password").focus().tooltip({title : '确认密码不正确',trigger : 'manual'}) + $("#confirm_password").focus().tooltip({title : '{{i18n .Lang "message.confirm_password_empty"}}',trigger : 'manual'}) .tooltip('show') .parents('.form-group').addClass('has-error'); return false; }else if(email === ""){ - $("#email").focus().tooltip({title : '邮箱不能为空',trigger : 'manual'}) + $("#email").focus().tooltip({title : '{{i18n .Lang "message.email_empty"}}',trigger : 'manual'}) .tooltip('show') .parents('.form-group').addClass('has-error'); return false; }else if(code !== undefined && code === ""){ - $("#code").focus().tooltip({title : '验证码不能为空',trigger : 'manual'}) + $("#code").focus().tooltip({title : '{{i18n .Lang "message.captcha_empty"}}',trigger : 'manual'}) .tooltip('show') .parents('.form-group').addClass('has-error'); return false;