Improve UI text.

This commit is contained in:
Yang Luo
2021-04-28 00:13:50 +08:00
parent 7a0ed4ebaf
commit 6fbdc556ac
12 changed files with 57 additions and 57 deletions

View File

@ -107,7 +107,7 @@ class ApplicationEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Display Name")}:
{i18next.t("general:Display name")}:
</Col>
<Col span={22} >
<Input value={this.state.application.displayName} onChange={e => {
@ -186,7 +186,7 @@ class ApplicationEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("provider:Client Secret")}:
{i18next.t("provider:Client secret")}:
</Col>
<Col span={22} >
<Input value={this.state.application.clientSecret} onChange={e => {
@ -208,7 +208,7 @@ class ApplicationEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Expire In Hours")}:
{i18next.t("general:Expire in hours")}:
</Col>
<Col span={22} >
<Input value={this.state.application.expireInHours} onChange={e => {
@ -218,7 +218,7 @@ class ApplicationEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("application:Enable Password")}:
{i18next.t("application:Enable password")}:
</Col>
<Col span={1} >
<Switch checked={this.state.application.enablePassword} onChange={checked => {
@ -228,7 +228,7 @@ class ApplicationEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("application:Enable Sign Up")}:
{i18next.t("application:Enable signup")}:
</Col>
<Col span={1} >
<Switch checked={this.state.application.enableSignUp} onChange={checked => {
@ -254,7 +254,7 @@ class ApplicationEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("application:Login Page Preview")}:
{i18next.t("application:Login page preview")}:
</Col>
<Col span={22} >
<a style={{marginBottom: '10px'}} target="_blank" rel="noreferrer" href={`/login/oauth/authorize?client_id=${this.state.application.clientId}&response_type=code&redirect_uri=${this.state.application.redirectUris[0]}&scope=read&state=casdoor`}>

View File

@ -104,7 +104,7 @@ class ApplicationListPage extends React.Component {
}
},
{
title: i18next.t("general:Created Time"),
title: i18next.t("general:Created time"),
dataIndex: 'createdTime',
key: 'createdTime',
width: '160px',
@ -114,7 +114,7 @@ class ApplicationListPage extends React.Component {
}
},
{
title: i18next.t("general:Display Name"),
title: i18next.t("general:Display name"),
dataIndex: 'displayName',
key: 'displayName',
// width: '100px',

View File

@ -78,7 +78,7 @@ class OrganizationEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Display Name")}:
{i18next.t("general:Display name")}:
</Col>
<Col span={22} >
<Input value={this.state.organization.displayName} onChange={e => {

View File

@ -98,7 +98,7 @@ class OrganizationListPage extends React.Component {
}
},
{
title: i18next.t("general:Created Time"),
title: i18next.t("general:Created time"),
dataIndex: 'createdTime',
key: 'createdTime',
width: '160px',
@ -108,7 +108,7 @@ class OrganizationListPage extends React.Component {
}
},
{
title: i18next.t("general:Display Name"),
title: i18next.t("general:Display name"),
dataIndex: 'displayName',
key: 'displayName',
// width: '100px',

View File

@ -80,7 +80,7 @@ class ProviderEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Display Name")}:
{i18next.t("general:Display name")}:
</Col>
<Col span={22} >
<Input value={this.state.provider.displayName} onChange={e => {
@ -117,7 +117,7 @@ class ProviderEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("provider:Client Secret")}:
{i18next.t("provider:Client secret")}:
</Col>
<Col span={22} >
<Input value={this.state.provider.clientSecret} onChange={e => {

View File

@ -102,7 +102,7 @@ class ProviderListPage extends React.Component {
}
},
{
title: i18next.t("general:Created Time"),
title: i18next.t("general:Created time"),
dataIndex: 'createdTime',
key: 'createdTime',
width: '160px',
@ -112,7 +112,7 @@ class ProviderListPage extends React.Component {
}
},
{
title: i18next.t("general:Display Name"),
title: i18next.t("general:Display name"),
dataIndex: 'displayName',
key: 'displayName',
// width: '100px',
@ -138,7 +138,7 @@ class ProviderListPage extends React.Component {
sorter: (a, b) => a.clientId.localeCompare(b.clientId),
},
// {
// title: 'Client Secret',
// title: 'Client secret',
// dataIndex: 'clientSecret',
// key: 'clientSecret',
// width: '150px',

View File

@ -88,7 +88,7 @@ class TokenEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Authorization Code")}:
{i18next.t("general:Authorization code")}:
</Col>
<Col span={22} >
<Input value={this.state.token.code} onChange={e => {
@ -98,7 +98,7 @@ class TokenEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Access Token")}:
{i18next.t("general:Access token")}:
</Col>
<Col span={22} >
<Input value={this.state.token.accessToken} onChange={e => {
@ -108,7 +108,7 @@ class TokenEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Expires In")}:
{i18next.t("general:Expires in")}:
</Col>
<Col span={22} >
<Input value={this.state.token.expiresIn} onChange={e => {
@ -128,7 +128,7 @@ class TokenEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Token Type")}:
{i18next.t("general:Token type")}:
</Col>
<Col span={22} >
<Input value={this.state.token.tokenType} onChange={e => {

View File

@ -101,7 +101,7 @@ class TokenListPage extends React.Component {
}
},
{
title: i18next.t("general:Created Time"),
title: i18next.t("general:Created time"),
dataIndex: 'createdTime',
key: 'createdTime',
width: '160px',
@ -125,7 +125,7 @@ class TokenListPage extends React.Component {
}
},
{
title: i18next.t("token:Authorization Code"),
title: i18next.t("token:Authorization code"),
dataIndex: 'code',
key: 'code',
// width: '150px',
@ -135,7 +135,7 @@ class TokenListPage extends React.Component {
}
},
{
title: i18next.t("token:Access Token"),
title: i18next.t("token:Access token"),
dataIndex: 'accessToken',
key: 'accessToken',
// width: '150px',
@ -146,7 +146,7 @@ class TokenListPage extends React.Component {
}
},
{
title: i18next.t("token:Expires In"),
title: i18next.t("token:Expires in"),
dataIndex: 'expiresIn',
key: 'expiresIn',
width: '120px',
@ -160,7 +160,7 @@ class TokenListPage extends React.Component {
sorter: (a, b) => a.scope.localeCompare(b.scope),
},
{
title: i18next.t("token:Token Type"),
title: i18next.t("token:Token type"),
dataIndex: 'tokenType',
key: 'tokenType',
width: '130px',

View File

@ -210,7 +210,7 @@ class UserEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Display Name")}:
{i18next.t("general:Display name")}:
</Col>
<Col span={22} >
<Input value={this.state.user.displayName} onChange={e => {
@ -250,7 +250,7 @@ class UserEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:User Type")}:
{i18next.t("general:User type")}:
</Col>
<Col span={22} >
<Select virtual={false} style={{width: '100%'}} value={this.state.user.type} onChange={(value => {this.updateUserField('type', value);})}>
@ -263,7 +263,7 @@ class UserEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Password Type")}:
{i18next.t("general:Password type")}:
</Col>
<Col span={22} >
<Select virtual={false} style={{width: '100%'}} value={this.state.user.passwordType} onChange={(value => {this.updateUserField('passwordType', value);})}>
@ -331,7 +331,7 @@ class UserEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("user:Third-party Logins")}:
{i18next.t("user:Third-party logins")}:
</Col>
<Col span={22} >
<div style={{marginBottom: 20}}>
@ -346,7 +346,7 @@ class UserEditPage extends React.Component {
<React.Fragment>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("user:Is Admin")}:
{i18next.t("user:Is admin")}:
</Col>
<Col span={1} >
<Switch checked={this.state.user.isAdmin} onChange={checked => {
@ -356,7 +356,7 @@ class UserEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("user:Is Global Admin")}:
{i18next.t("user:Is global admin")}:
</Col>
<Col span={1} >
<Switch checked={this.state.user.isGlobalAdmin} onChange={checked => {

View File

@ -121,7 +121,7 @@ class UserListPage extends React.Component {
}
},
{
title: i18next.t("general:Created Time"),
title: i18next.t("general:Created time"),
dataIndex: 'createdTime',
key: 'createdTime',
width: '160px',
@ -131,7 +131,7 @@ class UserListPage extends React.Component {
}
},
// {
// title: 'Password Type',
// title: 'Password type',
// dataIndex: 'passwordType',
// key: 'passwordType',
// width: '150px',
@ -145,7 +145,7 @@ class UserListPage extends React.Component {
// sorter: (a, b) => a.password.localeCompare(b.password),
// },
{
title: i18next.t("general:Display Name"),
title: i18next.t("general:Display name"),
dataIndex: 'displayName',
key: 'displayName',
// width: '100px',
@ -200,7 +200,7 @@ class UserListPage extends React.Component {
sorter: (a, b) => a.tag.localeCompare(b.tag),
},
{
title: i18next.t("user:Is Admin"),
title: i18next.t("user:Is admin"),
dataIndex: 'isAdmin',
key: 'isAdmin',
width: '120px',
@ -212,7 +212,7 @@ class UserListPage extends React.Component {
}
},
{
title: i18next.t("user:Is Global Admin"),
title: i18next.t("user:Is global admin"),
dataIndex: 'isGlobalAdmin',
key: 'isGlobalAdmin',
width: '120px',

View File

@ -12,14 +12,14 @@
"Edit": "Edit",
"Delete": "Delete",
"Organization": "Organization",
"Created Time": "Created Time",
"Created time": "Created time",
"Name": "Name",
"Display Name": "Display Name",
"Display name": "Display name",
"Avatar": "Avatar",
"URL": "URL",
"Preview": "Preview",
"User Type": "User Type",
"Password Type": "Password Type",
"User type": "User type",
"Password type": "Password type",
"Password": "Password",
"Email": "Email",
"Phone": "Phone",
@ -59,7 +59,7 @@
{
"Type": "Type",
"Client ID": "Client ID",
"Client Secret": "Client Secret",
"Client secret": "Client secret",
"Provider URL": "Provider URL",
"Edit Provider": "Edit Provider"
},
@ -72,16 +72,16 @@
"Set new profile picture": "Set new profile picture",
"Affiliation": "Affiliation",
"Tag": "Tag",
"Third-party Logins": "Third-party Logins",
"Third-party logins": "Third-party logins",
"Link": "Link",
"Unlink": "Unlink",
"Is Admin": "Is Admin",
"Is Global Admin": "Is Global Admin"
"Is admin": "Is admin",
"Is global admin": "Is global admin"
},
"application":
{
"Edit Application": "Edit Application",
"Enable Password": "Enable Password",
"Login Page Preview": "Login Page Preview"
"Enable password": "Enable password",
"Login page preview": "Login page preview"
}
}

View File

@ -12,14 +12,14 @@
"Edit": "修改",
"Delete": "删除",
"Organization": "组织",
"Created Time": "创建时间",
"Created time": "创建时间",
"Name": "用户名",
"Display Name": "姓名",
"Display name": "姓名",
"Avatar": "头像",
"URL": "链接",
"Preview": "预览",
"User Type": "用户类型",
"Password Type": "密码类型",
"User type": "用户类型",
"Password type": "密码类型",
"Password": "密码",
"Email": "电子邮箱",
"Phone": "手机号",
@ -58,10 +58,10 @@
"provider":
{
"Name": "用户名",
"Display Name": "姓名",
"Display name": "姓名",
"Type": "类型",
"Client ID": "Client ID",
"Client Secret": "Client Secret",
"Client secret": "Client secret",
"Provider URL": "第三方URL",
"Edit Provider": "修改第三方"
},
@ -74,16 +74,16 @@
"Set new profile picture": "设置新头像",
"Affiliation": "单位",
"Tag": "标签",
"Third-party Logins": "第三方登录",
"Third-party logins": "第三方登录",
"Link": "绑定",
"Unlink": "解绑",
"Is Admin": "是管理员",
"Is Global Admin": "是全局管理员"
"Is admin": "是管理员",
"Is global admin": "是全局管理员"
},
"application":
{
"Edit Application": "修改应用",
"Enable Password": "开启密码",
"Login Page Preview": "登录页面预览"
"Enable password": "开启密码",
"Login page preview": "登录页面预览"
}
}