perf: 修改翻译

pull/12764/head
ibuler 2024-03-05 19:01:44 +08:00
parent e57512f4fe
commit 6ea13b2c0d
3 changed files with 14 additions and 12 deletions

View File

@ -131,7 +131,7 @@ class ActivityUnionLogSerializer(serializers.Serializer):
def get_content(obj): def get_content(obj):
if not obj['r_detail']: if not obj['r_detail']:
action = obj['r_action'].replace('_', ' ').capitalize() action = obj['r_action'].replace('_', ' ').capitalize()
ctn = _('User %s %s this resource') % (obj['r_user'], _(action)) ctn = _('%s %s this resource') % (obj['r_user'], _(action).lower())
else: else:
ctn = i18n_trans(obj['r_detail']) ctn = i18n_trans(obj['r_detail'])
return ctn return ctn

View File

@ -254,7 +254,7 @@
"CommandGroupUpdate": "Update the Command Group", "CommandGroupUpdate": "Update the Command Group",
"CommandStorage": "Command Storage", "CommandStorage": "Command Storage",
"CommandStorageUpdate": "Update the Cmd Storage", "CommandStorageUpdate": "Update the Cmd Storage",
"Commands": "Command Record", "Commands": "Commands",
"Comment": "Note", "Comment": "Note",
"CommentHelpText": "Note: Remarks will be displayed when hovered over in the Luna page's user authorization asset tree. Ordinary users can view, please do not fill in sensitive information.", "CommentHelpText": "Note: Remarks will be displayed when hovered over in the Luna page's user authorization asset tree. Ordinary users can view, please do not fill in sensitive information.",
"CommunityEdition": "Community Version", "CommunityEdition": "Community Version",
@ -329,13 +329,13 @@
"DateExpired": "Expiration Date", "DateExpired": "Expiration Date",
"DateFinished": "Completion Date", "DateFinished": "Completion Date",
"DateJoined": "Creation Date", "DateJoined": "Creation Date",
"DateLast24Hours": "Last 24 Hours", "DateLast24Hours": "Last Day",
"DateLast3Months": "Last Three Months", "DateLast3Months": "Quarter of Year",
"DateLastHarfYear": "The last six months", "DateLastHarfYear": "Half of Year",
"DateLastLogin": "Last Login Date", "DateLastLogin": "Last Login Date",
"DateLastMonth": "Past One Month", "DateLastMonth": "Last Month",
"DateLastSync": "Last synchronization date", "DateLastSync": "Last synchronization date",
"DateLastWeek": "Past Week", "DateLastWeek": "Last Week",
"DateLastYear": "Last Year", "DateLastYear": "Last Year",
"DatePasswordLastUpdated": "Last Password Update Date", "DatePasswordLastUpdated": "Last Password Update Date",
"DateStart": "Start Date", "DateStart": "Start Date",
@ -464,7 +464,7 @@
"GPTCreate": "Create a Asset - GPT", "GPTCreate": "Create a Asset - GPT",
"GPTUpdate": "Update the Asset - GPT", "GPTUpdate": "Update the Asset - GPT",
"GatewayCreate": "Create a Gateway", "GatewayCreate": "Create a Gateway",
"GatewayList": "Gateway list", "GatewayList": "Gateways",
"GatewayUpdate": "Update the Gateway", "GatewayUpdate": "Update the Gateway",
"GatheredAccounts": "Gathered Accounts", "GatheredAccounts": "Gathered Accounts",
"GeneralAccounts": "General Accounts", "GeneralAccounts": "General Accounts",
@ -785,7 +785,9 @@
"Proportion": "Proportion", "Proportion": "Proportion",
"ProportionOfAssetTypes": "Asset Type Proportion", "ProportionOfAssetTypes": "Asset Type Proportion",
"Protocol": "Protocol", "Protocol": "Protocol",
"Protocols": "Agreement", "Protocols": "Protocols",
"SuEnabled": "Enable su",
"SyncProtocolToAsset": "Protocols to Assets",
"Proxy": "Agent", "Proxy": "Agent",
"PublicCloud": "Public Cloud", "PublicCloud": "Public Cloud",
"PublicKey": "Public Key", "PublicKey": "Public Key",
@ -963,7 +965,7 @@
"SessionData": "Session Data", "SessionData": "Session Data",
"SessionDetail": "Session Details", "SessionDetail": "Session Details",
"SessionID": "Session ID", "SessionID": "Session ID",
"SessionList": "Conversation History", "SessionList": "Sessions",
"SessionMonitor": "Monitor", "SessionMonitor": "Monitor",
"SessionOffline": "Historical Sessions", "SessionOffline": "Historical Sessions",
"SessionOnline": "Online Sessions", "SessionOnline": "Online Sessions",
@ -1048,7 +1050,7 @@
"SyncStrategy": "Sync Policy", "SyncStrategy": "Sync Policy",
"SyncSuccessMsg": "Sync Succeeded", "SyncSuccessMsg": "Sync Succeeded",
"SyncTask": "Sync Tasks", "SyncTask": "Sync Tasks",
"SyncUpdateAccountInfo": "Sync update account information", "SyncUpdateAccountInfo": "Sync new secret to accounts",
"SyncUser": "Sync Users", "SyncUser": "Sync Users",
"SyncedCount": "Synchronized", "SyncedCount": "Synchronized",
"SystemError": "System Error", "SystemError": "System Error",

View File

@ -42,7 +42,7 @@ class AssetPermissionSerializer(ResourceLabelsMixin, BulkOrgResourceModelSeriali
actions = ActionChoicesField(required=False, allow_null=True, label=_("Actions")) actions = ActionChoicesField(required=False, allow_null=True, label=_("Actions"))
is_valid = serializers.BooleanField(read_only=True, label=_("Is valid")) is_valid = serializers.BooleanField(read_only=True, label=_("Is valid"))
is_expired = serializers.BooleanField(read_only=True, label=_("Is expired")) is_expired = serializers.BooleanField(read_only=True, label=_("Is expired"))
accounts = serializers.ListField(label=_("Account"), required=False) accounts = serializers.ListField(label=_("Accounts"), required=False)
protocols = serializers.ListField(label=_("Protocols"), required=False) protocols = serializers.ListField(label=_("Protocols"), required=False)
template_accounts = AccountTemplate.objects.none() template_accounts = AccountTemplate.objects.none()