perf: 修改一些翻译

pull/12678/head
ibuler 2024-02-06 15:51:39 +08:00
parent 96f92f0908
commit 9d80aed468
4 changed files with 20 additions and 1864 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,6 @@
"AccountExportTips": "The exported information contains sensitive information such as encrypted account numbers. The exported format is an encrypted zip file (if you have not set the encryption password, please go to Personal Info to set the file encryption password).",
"AccountGatherList": "Collection Task",
"AccountGatherTaskCreate": "Create Task",
"GatheredAccounts": "Collected Accounts",
"AccountGatherTaskList": "Account Collect",
"AccountGatherTaskUpdate": "Update Task",
"AccountList": "Cloud Account",
@ -25,7 +24,8 @@
"AccountPushList": "Account Push",
"AccountPushUpdate": "Update Account Push",
"AccountStorage": "Account Storage",
"AccountTemplate": "Account Template",
"AccountTemplate": "Template",
"AccountTemplateList": "Templates",
"AccountTemplateUpdateSecretHelpText": "The account list shows the accounts created through the template. When the secret is updated, the ciphertext of the accounts created through the template will be updated.",
"AccountUpdate": "Update Account",
"Accounts": "Account",
@ -40,7 +40,7 @@
"ActiveAsset": "Recently Logged in",
"ActiveAssetRanking": "Login Asset Ranking",
"ActiveUser": "Logged in recently",
"Activity": "Action",
"Activity": "Activities",
"Add": "Add",
"AddAccount": "Add Account",
"AddAccountResult": "Second-Level Approver",
@ -131,7 +131,7 @@
"AssetPermissionCreate": "Create Asset Authorization Rule",
"AssetPermissionDetail": "Asset Authorization Details",
"AssetPermissionHelpMsg": "Asset authorization allows you to select users and assets, grant the assets to users for access. Once completed, users can conveniently view these assets. Additionally, you can set specific permissions to further define the users' rights to the assets.",
"AssetPermissionRules": "Asset Authorization Rules",
"AssetPermissionRules": "Authorization Rules",
"AssetPermissionUpdate": "Update Asset Authorization Rules",
"AssetProtocolHelpText": "The protocols supported by the assets are restricted by the platform, click the settings button to view the protocol settings. If updates are required, please update the platform",
"AssetTree": "Asset Tree",
@ -167,7 +167,7 @@
"BaiduCloud": "Baidu Cloud",
"BasePort": "Listening Ports",
"Basic": "Basic",
"BasicInfo": "Basic Information",
"BasicInfo": "Basic Info",
"BasicSetting": "Basic",
"BatchConsent": "Batch Approval",
"BatchProcessing": "Bulk Processing (Selected {Number} Items)",
@ -212,7 +212,7 @@
"ChangeSecretParams": "Change Password Parameters",
"ChangeViewHelpText": "Click to Switch Different Views",
"Chat": "Chat",
"ChatAI": "Smart Q&A",
"ChatAI": "Chat AI",
"ChatHello": "Hello! How can I assist you?",
"ChdirHelpText": "By Default, the execution directory is the user's home directory",
"CheckAssetsAmount": "Check Asset Quantity",
@ -227,7 +227,7 @@
"ClickCopy": "Click to Copy",
"ClientCertificate": "Client certificate",
"ClipboardCopyPaste": "Clipboard Copy and Paste",
"Clone": "Clone",
"Clone": "Duplicate",
"CloneFrom": "Duplicate",
"Close": "Close",
"CloseConfirm": "Confirm Close",
@ -391,7 +391,6 @@
"Edit": "Edit",
"Edition": "Version",
"Email": "Email",
"FieldRequiredError": "This field is required",
"EmailContent": "Custom Email Content",
"EmailTest": "Test Connection",
"Empty": "Empty",
@ -442,6 +441,7 @@
"Features": "Features",
"FeiShu": "Feishu",
"FeiShuTest": "Test",
"FieldRequiredError": "This field is required",
"FileManager": "File",
"FileNameTooLong": "Filename too long",
"FileSizeExceedsLimit": "File size exceeds limit\"",
@ -457,7 +457,6 @@
"FormatError": "Format Error",
"Friday": "Friday",
"From": "From",
"TypeTree": "Type Tree",
"FromTicket": "From the work order",
"FullName": "Full name",
"FullySynchronous": "Assets completely synchronized",
@ -468,6 +467,7 @@
"GatewayCreate": "Create Gateway",
"GatewayList": "Gateway list",
"GatewayUpdate": "Update Gateway",
"GatheredAccounts": "Collected Accounts",
"GeneralAccounts": "General Accounts",
"Generate": "Generate",
"GenerateAccounts": "Regenerate Account",
@ -851,7 +851,7 @@
"RequiredRunas": "Please Enter the Execution User",
"RequiredSystemUserErrMsg": "Please Select Account",
"RequiredUploadFile": "Please upload the file!",
"Reset": "Restore",
"Reset": "Reset",
"ResetAndDownloadSSHKey": "Reset and Download Key",
"ResetMFA": "Reset MFA",
"ResetMFAWarningMsg": "Are you sure you want to reset the user's MFA?",
@ -907,9 +907,9 @@
"SMS": "Message",
"SMSProvider": "SMS Service Provider",
"SMTP": "Email Server",
"SSHKey": "SSH Public Key",
"SSHKey": "SSH Key",
"SSHKeyOfProfileSSHUpdatePage": "Copy Your Public Key Here",
"SSHKeySetting": "SSH Public Key Settings",
"SSHKeySetting": "SSH Key Settings",
"SSHPort": "SSH Port",
"SSHSecretKey": "SSH Key",
"SafeCommand": "Secure Command",
@ -1113,6 +1113,7 @@
"TwoAssignee": "Subscribe to Authorization ID",
"TwoAssigneeType": "Secondary Recipient Type",
"Type": "Type",
"TypeTree": "Type Tree",
"Types": "Type",
"UCloud": "UCloud UHost",
"UnSyncCount": "Not Synced",
@ -1173,6 +1174,7 @@
"UserProfile": "Personal Information",
"UserSession": "User Sessions",
"UserSetting": "Preference",
"UserSwitchFrom": "Switch from",
"UserUpdate": "Update User",
"Username": "Username",
"UsernamePlaceholder": "Please Enter Username",

View File

@ -22,7 +22,6 @@
"AccountPushCreate": "创建账号推送",
"AccountPushExecutionList": "执行列表",
"AccountPushList": "账号推送",
"FieldRequiredError": "此字段是必填项",
"AccountPushUpdate": "账号推送更新",
"AccountStorage": "账号存储",
"AccountTemplate": "账号模版",
@ -438,6 +437,7 @@
"Features": "功能设置",
"FeiShu": "飞书",
"FeiShuTest": "测试",
"FieldRequiredError": "此字段是必填项",
"FileManager": "文件管理",
"FileNameTooLong": "文件名太长",
"FileSizeExceedsLimit": "文件大小超出限制",
@ -1211,4 +1211,4 @@
"Workspace": "工作空间",
"Yes": "是",
"ZStack": "ZStack"
}
}

View File

@ -67,7 +67,7 @@ class AuthMixin:
if self.username:
self.date_password_last_updated = timezone.now()
post_user_change_password.send(self.__class__, user=self)
super().set_password(raw_password) # noqa
super().set_password(raw_password) # noqa
def set_public_key(self, public_key):
if self.can_update_ssh_key():
@ -381,15 +381,15 @@ class RoleMixin:
@lazyproperty
def console_orgs(self):
return self.cached_orgs['console_orgs']
return self.cached_orgs.get('console_orgs', [])
@lazyproperty
def audit_orgs(self):
return self.cached_orgs['audit_orgs']
return self.cached_orgs.get('audit_orgs', [])
@lazyproperty
def workbench_orgs(self):
return self.cached_orgs['workbench_orgs']
return self.cached_orgs.get('workbench_orgs', [])
@lazyproperty
def joined_orgs(self):