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