Add "empty" to i18n

This commit is contained in:
Gucheng Wang
2023-03-19 20:13:07 +08:00
parent 98f962f818
commit 89d29c2519
14 changed files with 15 additions and 5 deletions

View File

@ -176,7 +176,7 @@ class ApplicationListPage extends BaseListPage {
render: (text, record, index) => {
const providers = text;
if (providers.length === 0) {
return "(empty)";
return `(${i18next.t("general:empty")})`;
}
const half = Math.floor((providers.length + 1) / 2);

View File

@ -182,7 +182,7 @@ class ProductListPage extends BaseListPage {
render: (text, record, index) => {
const providers = text;
if (providers.length === 0) {
return "(empty)";
return `(${i18next.t("general:empty")})`;
}
const half = Math.floor((providers.length + 1) / 2);

View File

@ -105,7 +105,7 @@ class AffiliationSelect extends React.Component {
this.updateUserField("affiliation", name);
this.updateUserField("score", id);
})}
options={[Setting.getOption("(empty)", "")].concat(this.state.affiliationOptions.map((affiliationOption) => Setting.getOption(affiliationOption.name, affiliationOption.name))
options={[Setting.getOption(`(${i18next.t("general:empty")})`, "")].concat(this.state.affiliationOptions.map((affiliationOption) => Setting.getOption(affiliationOption.name, affiliationOption.name))
)} />
)
}

View File

@ -155,7 +155,7 @@ class OAuthWidget extends React.Component {
<span style={{width: this.props.labelSpan === 3 ? "300px" : "200px", display: (Setting.isMobile()) ? "inline" : "inline-block"}}>
{
linkedValue === "" ? (
"(empty)"
`(${i18next.t("general:empty")})`
) : (
profileUrl === "" ? name : (
<a target="_blank" rel="noreferrer" href={profileUrl}>

View File

@ -268,6 +268,7 @@
"Users": "Benutzer",
"Users under all organizations": "Benutzer unter allen Organisationen",
"Webhooks": "Webhooks",
"empty": "leere",
"{total} in total": "Insgesamt {total}"
},
"ldap": {

View File

@ -268,6 +268,7 @@
"Users": "Users",
"Users under all organizations": "Users under all organizations",
"Webhooks": "Webhooks",
"empty": "empty",
"{total} in total": "{total} in total"
},
"ldap": {

View File

@ -268,6 +268,7 @@
"Users": "Usuarios",
"Users under all organizations": "Usuarios bajo todas las organizaciones",
"Webhooks": "Webhooks",
"empty": "vacío",
"{total} in total": "{total} en total"
},
"ldap": {

View File

@ -268,6 +268,7 @@
"Users": "Utilisateurs",
"Users under all organizations": "Utilisateurs sous toutes les organisations",
"Webhooks": "Webhooks",
"empty": "vide",
"{total} in total": "{total} au total"
},
"ldap": {

View File

@ -268,6 +268,7 @@
"Users": "Pengguna-pengguna",
"Users under all organizations": "Pengguna di bawah semua organisasi",
"Webhooks": "Webhooks",
"empty": "kosong",
"{total} in total": "{total} secara keseluruhan"
},
"ldap": {

View File

@ -268,6 +268,7 @@
"Users": "ユーザー",
"Users under all organizations": "すべての組織のユーザー",
"Webhooks": "Webhooks",
"empty": "空",
"{total} in total": "総計{total}"
},
"ldap": {

View File

@ -268,6 +268,7 @@
"Users": "사용자들",
"Users under all organizations": "모든 조직의 사용자",
"Webhooks": "Webhooks",
"empty": "빈",
"{total} in total": "총 {total}개"
},
"ldap": {

View File

@ -268,6 +268,7 @@
"Users": "Пользователи",
"Users under all organizations": "Пользователи всех организаций",
"Webhooks": "Webhooks",
"empty": "пустые",
"{total} in total": "{total} в общей сложности"
},
"ldap": {

View File

@ -268,6 +268,7 @@
"Users": "Người dùng",
"Users under all organizations": "Người dùng trong tất cả các tổ chức",
"Webhooks": "Webhooks",
"empty": "trống",
"{total} in total": "Trong tổng số {total}"
},
"ldap": {

View File

@ -171,7 +171,7 @@
"Failed to connect to server": "连接服务器失败",
"Failed to delete": "删除失败",
"Failed to save": "保存失败",
"Favicon": "组织Favicon",
"Favicon": "Favicon",
"Favicon - Tooltip": "该组织所有Casdoor页面中所使用的Favicon图标URL",
"First name": "名字",
"Forget URL": "忘记密码URL",
@ -268,6 +268,7 @@
"Users": "用户",
"Users under all organizations": "所有组织里的用户",
"Webhooks": "Webhooks",
"empty": "无",
"{total} in total": "{total} 总计"
},
"ldap": {