mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Improve i18n.
This commit is contained in:
@ -159,10 +159,10 @@ class UserEditPage extends React.Component {
|
|||||||
{
|
{
|
||||||
linkedValue === "" ? (
|
linkedValue === "" ? (
|
||||||
<a key={provider.displayName} href={Provider.getAuthUrl(this.state.application, provider, "link")}>
|
<a key={provider.displayName} href={Provider.getAuthUrl(this.state.application, provider, "link")}>
|
||||||
<Button style={{marginLeft: '20px', width: '80px'}} type="primary">Link</Button>
|
<Button style={{marginLeft: '20px', width: '80px'}} type="primary">{i18next.t("user:Link")}</Button>
|
||||||
</a>
|
</a>
|
||||||
) : (
|
) : (
|
||||||
<Button style={{marginLeft: '20px', width: '80px'}} onClick={() => this.unlinkUser(provider.type)}>Unlink</Button>
|
<Button style={{marginLeft: '20px', width: '80px'}} onClick={() => this.unlinkUser(provider.type)}>{i18next.t("user:Unlink")}</Button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</Col>
|
</Col>
|
||||||
@ -225,7 +225,7 @@ class UserEditPage extends React.Component {
|
|||||||
<Col span={22} >
|
<Col span={22} >
|
||||||
<Row style={{marginTop: '20px'}} >
|
<Row style={{marginTop: '20px'}} >
|
||||||
<Col style={{marginTop: '5px'}} span={2}>
|
<Col style={{marginTop: '5px'}} span={2}>
|
||||||
URL:
|
{i18next.t("general:URL")}:
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={22} >
|
<Col span={22} >
|
||||||
<Input prefix={<LinkOutlined/>} value={this.state.user.avatar} onChange={e => {
|
<Input prefix={<LinkOutlined/>} value={this.state.user.avatar} onChange={e => {
|
||||||
|
@ -37,7 +37,7 @@ class HomePage extends React.Component {
|
|||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
items = [
|
items = [
|
||||||
{link: "/account", name: i18next.t("general:My Account"), organizer: i18next.t("general:Settings for your account")},
|
{link: "/account", name: i18next.t("account:My Account"), organizer: i18next.t("account:Settings for your account")},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
"Name": "Name",
|
"Name": "Name",
|
||||||
"Display Name": "Display Name",
|
"Display Name": "Display Name",
|
||||||
"Avatar": "Avatar",
|
"Avatar": "Avatar",
|
||||||
|
"URL": "URL",
|
||||||
"Preview": "Preview",
|
"Preview": "Preview",
|
||||||
"User Type": "User Type",
|
"User Type": "User Type",
|
||||||
"Password Type": "Password Type",
|
"Password Type": "Password Type",
|
||||||
@ -32,6 +33,7 @@
|
|||||||
"account":
|
"account":
|
||||||
{
|
{
|
||||||
"My Account": "My Account",
|
"My Account": "My Account",
|
||||||
|
"Settings for your account": "Settings for your account",
|
||||||
"Login": "Login",
|
"Login": "Login",
|
||||||
"Logout": "Logout",
|
"Logout": "Logout",
|
||||||
"Register": "Register"
|
"Register": "Register"
|
||||||
@ -59,6 +61,8 @@
|
|||||||
"Affiliation": "Affiliation",
|
"Affiliation": "Affiliation",
|
||||||
"Tag": "Tag",
|
"Tag": "Tag",
|
||||||
"Third-party Logins": "Third-party Logins",
|
"Third-party Logins": "Third-party Logins",
|
||||||
|
"Link": "Link",
|
||||||
|
"Unlink": "Unlink",
|
||||||
"Is Admin": "Is Admin",
|
"Is Admin": "Is Admin",
|
||||||
"Is Global Admin": "Is Global Admin"
|
"Is Global Admin": "Is Global Admin"
|
||||||
},
|
},
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
"Name": "用户名",
|
"Name": "用户名",
|
||||||
"Display Name": "姓名",
|
"Display Name": "姓名",
|
||||||
"Avatar": "头像",
|
"Avatar": "头像",
|
||||||
|
"URL": "链接",
|
||||||
"Preview": "预览",
|
"Preview": "预览",
|
||||||
"User Type": "用户类型",
|
"User Type": "用户类型",
|
||||||
"Password Type": "密码类型",
|
"Password Type": "密码类型",
|
||||||
@ -32,6 +33,7 @@
|
|||||||
"account":
|
"account":
|
||||||
{
|
{
|
||||||
"My Account": "我的账户",
|
"My Account": "我的账户",
|
||||||
|
"Settings for your account": "账户设置选项",
|
||||||
"Login": "登录",
|
"Login": "登录",
|
||||||
"Logout": "登出",
|
"Logout": "登出",
|
||||||
"Register": "注册"
|
"Register": "注册"
|
||||||
@ -61,6 +63,8 @@
|
|||||||
"Affiliation": "单位",
|
"Affiliation": "单位",
|
||||||
"Tag": "标签",
|
"Tag": "标签",
|
||||||
"Third-party Logins": "第三方登录",
|
"Third-party Logins": "第三方登录",
|
||||||
|
"Link": "绑定",
|
||||||
|
"Unlink": "解绑",
|
||||||
"Is Admin": "是管理员",
|
"Is Admin": "是管理员",
|
||||||
"Is Global Admin": "是全局管理员"
|
"Is Global Admin": "是全局管理员"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user