perf: 修改翻译

pull/12723/head^2
ibuler 2024-02-28 16:27:41 +08:00
parent d799725b8a
commit 1744f94910
6 changed files with 53 additions and 49 deletions

View File

@ -7717,7 +7717,7 @@ msgstr "First login"
#: users/models/user.py:848 #: users/models/user.py:848
msgid "Date password last updated" msgid "Date password last updated"
msgstr "Password last updated" msgstr "Password updated"
#: users/models/user.py:851 #: users/models/user.py:851
msgid "Need update password" msgid "Need update password"

View File

@ -8,6 +8,7 @@
"AccountBackup": "Account Backup", "AccountBackup": "Account Backup",
"AccountBackupCreate": "Create Account Backup", "AccountBackupCreate": "Create Account Backup",
"AccountBackupUpdate": "Update Account Backup", "AccountBackupUpdate": "Update Account Backup",
"AccountBatchUpdate": "Updated selected",
"AccountChangeSecret": "Password Change", "AccountChangeSecret": "Password Change",
"AccountCreate": "Create Account", "AccountCreate": "Create Account",
"AccountDeleteConfirmMsg": "Delete Account, continue?", "AccountDeleteConfirmMsg": "Delete Account, continue?",
@ -17,7 +18,7 @@
"AccountGatherTaskCreate": "Create Task", "AccountGatherTaskCreate": "Create Task",
"AccountGatherTaskList": "Account Collect", "AccountGatherTaskList": "Account Collect",
"AccountGatherTaskUpdate": "Update Task", "AccountGatherTaskUpdate": "Update Task",
"AccountList": "Cloud Account", "AccountList": "Accounts",
"AccountPolicy": "Account Policy", "AccountPolicy": "Account Policy",
"AccountPushCreate": "Create Account Push", "AccountPushCreate": "Create Account Push",
"AccountPushExecutionList": "Execute History", "AccountPushExecutionList": "Execute History",
@ -40,6 +41,7 @@
"ActiveAsset": "Recently Logged in", "ActiveAsset": "Recently Logged in",
"ActiveAssetRanking": "Login Asset Ranking", "ActiveAssetRanking": "Login Asset Ranking",
"ActiveUser": "Logged in recently", "ActiveUser": "Logged in recently",
"ActiveUsers": "Active Users",
"Activity": "Activities", "Activity": "Activities",
"Add": "Add", "Add": "Add",
"AddAccount": "Add Account", "AddAccount": "Add Account",
@ -70,7 +72,6 @@
"AllAccounts": "All Accounts", "AllAccounts": "All Accounts",
"AllClickRead": "All Marked as Read", "AllClickRead": "All Marked as Read",
"AllMembers": "All Members", "AllMembers": "All Members",
"AllOrganization": "Organization List",
"AllowInvalidCert": "Ignore certificate check", "AllowInvalidCert": "Ignore certificate check",
"Announcement": "Announcement", "Announcement": "Announcement",
"AnonymousAccount": "Anonymous Account", "AnonymousAccount": "Anonymous Account",
@ -145,7 +146,7 @@
"Assignees": "Pending Handler", "Assignees": "Pending Handler",
"AttrName": "Attribute Name", "AttrName": "Attribute Name",
"AttrValue": "Attribute value", "AttrValue": "Attribute value",
"Audits": "Audit Console", "Audits": "Audit",
"Auth": "Authentication", "Auth": "Authentication",
"AuthLimit": "Login Restrictions", "AuthLimit": "Login Restrictions",
"AuthSAMLCertHelpText": "Save after uploading the certificate key, then view SP Metadata", "AuthSAMLCertHelpText": "Save after uploading the certificate key, then view SP Metadata",
@ -193,6 +194,7 @@
"BulkTransfer": "Batch Transfer", "BulkTransfer": "Batch Transfer",
"BulkUnblock": "Batch Unlock", "BulkUnblock": "Batch Unlock",
"BulkUpdatePlatformHelpText": "Updates will only be performed when the original platform type of the asset is the same as the selected platform type. If the platform type is different before and after the update, it will not be updated.", "BulkUpdatePlatformHelpText": "Updates will only be performed when the original platform type of the asset is the same as the selected platform type. If the platform type is different before and after the update, it will not be updated.",
"BulkVerify": "Verify selected",
"CACertificate": "CA Certificate", "CACertificate": "CA Certificate",
"CAS": "CAS", "CAS": "CAS",
"CMPP2": "CMPP v2.0", "CMPP2": "CMPP v2.0",
@ -207,13 +209,14 @@
"Certificate": "Certificate", "Certificate": "Certificate",
"CertificateKey": "Client Key", "CertificateKey": "Client Key",
"ChangeField": "Change Field", "ChangeField": "Change Field",
"ChangePassword": "Update Password", "ChangeOrganization": "Change organization",
"ChangePassword": "Change Password",
"ChangeReceiver": "Modify Message Recipient", "ChangeReceiver": "Modify Message Recipient",
"ChangeSecretParams": "Change Password Parameters", "ChangeSecretParams": "Change Password Parameters",
"ChangeViewHelpText": "Click to Switch Different Views", "ChangeViewHelpText": "Click to Switch Different Views",
"Chat": "Chat", "Chat": "Chat",
"ChatAI": "Chat AI", "ChatAI": "Chat AI",
"ChatHello": "Hello! How can I assist you?", "ChatHello": "Hello! Can I help you?",
"ChdirHelpText": "By Default, the execution directory is the user's home directory", "ChdirHelpText": "By Default, the execution directory is the user's home directory",
"CheckAssetsAmount": "Check Asset Quantity", "CheckAssetsAmount": "Check Asset Quantity",
"CheckViewAcceptor": "Click to View the Acceptance Person", "CheckViewAcceptor": "Click to View the Acceptance Person",
@ -234,6 +237,7 @@
"CloseConfirmMessage": "File has changed, save?", "CloseConfirmMessage": "File has changed, save?",
"CloseStatus": "Completed", "CloseStatus": "Completed",
"Closed": "Completed", "Closed": "Completed",
"CloudAccountList": "Cloud Accounts",
"CloudCreate": "Create Asset - Cloud Platform", "CloudCreate": "Create Asset - Cloud Platform",
"CloudSource": "Sync Source", "CloudSource": "Sync Source",
"CloudSync": "Cloud Sync", "CloudSync": "Cloud Sync",
@ -305,6 +309,7 @@
"CriticalLoad": "Serious", "CriticalLoad": "Serious",
"CronExpression": "Complete crontab expression", "CronExpression": "Complete crontab expression",
"CrontabOfCreateUpdatePage": "For example: Perform every Sunday at 03:05 <5 3 * * 0> <br/> Use 5-digit Linux crontab expressions <Min Hour Day Month Weekday> (<a href=\"https://tool.lu/crontab/\" target=\"_blank\">Online Tool</a>) <br/> If both regular execution and cycle execution are set, regular execution is prioritized", "CrontabOfCreateUpdatePage": "For example: Perform every Sunday at 03:05 <5 3 * * 0> <br/> Use 5-digit Linux crontab expressions <Min Hour Day Month Weekday> (<a href=\"https://tool.lu/crontab/\" target=\"_blank\">Online Tool</a>) <br/> If both regular execution and cycle execution are set, regular execution is prioritized",
"CurrentConnectionUsers": "Online Users",
"CurrentConnections": "Current Connections", "CurrentConnections": "Current Connections",
"CurrentUserVerify": "Verify Current User", "CurrentUserVerify": "Verify Current User",
"Custom": "Custom", "Custom": "Custom",
@ -531,7 +536,7 @@
"Input": "Input", "Input": "Input",
"InputEmailAddress": "Please enter the correct email address", "InputEmailAddress": "Please enter the correct email address",
"InputMessage": "Enter message...", "InputMessage": "Enter message...",
"InputPhone": "Please Enter Your Mobile Number", "InputPhone": "Phone number",
"InstanceAddress": "Instance Address", "InstanceAddress": "Instance Address",
"InstanceName": "Instance Name", "InstanceName": "Instance Name",
"InstancePlatformName": "Instance Platform Name", "InstancePlatformName": "Instance Platform Name",
@ -540,7 +545,7 @@
"IntervalOfCreateUpdatePage": "Unit: Hour", "IntervalOfCreateUpdatePage": "Unit: Hour",
"InvalidJson": "Invalid JSON", "InvalidJson": "Invalid JSON",
"InviteSuccess": "Invitation Successful", "InviteSuccess": "Invitation Successful",
"InviteUser": "Invite member", "InviteUser": "Invite",
"InviteUserInOrg": "Invite users to join this organization", "InviteUserInOrg": "Invite users to join this organization",
"Ip": "IP", "Ip": "IP",
"IpGroup": "IP Group", "IpGroup": "IP Group",
@ -571,9 +576,9 @@
"LabelList": "Labels", "LabelList": "Labels",
"LabelUpdate": "Update Tags", "LabelUpdate": "Update Tags",
"Language": "Language", "Language": "Language",
"Last30": "Recent 30 times", "Last30": "Recent 30 items",
"Last30Days": "Last 30 Days", "Last30Days": "Monthly",
"Last7Days": "Past 7 Days", "Last7Days": "Weekly",
"LastPublishedTime": "Last Publish Time", "LastPublishedTime": "Last Publish Time",
"Ldap": "LDAP", "Ldap": "LDAP",
"LdapBulkImport": "User Import", "LdapBulkImport": "User Import",
@ -643,7 +648,7 @@
"Message": "Message", "Message": "Message",
"MessageSubscription": "Message Subscription", "MessageSubscription": "Message Subscription",
"MessageType": "Message Type", "MessageType": "Message Type",
"MfaLevel": "Multi-factor Authentication", "MfaLevel": "MFA",
"Min": "Minutes", "Min": "Minutes",
"Modify": "Edit", "Modify": "Edit",
"Module": "Module", "Module": "Module",
@ -669,7 +674,7 @@
"NewSyncCount": "New Sync", "NewSyncCount": "New Sync",
"No": "No", "No": "No",
"NoContent": "No Content", "NoContent": "No Content",
"NoData": "No Data Available", "NoData": "No data available",
"NoFiles": "No Files Currently", "NoFiles": "No Files Currently",
"NoPermission": "No Permissions", "NoPermission": "No Permissions",
"NoPermission403": "403 No Permission", "NoPermission403": "403 No Permission",
@ -702,7 +707,7 @@
"OneClickReadMsg": "Are you sure you want to mark the current information as read?", "OneClickReadMsg": "Are you sure you want to mark the current information as read?",
"OnlineSession": "Online users", "OnlineSession": "Online users",
"OnlineSessionHelpMsg": "Unable to log out of the current session because it is the current user's online session. Currently only users logged in via Web are being logged.", "OnlineSessionHelpMsg": "Unable to log out of the current session because it is the current user's online session. Currently only users logged in via Web are being logged.",
"OnlineSessions": "Online Sessions Number", "OnlineSessions": "Online Sessions",
"OnlineUserDevices": "Online User Devices", "OnlineUserDevices": "Online User Devices",
"OnlyMailSend": "Current support for email sending", "OnlyMailSend": "Current support for email sending",
"OnlySearchCurrentNodePerm": "Only Search the Current Node's Authorization", "OnlySearchCurrentNodePerm": "Only Search the Current Node's Authorization",
@ -719,16 +724,16 @@
"OrgRoleHelpText": "The Org role is the user's role within the current organization", "OrgRoleHelpText": "The Org role is the user's role within the current organization",
"OrgRoles": "Org Role", "OrgRoles": "Org Role",
"OrgUser": "Organize Users", "OrgUser": "Organize Users",
"OrganizationCreate": "Local Area Network", "OrganizationCreate": "Create new",
"OrganizationDetail": "Organization Details", "OrganizationDetail": "Organization Details",
"OrganizationList": "Organizations", "OrganizationList": "Organizations",
"OrganizationLists": "Organization List", "OrganizationManage": "Manage orgs",
"OrganizationUpdate": "Update Organization", "OrganizationUpdate": "Update Organization",
"Other": "Other", "Other": "Other",
"Output": "Output", "Output": "Output",
"Overview": "Overview", "Overview": "Overview",
"PageNext": "Next Page", "PageNext": "Next",
"PagePrev": "Previous Page", "PagePrev": "Previous",
"Params": "Parameter", "Params": "Parameter",
"ParamsHelpText": "Password parameter settings, currently only effective for assets of the host type.", "ParamsHelpText": "Password parameter settings, currently only effective for assets of the host type.",
"PassKey": "Passkey", "PassKey": "Passkey",
@ -766,6 +771,7 @@
"PlaybookManage": "Playbook", "PlaybookManage": "Playbook",
"PlaybookUpdate": "Update Playbook", "PlaybookUpdate": "Update Playbook",
"PleaseAgreeToTheTerms": "Please Agree to the Terms", "PleaseAgreeToTheTerms": "Please Agree to the Terms",
"PleaseSelect": "Please select",
"PolicyName": "Policy Name", "PolicyName": "Policy Name",
"Port": "Port", "Port": "Port",
"Ports": "Port", "Ports": "Port",
@ -777,8 +783,8 @@
"PrivilegedOnly": "Privileged Accounts Only", "PrivilegedOnly": "Privileged Accounts Only",
"PrivilegedTemplate": "Privileged", "PrivilegedTemplate": "Privileged",
"Product": "Product", "Product": "Product",
"Profile": "Personal Information", "Profile": "Profile",
"ProfileSetting": "Personal Information", "ProfileSetting": "Profile Info",
"Project": "Project Name", "Project": "Project Name",
"Prompt": "Prompt", "Prompt": "Prompt",
"Proportion": "Proportion", "Proportion": "Proportion",
@ -816,7 +822,7 @@
"RecipientServer": "Receiving Server", "RecipientServer": "Receiving Server",
"Reconnect": "Reconnect", "Reconnect": "Reconnect",
"Refresh": "Refresh", "Refresh": "Refresh",
"RefreshHardware": "Update Hardware Information", "RefreshHardware": "Hardware Info",
"Regex": "Regular Expression", "Regex": "Regular Expression",
"Region": "Region", "Region": "Region",
"RegularlyPerform": "Periodic Execution", "RegularlyPerform": "Periodic Execution",
@ -857,6 +863,7 @@
"ResetMFAWarningMsg": "Are you sure you want to reset the user's MFA?", "ResetMFAWarningMsg": "Are you sure you want to reset the user's MFA?",
"ResetMFAdSuccessMsg": "MFA Reset Successful, User Can Reset MFA Again", "ResetMFAdSuccessMsg": "MFA Reset Successful, User Can Reset MFA Again",
"ResetPassword": "Reset Password", "ResetPassword": "Reset Password",
"ResetPasswordNextLogin": "Password must be changed during next log in",
"ResetPasswordSuccessMsg": "Reset Password Message Sent to User", "ResetPasswordSuccessMsg": "Reset Password Message Sent to User",
"ResetPasswordWarningMsg": "Are you sure you want to send the password reset email for the user", "ResetPasswordWarningMsg": "Are you sure you want to send the password reset email for the user",
"ResetPublicKeyAndDownload": "Reset and Download SSH Key", "ResetPublicKeyAndDownload": "Reset and Download SSH Key",
@ -865,13 +872,11 @@
"ResetSSHKeyWarningMsg": "Are you sure you want to send a reset SSH Key email to the user?", "ResetSSHKeyWarningMsg": "Are you sure you want to send a reset SSH Key email to the user?",
"Resource": "Resources", "Resource": "Resources",
"ResourceType": "Resource Type", "ResourceType": "Resource Type",
"ResetPasswordNextLogin": "Password Must Be Changed During Next Log In", "RestoreButton": "Restore",
"RestoreButton": "Reset to Default", "RestoreDefault": "Reset to default",
"RestoreDefault": "Reset to Default",
"RestoreDialogMessage": "Are you sure you want to restore to default initialization?", "RestoreDialogMessage": "Are you sure you want to restore to default initialization?",
"RestoreDialogTitle": "Do you confirm?", "RestoreDialogTitle": "Do you confirm?",
"Result": "Result", "Result": "Result",
"CloudAccountList": "Cloud Accounts",
"Resume": "Recovery", "Resume": "Recovery",
"ResumeTaskSendSuccessMsg": "Recovery Task Issued, Please Refresh Later", "ResumeTaskSendSuccessMsg": "Recovery Task Issued, Please Refresh Later",
"Retry": "Retry", "Retry": "Retry",
@ -941,18 +946,16 @@
"SelectAtLeastOneAssetOrNodeErrMsg": "Select at Least One Asset or Node", "SelectAtLeastOneAssetOrNodeErrMsg": "Select at Least One Asset or Node",
"SelectAttrs": "Select Attributes", "SelectAttrs": "Select Attributes",
"SelectByAttr": "Attribute Filter", "SelectByAttr": "Attribute Filter",
"BulkVerify": "Verify selected",
"AccountBatchUpdate": "Updated selected",
"SelectFile": "Select File", "SelectFile": "Select File",
"SelectKeyOrCreateNew": "Select Tag Key or Create New One", "SelectKeyOrCreateNew": "Select Tag Key or Create New One",
"SelectLabelFilter": "Select Tag Search", "SelectLabelFilter": "Select tag for search",
"SelectPlatforms": "Select Platform", "SelectPlatforms": "Select Platform",
"SelectProperties": "Select Attribute", "SelectProperties": "Select Attribute",
"SelectResource": "Select Resources", "SelectResource": "Select Resources",
"SelectTemplate": "Select Template", "SelectTemplate": "Select Template",
"SelectValueOrCreateNew": "Select Tag Value or Create New One", "SelectValueOrCreateNew": "Select Tag Value or Create New One",
"Selected": "Selected", "Selected": "Selected",
"Selection": "Selectable", "Selection": "Selection",
"Selector": "Selector", "Selector": "Selector",
"Send": "Send", "Send": "Send",
"SendVerificationCode": "Send Verification Code", "SendVerificationCode": "Send Verification Code",
@ -976,17 +979,17 @@
"SessionsAudit": "Session Audit", "SessionsAudit": "Session Audit",
"SessionsNum": "Sessions", "SessionsNum": "Sessions",
"Set": "Configured", "Set": "Configured",
"SetDingTalk": "Configure DingTalk Authentication", "SetDingTalk": "DingTalk OAuth",
"SetFailed": "Setting Failed", "SetFailed": "Setting Failed",
"SetFeiShu": "Set Feishu Authentication", "SetFeiShu": "Set Feishu Authentication",
"SetMFA": "Set Multi-factor Authentication", "SetMFA": "Multi-factor Auth",
"SetSlack": "Set-up Slack Authentication", "SetSlack": "Slack OAuth",
"SetStatus": "Status Setting", "SetStatus": "Status Setting",
"SetSuccess": "Successfully Set", "SetSuccess": "Successfully Set",
"SetToDefault": "Set as Default", "SetToDefault": "Set as Default",
"SetToDefaultStorage": "Set as Default Storage", "SetToDefaultStorage": "Set as Default Storage",
"SetWeCom": "Set up Enterprise WeChat Authentication", "SetWeCom": "WeCom OAuth",
"Setting": "Settings", "Setting": "Setting",
"SettingInEndpointHelpText": "Configure service address and port in System Settings / Component Settings / Server Endpoints", "SettingInEndpointHelpText": "Configure service address and port in System Settings / Component Settings / Server Endpoints",
"Settings": "System Settings", "Settings": "System Settings",
"Show": "Display", "Show": "Display",
@ -1056,7 +1059,8 @@
"SystemRoles": "System Roles", "SystemRoles": "System Roles",
"SystemSetting": "System Settings", "SystemSetting": "System Settings",
"SystemTools": "System Tools", "SystemTools": "System Tools",
"TableColSettingInfo": "Please select the list details you want to display.", "TableColSetting": "Select visible attribute columns",
"TableSetting": "Table preference",
"Target": "Target", "Target": "Target",
"TargetResources": "Target Resource", "TargetResources": "Target Resource",
"Task": "Task", "Task": "Task",
@ -1105,7 +1109,7 @@
"Title": "Title", "Title": "Title",
"To": "To", "To": "To",
"Today": "Today", "Today": "Today",
"TodayFailedConnections": "Failed Connections Today", "TodayFailedConnections": "Failed Session Today",
"Token": "Token", "Token": "Token",
"Total": "Total", "Total": "Total",
"TotalJobFailed": "Failed Execution Actions", "TotalJobFailed": "Failed Execution Actions",
@ -1139,7 +1143,7 @@
"UpdateEndpointRule": "Update Endpoint Rules", "UpdateEndpointRule": "Update Endpoint Rules",
"UpdateErrorMsg": "Update Failed", "UpdateErrorMsg": "Update Failed",
"UpdateNodeAssetHardwareInfo": "Update Node Asset Hardware Information", "UpdateNodeAssetHardwareInfo": "Update Node Asset Hardware Information",
"UpdateSSHKey": "Update SSH Public Key", "UpdateSSHKey": "Change SSH Public Key",
"UpdateSelected": "Update selected", "UpdateSelected": "Update selected",
"UpdateSuccessMsg": "Update Successful", "UpdateSuccessMsg": "Update Successful",
"Updated": "Updated", "Updated": "Updated",
@ -1155,10 +1159,10 @@
"UseProtocol": "User Agreement", "UseProtocol": "User Agreement",
"UseSSL": "Use SSL/TLS", "UseSSL": "Use SSL/TLS",
"User": "User", "User": "User",
"UserAclLists": "User Login Rules", "UserAclLists": "Login ACLs",
"UserAssetActivity": "Account/Asset Activity", "UserAssetActivity": "Account/Asset Activity",
"UserCreate": "Create User", "UserCreate": "Create a User",
"UserData": "Account Data", "UserData": "User Data",
"UserDetail": "User Details", "UserDetail": "User Details",
"UserGroupCreate": "Create User Group", "UserGroupCreate": "Create User Group",
"UserGroupDetail": "User Group Details", "UserGroupDetail": "User Group Details",
@ -1174,8 +1178,8 @@
"UserLoginAclUpdate": "Update User Login Control", "UserLoginAclUpdate": "Update User Login Control",
"UserLoginLimit": "User Login Restriction", "UserLoginLimit": "User Login Restriction",
"UserLoginTrend": "Account Login Trend", "UserLoginTrend": "Account Login Trend",
"UserProfile": "Personal Information", "UserProfile": "Profile",
"UserSession": "User Sessions", "UserSession": "Asset Sessions",
"UserSetting": "Preference", "UserSetting": "Preference",
"UserSwitchFrom": "Switch from", "UserSwitchFrom": "Switch from",
"UserUpdate": "Update User", "UserUpdate": "Update User",

View File

@ -68,7 +68,6 @@
"AllAccounts": "所有账号", "AllAccounts": "所有账号",
"AllClickRead": "全部已读", "AllClickRead": "全部已读",
"AllMembers": "全部成员", "AllMembers": "全部成员",
"AllOrganization": "组织列表",
"AllowInvalidCert": "忽略证书检查", "AllowInvalidCert": "忽略证书检查",
"Announcement": "公告", "Announcement": "公告",
"AnonymousAccount": "匿名账号", "AnonymousAccount": "匿名账号",
@ -205,6 +204,7 @@
"Certificate": "证书", "Certificate": "证书",
"CertificateKey": "客户端密钥", "CertificateKey": "客户端密钥",
"ChangeField": "变更字段", "ChangeField": "变更字段",
"ChangeOrganization": "更改组织",
"ChangePassword": "更新密码", "ChangePassword": "更新密码",
"ChangeReceiver": "修改消息接收人", "ChangeReceiver": "修改消息接收人",
"ChangeSecretParams": "改密参数", "ChangeSecretParams": "改密参数",
@ -851,6 +851,7 @@
"ResetMFAWarningMsg": "你确定要重置用户的 MFA 吗?", "ResetMFAWarningMsg": "你确定要重置用户的 MFA 吗?",
"ResetMFAdSuccessMsg": "重置MFA成功, 用户可以重新设置MFA了", "ResetMFAdSuccessMsg": "重置MFA成功, 用户可以重新设置MFA了",
"ResetPassword": "重置密码", "ResetPassword": "重置密码",
"ResetPasswordNextLogin": "下次登录须修改密码",
"ResetPasswordSuccessMsg": "已向用户发送重置密码消息", "ResetPasswordSuccessMsg": "已向用户发送重置密码消息",
"ResetPasswordWarningMsg": "你确定要发送重置用户密码的邮件吗", "ResetPasswordWarningMsg": "你确定要发送重置用户密码的邮件吗",
"ResetPublicKeyAndDownload": "重置并下载SSH密钥", "ResetPublicKeyAndDownload": "重置并下载SSH密钥",
@ -859,7 +860,6 @@
"ResetSSHKeyWarningMsg": "你确定要发送重置用户的SSH Key的邮件吗?", "ResetSSHKeyWarningMsg": "你确定要发送重置用户的SSH Key的邮件吗?",
"Resource": "资源", "Resource": "资源",
"ResourceType": "资源类型", "ResourceType": "资源类型",
"ResetPasswordNextLogin": "下次登录须修改密码",
"RestoreButton": "恢复默认", "RestoreButton": "恢复默认",
"RestoreDefault": "恢复默认", "RestoreDefault": "恢复默认",
"RestoreDialogMessage": "您确定要恢复默认初始化吗?", "RestoreDialogMessage": "您确定要恢复默认初始化吗?",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -18,7 +18,7 @@ __all__ = [
class UserGroupSerializer(ResourceLabelsMixin, BulkOrgResourceModelSerializer): class UserGroupSerializer(ResourceLabelsMixin, BulkOrgResourceModelSerializer):
users = ObjectRelatedField( users = ObjectRelatedField(
required=False, many=True, queryset=User.objects, required=False, many=True, queryset=User.objects,
attrs=("id", "name", "is_service_account"), label=_('User'), attrs=("id", "name", "is_service_account"), label=_('Users'),
) )
class Meta: class Meta:

View File

@ -6,7 +6,7 @@ from functools import partial
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
from rest_framework import serializers from rest_framework import serializers
from common.serializers import CommonBulkSerializerMixin, ResourceLabelsMixin from common.serializers import ResourceLabelsMixin, CommonBulkModelSerializer
from common.serializers.fields import ( from common.serializers.fields import (
EncryptedField, ObjectRelatedField, LabeledChoiceField, PhoneField EncryptedField, ObjectRelatedField, LabeledChoiceField, PhoneField
) )
@ -81,7 +81,7 @@ class RolesSerializerMixin(serializers.Serializer):
return fields return fields
class UserSerializer(RolesSerializerMixin, CommonBulkSerializerMixin, ResourceLabelsMixin, serializers.ModelSerializer): class UserSerializer(RolesSerializerMixin, ResourceLabelsMixin, CommonBulkModelSerializer):
password_strategy = LabeledChoiceField( password_strategy = LabeledChoiceField(
choices=PasswordStrategy.choices, choices=PasswordStrategy.choices,
default=PasswordStrategy.email, default=PasswordStrategy.email,