perf: 修改i18n

pref: 修改翻译
This commit is contained in:
ibuler
2021-11-10 18:12:30 +08:00
committed by 怀磊
parent a7ba36b734
commit e0b98ba758
4 changed files with 21 additions and 27 deletions

View File

@@ -858,7 +858,7 @@
"AppAuth": "App认证", "AppAuth": "App认证",
"OtherAuth": "其它认证", "OtherAuth": "其它认证",
"Ops": "任务", "Ops": "任务",
"OTP": "OTP(虚拟MFA)", "OTP": "MFA (OTP)",
"JMSSSO": "SSO Token 登录", "JMSSSO": "SSO Token 登录",
"MessageSub": "消息订阅", "MessageSub": "消息订阅",
"Cleaning": "定期清理", "Cleaning": "定期清理",
@@ -1216,10 +1216,10 @@
"SMS": "短信" "SMS": "短信"
}, },
"xpack": { "xpack": {
"NavHelp": "导航栏 (帮助)", "NavHelp": "导航栏链接",
"helpDocument": "帮助 (文档)", "helpDocument": "文档链接",
"helpSupport": "帮助 (支持)", "helpSupport": "支持链接",
"officialWebsite": "帮助 (官网)", "officialWebsite": "官网链接",
"helpDocumentTip": "可以更改网站导航栏 帮助 -> 文档 的网址", "helpDocumentTip": "可以更改网站导航栏 帮助 -> 文档 的网址",
"helpSupportTip": "可以更改网站导航栏 帮助 -> 支持 的网址", "helpSupportTip": "可以更改网站导航栏 帮助 -> 支持 的网址",
"officialWebsiteTip": "可以更改网站导航栏 帮助 -> 官网 的网址", "officialWebsiteTip": "可以更改网站导航栏 帮助 -> 官网 的网址",

View File

@@ -825,7 +825,7 @@
"setting": { "setting": {
"Feature": "Feature", "Feature": "Feature",
"SMSProvider": "SMS provider", "SMSProvider": "SMS provider",
"SMS": "SMS setting", "SMS": "SMS",
"AlibabaCloud": "Alibaba cloud", "AlibabaCloud": "Alibaba cloud",
"TencentCloud": "Tencent cloud", "TencentCloud": "Tencent cloud",
"VerifySignTmpl": "Verification code template", "VerifySignTmpl": "Verification code template",
@@ -838,9 +838,9 @@
"AuthLimit": "Auth limit", "AuthLimit": "Auth limit",
"Ops": "Task", "Ops": "Task",
"OTP": "OTP(MFA)", "OTP": "OTP(MFA)",
"MessageSub": "Message subscription", "MessageSub": "Message",
"Cleaning": "Period clean", "Cleaning": "Period clean",
"Perms": "授权", "Perms": "Perms",
"CASSetting": "CAS setting", "CASSetting": "CAS setting",
"Other": "More...", "Other": "More...",
"Auth": "Auth", "Auth": "Auth",
@@ -849,26 +849,26 @@
"InsecureCommandNotifyToSubscription": "Insecure command notification setting, change to system message subscription, support more notify method", "InsecureCommandNotifyToSubscription": "Insecure command notification setting, change to system message subscription, support more notify method",
"ApiKeyList": "Api key list", "ApiKeyList": "Api key list",
"AssetCount": "Asset count", "AssetCount": "Asset count",
"Basic": "Basic setting", "Basic": "Basic",
"Corporation": "Corporation", "Corporation": "Corporation",
"Create": "Create", "Create": "Create",
"Edition": "Edition", "Edition": "Edition",
"Email": "Email setting", "Email": "Email",
"EmailContent": "Email content setting", "EmailContent": "Email content setting",
"Expired": "Expired", "Expired": "Expired",
"Hostname": "Hostname", "Hostname": "Hostname",
"ImportLicense": "Import license", "ImportLicense": "Import license",
"ImportLicenseTip": "Please Import License", "ImportLicenseTip": "Please Import License",
"Ldap": "LDAP setting", "Ldap": "LDAP",
"License": "License", "License": "License",
"LicenseFile": "License file", "LicenseFile": "License file",
"PasswordCheckRule": "Password check rule", "PasswordCheckRule": "Password check rule",
"Security": "Security setting", "Security": "Security",
"SecuritySetting": "Security setting", "SecuritySetting": "Security",
"SubscriptionID": "Subscription ID", "SubscriptionID": "Subscription ID",
"SystemMessageSubscription": "System messages", "SystemMessageSubscription": "System messages",
"insecureCommandEmailUpdate": "Setting", "insecureCommandEmailUpdate": "Setting",
"Terminal": "Terminal setting", "Terminal": "Terminal",
"all": "All", "all": "All",
"authLdap": "Enable LDAP auth", "authLdap": "Enable LDAP auth",
"authLdapBindDn": "Bind DN", "authLdapBindDn": "Bind DN",
@@ -1005,7 +1005,7 @@
"Comment": "Comment", "Comment": "Comment",
"MyTickets": "My tickets", "MyTickets": "My tickets",
"action": "Action", "action": "Action",
"IPGroup": "IP ", "IPGroup": "IP group",
"Reject": "Reject", "Reject": "Reject",
"date": "Date", "date": "Date",
"reply": "Reply", "reply": "Reply",
@@ -1177,10 +1177,9 @@
"SMS": "SMS" "SMS": "SMS"
}, },
"xpack": { "xpack": {
"NavHelp": "Navigation (Help)", "NavHelp": "Navigation Link",
"helpDocument": "Help (Docs)", "helpDocument": "Docs link",
"helpSupport": "Help (Support)", "helpSupport": "Support link",
"officialWebsite": "Help (Website)",
"helpDocumentTip": "You can change the URL of the site navigation bar help -> Docs", "helpDocumentTip": "You can change the URL of the site navigation bar help -> Docs",
"helpSupportTip": "You can change the URL of the site navigation bar help -> Support", "helpSupportTip": "You can change the URL of the site navigation bar help -> Support",
"officialWebsiteTip": "You can change the URL of the site navigation bar help -> Website", "officialWebsiteTip": "You can change the URL of the site navigation bar help -> Website",

View File

@@ -6,7 +6,7 @@
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="docs">{{ $t('common.nav.Docs') }}</el-dropdown-item> <el-dropdown-item command="docs">{{ $t('common.nav.Docs') }}</el-dropdown-item>
<el-dropdown-item command="support">{{ $t('common.nav.Support') }}</el-dropdown-item> <el-dropdown-item command="support">{{ $t('common.nav.Support') }}</el-dropdown-item>
<el-dropdown-item v-if="!hasLicence" command="EnterpriseEdition">{{ $t('common.nav.EnterpriseEdition') }}</el-dropdown-item> <el-dropdown-item v-if="!hasLicence" command="enterprise">{{ $t('common.nav.EnterpriseEdition') }}</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</template> </template>
@@ -43,7 +43,7 @@ export default {
case 'support': case 'support':
window.open(this.URLSite.HELP_SUPPORT_URL, '_blank') window.open(this.URLSite.HELP_SUPPORT_URL, '_blank')
break break
case 'EnterpriseEdition': case 'enterprise':
window.open('https://jumpserver.org/enterprise.html', '_blank') window.open('https://jumpserver.org/enterprise.html', '_blank')
break break
default: default:

View File

@@ -62,11 +62,6 @@ export default {
label: this.$t('xpack.helpSupport'), label: this.$t('xpack.helpSupport'),
helpText: this.$t('xpack.helpSupportTip'), helpText: this.$t('xpack.helpSupportTip'),
hidden: () => !this.hasValidLicense() hidden: () => !this.hasValidLicense()
},
OFFICIAL_WEBSITE_URL: {
label: this.$t('xpack.officialWebsite'),
helpText: this.$t('xpack.officialWebsiteTip'),
hidden: () => !this.hasValidLicense()
} }
}, },
submitMethod() { submitMethod() {
@@ -78,7 +73,7 @@ export default {
if (this.hasValidLicense()) { if (this.hasValidLicense()) {
this.fields.push([ this.fields.push([
this.$t('xpack.NavHelp'), [ this.$t('xpack.NavHelp'), [
'HELP_DOCUMENT_URL', 'HELP_SUPPORT_URL', 'OFFICIAL_WEBSITE_URL' 'HELP_DOCUMENT_URL', 'HELP_SUPPORT_URL'
] ]
]) ])
} }