mirror of https://github.com/jumpserver/jumpserver
perf: 修改翻译
parent
4a9b1aff96
commit
003dd49ed6
|
@ -6,27 +6,31 @@
|
|||
"AccessKey": "Access Key",
|
||||
"Account": "Account",
|
||||
"AccountBackup": "Backup Accounts",
|
||||
"AccountChangeSecret": "Change Credentials",
|
||||
"AccountGatherList": "Gather Tasks",
|
||||
"AccountGatherTaskCreate": "Create a gather accounts task",
|
||||
"AccountGatherTaskUpdate": "Update the gather accounts task",
|
||||
"AccountGatherTaskList": "Gather Accounts",
|
||||
"AccountBackupCreate": "Create Account Backup",
|
||||
"AccountBackupPlanCreate": "Create a Backup Account Task",
|
||||
"AccountBackupPlanDetail": "Backup Account Task Details",
|
||||
"AccountBackupPlanList": "Backup account tasks",
|
||||
"AccountBackupPlanUpdate": "Update the Account Backup Plan",
|
||||
"AccountBackupUpdate": "Update the Account Backup",
|
||||
"AccountBatchUpdate": "Updated selected",
|
||||
"AccountChangeSecret": "Change Account Credential tasks",
|
||||
"AccountCreate": "Create a account",
|
||||
"AccountDeleteConfirmMsg": "Delete Account, continue?",
|
||||
"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": "Gather Tasks",
|
||||
"AccountGatherTaskCreate": "Create a gather accounts task",
|
||||
"AccountGatherTaskList": "Gather account tasks",
|
||||
"AccountGatherTaskUpdate": "Update the gather accounts task",
|
||||
"AccountList": "Accounts",
|
||||
"AccountPolicy": "Account Policy",
|
||||
"AccountPushExecutionList": "Execute History",
|
||||
"AccountPushList": "Push Accounts",
|
||||
"AccountPushUpdate": "Update the Push Account task",
|
||||
"AccountPolicyHelpText": "For accounts that do not meet the requirements when creating, such as: non-compliant key types and unique key constraints, you can choose the above strategy.",
|
||||
"AccountPushCreate": "Create a Push Account task",
|
||||
"AccountPushExecutionList": "Execute History",
|
||||
"AccountPushList": "Push Account Tasks",
|
||||
"AccountPushUpdate": "Update the Push Account task",
|
||||
"AccountStorage": "Account",
|
||||
"HistoryRecord": "History record",
|
||||
"AccountTemplate": "Template",
|
||||
"AccountTemplateList": "Templates",
|
||||
"AccountTemplateList": "Account 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.",
|
||||
"Accounts": "Accounts",
|
||||
"Action": "Action",
|
||||
|
@ -131,13 +135,13 @@
|
|||
"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": "Authorization Rules",
|
||||
"AssetPermissionUpdate": "Update the Asset Authorization Rules",
|
||||
"AssetPermsAmount": "Asset authorization",
|
||||
"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",
|
||||
"Assets": "Assets",
|
||||
"AssetsAmount": "Asset amount",
|
||||
"AssetsTotal": "Asset Total",
|
||||
"AssignedInfo": "Approval Information",
|
||||
"AwaitingMyApproval": "Awaiting my approval",
|
||||
"Assignee": "Handler",
|
||||
"Assignees": "Pending Handler",
|
||||
"AttrName": "Attribute Name",
|
||||
|
@ -156,9 +160,10 @@
|
|||
"AutoPush": "Auto Push",
|
||||
"Automations": "Automations",
|
||||
"AverageTimeCost": "Average spend time",
|
||||
"AwaitingMyApproval": "Awaiting my approval",
|
||||
"Azure": "Azure (China)",
|
||||
"Backup": "Backup",
|
||||
"BatchTest": "Batch Test",
|
||||
"BackupAccounts": "Backup Accounts",
|
||||
"BadConflictErrorMsg": "Refreshing, please try again later",
|
||||
"BadRequestErrorMsg": "Request Error, please check the filled content",
|
||||
"BadRoleErrorMsg": "Request Error, No Permission for this Action",
|
||||
|
@ -167,9 +172,21 @@
|
|||
"Basic": "Basic",
|
||||
"BasicInfo": "Basic",
|
||||
"BasicSetting": "Basic",
|
||||
"BatchClearErrorMsg": "Batch Clearing Failed:",
|
||||
"BatchConsent": "Batch Approval",
|
||||
"BatchDeleteErrorMsg": "Batch deletion failed",
|
||||
"BatchDeleteSuccessMsg": "Batch deletion successful",
|
||||
"BatchDeployment": "Batch deployment",
|
||||
"BatchOffline": "Batch Offline",
|
||||
"BatchProcessing": "{Number} items selected",
|
||||
"BatchReject": "Batch Deny",
|
||||
"BatchSync": "Batch sync",
|
||||
"BatchSyncDelete": "Batch sync deletion",
|
||||
"BatchSyncErrorMsg": "Batch sync Failed",
|
||||
"BatchTest": "Batch Test",
|
||||
"BatchTransfer": "Batch Transfer",
|
||||
"BatchUpdate": "Batch update",
|
||||
"BatchUpdatePlatformHelpText": "The asset will be updated only if the original platform type is the same as the selected platform type. If the platform types before and after the update are different, it will not be updated.",
|
||||
"BeforeChange": "Before Change",
|
||||
"Beian": "Record",
|
||||
"BelongAll": "Including at the same time",
|
||||
|
@ -180,17 +197,7 @@
|
|||
"BindSuccess": "Binding Successful",
|
||||
"BlockedIPS": "Locked IPs",
|
||||
"BuiltinVariable": "Built-in variables",
|
||||
"BatchClearErrorMsg": "Batch Clearing Failed:",
|
||||
"AccountPolicyHelpText": "For accounts that do not meet the requirements when creating, such as: non-compliant key types and unique key constraints, you can choose the above strategy.",
|
||||
"BatchDeleteErrorMsg": "Batch deletion failed",
|
||||
"BatchDeleteSuccessMsg": "Batch deletion successful",
|
||||
"BatchDeployment": "Batch deployment",
|
||||
"BatchOffline": "Batch Offline",
|
||||
"BatchSyncDelete": "Batch sync deletion",
|
||||
"BatchSyncErrorMsg": "Batch sync Failed",
|
||||
"BatchTransfer": "Batch Transfer",
|
||||
"BulkUnblock": "Batch Unlock",
|
||||
"BatchUpdatePlatformHelpText": "The asset will be updated only if the original platform type is the same as the selected platform type. If the platform types before and after the update are different, it will not be updated.",
|
||||
"CACertificate": "CA Certificate",
|
||||
"CAS": "CAS",
|
||||
"CMPP2": "CMPP v2.0",
|
||||
|
@ -204,10 +211,11 @@
|
|||
"CeleryTaskLog": "Celery Task Log",
|
||||
"Certificate": "Certificate",
|
||||
"CertificateKey": "Client Key",
|
||||
"ChangeCredentials": "Change Credentials",
|
||||
"ChangeField": "Change Field",
|
||||
"ChangeReceiver": "Change Recipient",
|
||||
"ChangeOrganization": "Change organization",
|
||||
"ChangePassword": "Change Password",
|
||||
"ChangeReceiver": "Change Recipient",
|
||||
"ChangeSecretParams": "Change Password Parameters",
|
||||
"ChangeViewHelpText": "Click to Switch Different Views",
|
||||
"Chat": "Chat",
|
||||
|
@ -386,8 +394,8 @@
|
|||
"DownloadReplay": "Download Recording",
|
||||
"DownloadUpdateTemplateMsg": "Download Update Template",
|
||||
"DragUploadFileInfo": "Drag files here, or click here to upload",
|
||||
"Duration": "Duration",
|
||||
"DuplicateFileExists": "Uploading a file with the same name is not allowed, please delete the file with the same name",
|
||||
"Duration": "Duration",
|
||||
"DynamicUsername": "Dynamic Username",
|
||||
"Edit": "Edit",
|
||||
"Edition": "Version",
|
||||
|
@ -422,8 +430,8 @@
|
|||
"ExcludeSymbol": "Exclude Char",
|
||||
"Execute": "Execute",
|
||||
"ExecuteOnce": "Execute Once",
|
||||
"ExecutionHistory": "Execution history",
|
||||
"ExecutionDetail": "Execution History Details",
|
||||
"ExecutionHistory": "Execution history",
|
||||
"ExecutionList": "Execute History",
|
||||
"ExistError": "This Element Already Exists",
|
||||
"Existing": "Already Exists",
|
||||
|
@ -443,8 +451,8 @@
|
|||
"FeiShu": "Lark",
|
||||
"FeiShuTest": "Test",
|
||||
"FieldRequiredError": "This field is required",
|
||||
"FileManagement": "File Manager",
|
||||
"FileExplorer": "File Explorer",
|
||||
"FileManagement": "File Manager",
|
||||
"FileNameTooLong": "File name too long",
|
||||
"FileSizeExceedsLimit": "File size exceeds limit",
|
||||
"FileTransfer": "File Transfer",
|
||||
|
@ -469,6 +477,7 @@
|
|||
"GatewayCreate": "Create a Gateway",
|
||||
"GatewayList": "Gateways",
|
||||
"GatewayUpdate": "Update the Gateway",
|
||||
"GatherAccounts": "Gather Accounts",
|
||||
"GatheredAccounts": "Gathered Accounts",
|
||||
"GeneralAccounts": "General Accounts",
|
||||
"Generate": "Generate",
|
||||
|
@ -491,6 +500,7 @@
|
|||
"History": "History Record",
|
||||
"HistoryDate": "Date",
|
||||
"HistoryPassword": "Historical Password",
|
||||
"HistoryRecord": "History record",
|
||||
"Host": "Asset",
|
||||
"HostCreate": "Create a Asset - Host",
|
||||
"HostDeployment": "Deploy Publishing Machine",
|
||||
|
@ -625,7 +635,6 @@
|
|||
"MFAOfUserFirstLoginUserGuidePage": "In order to protect your and the company's security, please carefully safeguard important sensitive information such as your account, password, and key (for example, set a complex password, and enable multi-factor authentication) <br/> Personal information such as email, mobile number, and WeChat are only used for user authentication and platform internal message notifications.",
|
||||
"MailRecipient": "Email Recipient",
|
||||
"MailSend": "Sending",
|
||||
"Server": "Server",
|
||||
"ManualAccount": "Manual Account",
|
||||
"ManualAccountTip": "Manual input of Username/Password upon Login",
|
||||
"ManualExecute": "Manual execution",
|
||||
|
@ -763,6 +772,7 @@
|
|||
"PlatformCreate": "Create a Platform",
|
||||
"PlatformDetail": "Platform Details",
|
||||
"PlatformList": "Platforms",
|
||||
"PlatformPageHelpMsg": "The platform categorizes assets, such as Windows, Linux, network devices, etc. Configuration settings, such as protocols, gateways, etc., can also be specified on the platform to determine whether certain features are enabled on assets.",
|
||||
"PlatformProtocolConfig": "Platform Protocol Configuration",
|
||||
"PlatformUpdate": "Update the Platform",
|
||||
"PlaybookDetail": "Playbook Details",
|
||||
|
@ -789,8 +799,6 @@
|
|||
"ProportionOfAssetTypes": "Asset Type Proportion",
|
||||
"Protocol": "Protocol",
|
||||
"Protocols": "Protocols",
|
||||
"SuEnabled": "Enable su",
|
||||
"SyncProtocolToAsset": "Protocols to Assets",
|
||||
"Proxy": "Agent",
|
||||
"PublicCloud": "Public Cloud",
|
||||
"PublicKey": "Public Key",
|
||||
|
@ -799,6 +807,7 @@
|
|||
"PublishStatus": "Release Status",
|
||||
"Push": "Push",
|
||||
"PushAccount": "Push Account",
|
||||
"PushAccounts": "Push Accounts",
|
||||
"PushParams": "Push Parameters",
|
||||
"Qcloud": "Tencent Cloud",
|
||||
"QcloudLighthouse": "Tencent Cloud (Lightweight Application Server)",
|
||||
|
@ -946,7 +955,6 @@
|
|||
"SelectAtLeastOneAssetOrNodeErrMsg": "Select at Least One Asset or Node",
|
||||
"SelectAttrs": "Select Attributes",
|
||||
"SelectByAttr": "Attribute Filter",
|
||||
"BatchUpdate": "Batch update",
|
||||
"SelectFile": "Select File",
|
||||
"SelectKeyOrCreateNew": "Select Tag Key or Create New One",
|
||||
"SelectLabelFilter": "Select tag for search",
|
||||
|
@ -961,6 +969,7 @@
|
|||
"Send": "Send",
|
||||
"SendVerificationCode": "Send Verification Code",
|
||||
"SerialNumber": "Serial Number",
|
||||
"Server": "Server",
|
||||
"ServerAccountKey": "Service Account Key",
|
||||
"ServerError": "Server Error",
|
||||
"ServerTime": "Server Time",
|
||||
|
@ -1028,6 +1037,7 @@
|
|||
"StrategyHelpTips": "Identify the unique attributes of assets (such as platforms) based on priority of strategies; when an asset's attribute (like nodes) can be configured to multiple, all Actions of the strategies will be executed.",
|
||||
"StrategyList": "Policy List",
|
||||
"StrategyUpdate": "Update the Policy",
|
||||
"SuEnabled": "Enable su",
|
||||
"SuFrom": "Switch From",
|
||||
"Submit": "Submit",
|
||||
"Success": "Success",
|
||||
|
@ -1048,7 +1058,7 @@
|
|||
"SyncInstanceTaskHistoryList": "Synchronization History List",
|
||||
"SyncInstanceTaskList": "Synchronization Task List",
|
||||
"SyncInstanceTaskUpdate": "Update the Sync Task",
|
||||
"BatchSync": "Batch sync",
|
||||
"SyncProtocolToAsset": "Protocols to Assets",
|
||||
"SyncSetting": "Sync Settings",
|
||||
"SyncStrategy": "Sync Policy",
|
||||
"SyncSuccessMsg": "Sync Succeeded",
|
||||
|
@ -1073,10 +1083,10 @@
|
|||
"TaskMonitor": "Task Monitoring",
|
||||
"TechnologyConsult": "Technical Consultation",
|
||||
"TempPassword": "The temporary password is valid for 300 seconds and becomes invalid immediately after use",
|
||||
"TemplateManagement": "Templates",
|
||||
"TemplateAdd": "Add from template",
|
||||
"TemplateCreate": "Create a Template",
|
||||
"TemplateHelpText": "When selecting a template to add, accounts that do not exist under the asset will be automatically created and pushed",
|
||||
"TemplateManagement": "Templates",
|
||||
"TencentCloud": "Tencent Cloud",
|
||||
"Terminal": "Components",
|
||||
"TerminalDetail": "Terminal Details",
|
||||
|
@ -1107,7 +1117,7 @@
|
|||
"TimeExpression": "Time Expression",
|
||||
"Timeout": "Timeout",
|
||||
"TimeoutHelpText": "When this value is -1, no timeout is specified.",
|
||||
"Timer": "Schedule Execution",
|
||||
"Timer": "Timer",
|
||||
"Title": "Title",
|
||||
"To": "To",
|
||||
"Today": "Today",
|
||||
|
@ -1226,6 +1236,5 @@
|
|||
"Workbench": "Workbench",
|
||||
"Workspace": "Workspace",
|
||||
"Yes": "Yes",
|
||||
"ZStack": "ZStack",
|
||||
"AssetPermsAmount": "Asset authorization"
|
||||
}
|
||||
"ZStack": "ZStack"
|
||||
}
|
|
@ -13,10 +13,12 @@
|
|||
"AccountGatherTaskList": "账号收集",
|
||||
"AccountList": "云账号",
|
||||
"AccountPolicy": "账号策略",
|
||||
"AccountPolicyHelpText": "创建时对于不符合要求的账号,如:密钥类型不合规,唯一键约束,可选择以上策略。",
|
||||
"AccountPushExecutionList": "执行列表",
|
||||
"AccountPushList": "账号推送",
|
||||
"AccountStorage": "账号存储",
|
||||
"AccountTemplate": "账号模版",
|
||||
"AccountTemplateList": "模版列表",
|
||||
"AccountTemplateUpdateSecretHelpText": "账号列表展示通过模版创建的账号。更新密文时,会更新通过模版所创建账号的密文。",
|
||||
"Accounts": "账号管理",
|
||||
"Action": "动作",
|
||||
|
@ -125,7 +127,6 @@
|
|||
"AssetsAmount": "资产数量",
|
||||
"AssetsTotal": "资产总数",
|
||||
"AssignedInfo": "审批信息",
|
||||
"AwaitingMyApproval": "待我审批",
|
||||
"Assignee": "处理人",
|
||||
"Assignees": "待处理人",
|
||||
"AttrName": "属性名",
|
||||
|
@ -144,9 +145,9 @@
|
|||
"AutoPush": "自动推送",
|
||||
"Automations": "自动化",
|
||||
"AverageTimeCost": "平均花费时间",
|
||||
"AwaitingMyApproval": "待我审批",
|
||||
"Azure": "Azure(中国)",
|
||||
"Backup": "备份",
|
||||
"BatchTest": "批量测试",
|
||||
"BadConflictErrorMsg": "正在刷新中,请稍后再试",
|
||||
"BadRequestErrorMsg": "请求错误,请检查填写内容",
|
||||
"BadRoleErrorMsg": "请求错误,无该操作权限",
|
||||
|
@ -155,12 +156,24 @@
|
|||
"Basic": "基本设置",
|
||||
"BasicInfo": "基本信息",
|
||||
"BasicSetting": "基本设置",
|
||||
"BatchClearErrorMsg": "批量清除失败:",
|
||||
"BatchConsent": "批量同意",
|
||||
"BatchDelete": "批量删除",
|
||||
"BatchDeleteErrorMsg": "批量删除失败",
|
||||
"BatchDeleteSuccessMsg": "批量删除成功",
|
||||
"BatchDeployment": "批量部署",
|
||||
"BatchOffline": "批量下线",
|
||||
"BatchProcessing": "批量处理(选中 {Number} 项)",
|
||||
"BatchReject": "批量拒绝",
|
||||
"BeforeChange": "变更前",
|
||||
"BatchSync": "批量同步",
|
||||
"BatchSyncDelete": "批量同步删除",
|
||||
"BatchSyncErrorMsg": "批量同步失败: ",
|
||||
"BatchTest": "批量测试",
|
||||
"BatchTransfer": "批量传输",
|
||||
"BatchUnblock": "批量解锁",
|
||||
"BatchUpdate": "批量更新",
|
||||
"BatchDelete": "批量删除",
|
||||
"BatchUpdatePlatformHelpText": "只有资产的原平台类型与所选平台类型相同时才会进行更新,若更新前后的平台类型不同则不会更新。",
|
||||
"BeforeChange": "变更前",
|
||||
"Beian": "备案",
|
||||
"BelongAll": "同时包含",
|
||||
"BelongTo": "任意包含",
|
||||
|
@ -170,17 +183,6 @@
|
|||
"BindSuccess": "绑定成功",
|
||||
"BlockedIPS": "已锁定的 IP",
|
||||
"BuiltinVariable": "内置变量",
|
||||
"BatchClearErrorMsg": "批量清除失败:",
|
||||
"AccountPolicyHelpText": "创建时对于不符合要求的账号,如:密钥类型不合规,唯一键约束,可选择以上策略。",
|
||||
"BatchDeleteErrorMsg": "批量删除失败",
|
||||
"BatchDeleteSuccessMsg": "批量删除成功",
|
||||
"BatchDeployment": "批量部署",
|
||||
"BatchOffline": "批量下线",
|
||||
"BatchSyncDelete": "批量同步删除",
|
||||
"BatchSyncErrorMsg": "批量同步失败: ",
|
||||
"BatchTransfer": "批量传输",
|
||||
"BatchUnblock": "批量解锁",
|
||||
"BatchUpdatePlatformHelpText": "只有资产的原平台类型与所选平台类型相同时才会进行更新,若更新前后的平台类型不同则不会更新。",
|
||||
"CACertificate": "CA 证书",
|
||||
"CAS": "CAS",
|
||||
"CMPP2": "CMPP v2.0",
|
||||
|
@ -408,8 +410,8 @@
|
|||
"ExcludeSymbol": "排除字符",
|
||||
"Execute": "执行",
|
||||
"ExecuteOnce": "执行一次",
|
||||
"ExecutionHistory": "执行历史",
|
||||
"ExecutionDetail": "执行历史详情",
|
||||
"ExecutionHistory": "执行历史",
|
||||
"ExecutionList": "执行列表",
|
||||
"ExistError": "这个元素已经存在",
|
||||
"Existing": "已存在",
|
||||
|
@ -746,6 +748,7 @@
|
|||
"PlatformCreate": "创建平台",
|
||||
"PlatformDetail": "平台详情",
|
||||
"PlatformList": "平台列表",
|
||||
"PlatformPageHelpMsg": "平台是资产的分类,例如:Windows、Linux、网络设备等。也可以在平台上指定一些配置,如 协议,网关 等,决定资产上是否启用某些功能。",
|
||||
"PlatformProtocolConfig": "平台协议配置",
|
||||
"PlatformUpdate": "更新平台",
|
||||
"PlaybookDetail": "Playbook详情",
|
||||
|
@ -1026,7 +1029,6 @@
|
|||
"SyncInstanceTaskHistoryList": "同步历史列表",
|
||||
"SyncInstanceTaskList": "同步任务列表",
|
||||
"SyncInstanceTaskUpdate": "更新同步任务",
|
||||
"BatchSync": "批量同步",
|
||||
"SyncSetting": "同步设置",
|
||||
"SyncStrategy": "同步策略",
|
||||
"SyncSuccessMsg": "同步成功",
|
||||
|
@ -1050,10 +1052,10 @@
|
|||
"TaskMonitor": "任务监控",
|
||||
"TechnologyConsult": "技术咨询",
|
||||
"TempPassword": "临时密码有效期为 300 秒,使用后立刻失效",
|
||||
"TemplateManagement": "模版管理",
|
||||
"TemplateAdd": "模版添加",
|
||||
"TemplateCreate": "创建模版",
|
||||
"TemplateHelpText": "选择模版添加时,会自动创建资产下不存在的账号并推送",
|
||||
"TemplateManagement": "模版管理",
|
||||
"TencentCloud": "腾讯云",
|
||||
"Terminal": "组件设置",
|
||||
"TerminalDetail": "终端详情",
|
||||
|
@ -1115,7 +1117,6 @@
|
|||
"Update": "更新",
|
||||
"UpdateAccount": "更新账号",
|
||||
"UpdateAccountTemplate": "更新账号模版",
|
||||
"AccountTemplateList": "模版列表",
|
||||
"UpdateAssetDetail": "配置更多信息",
|
||||
"UpdateAssetUserToken": "更新账号认证信息",
|
||||
"UpdateEndpoint": "更新端点",
|
||||
|
|
|
@ -139,3 +139,12 @@ class PeriodTaskSerializerMixin(serializers.Serializer):
|
|||
msg = _("Require interval or crontab setting")
|
||||
raise serializers.ValidationError(msg)
|
||||
return ok
|
||||
|
||||
def validate(self, attrs):
|
||||
attrs = super().validate(attrs)
|
||||
if not attrs.get('is_periodic'):
|
||||
attrs['interval'] = None
|
||||
attrs['crontab'] = ''
|
||||
if attrs.get('crontab'):
|
||||
attrs['interval'] = None
|
||||
return attrs
|
||||
|
|
Loading…
Reference in New Issue