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) => { render: (text, record, index) => {
const providers = text; const providers = text;
if (providers.length === 0) { if (providers.length === 0) {
return "(empty)"; return `(${i18next.t("general:empty")})`;
} }
const half = Math.floor((providers.length + 1) / 2); const half = Math.floor((providers.length + 1) / 2);

View File

@ -182,7 +182,7 @@ class ProductListPage extends BaseListPage {
render: (text, record, index) => { render: (text, record, index) => {
const providers = text; const providers = text;
if (providers.length === 0) { if (providers.length === 0) {
return "(empty)"; return `(${i18next.t("general:empty")})`;
} }
const half = Math.floor((providers.length + 1) / 2); 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("affiliation", name);
this.updateUserField("score", id); 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"}}> <span style={{width: this.props.labelSpan === 3 ? "300px" : "200px", display: (Setting.isMobile()) ? "inline" : "inline-block"}}>
{ {
linkedValue === "" ? ( linkedValue === "" ? (
"(empty)" `(${i18next.t("general:empty")})`
) : ( ) : (
profileUrl === "" ? name : ( profileUrl === "" ? name : (
<a target="_blank" rel="noreferrer" href={profileUrl}> <a target="_blank" rel="noreferrer" href={profileUrl}>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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