perf: 修改翻译

pull/12928/head
ibuler 2024-04-02 14:27:18 +08:00
parent 19b196eb1f
commit 255817f5c6
2 changed files with 19 additions and 10 deletions

View File

@ -30,35 +30,42 @@ class PlatformAutomationSerializer(serializers.ModelSerializer):
]
extra_kwargs = {
# 启用资产探测
"ping_enabled": {"label": _("Ping enabled"), },
"ping_method": {"label": _("Ping method"), "help_text": _("Enable asset detection")},
"gather_facts_enabled": {"label": _("Gather facts enabled"), },
"ping_enabled": {"label": _("Ping enabled"), "help_text": _("Enable asset detection")},
"ping_method": {"label": _("Ping method")},
"gather_facts_enabled": {
"label": _("Gather facts enabled"),
"help_text": _("Enable asset information collection")
},
"gather_facts_method": {
"label": _("Gather facts method"),
"help_text": _("Enable asset information collection")
},
"verify_account_enabled": {
"label": _("Verify account enabled"),
"help_text": _("Enable account verification")
},
"verify_account_method": {
"label": _("Verify account method"),
"help_text": _("Enable account verification")
},
"change_secret_enabled": {
"label": _("Change secret enabled"),
"help_text": _("Enable account secret auto change")
},
"change_secret_method": {
"label": _("Change secret method"),
"help_text": _("Enable account secret auto change")
},
"push_account_enabled": {"label": _("Push account enabled"), },
"push_account_enabled": {
"label": _("Push account enabled"),
"help_text": _("Enable account auto push")
},
"push_account_method": {
"label": _("Push account method"),
"help_text": _("Enable account auto push")
},
"gather_accounts_enabled": {
"label": _("Gather accounts enabled"),
"help_text": _("Enable account collection")
},
"gather_accounts_method": {
"label": _("Gather accounts method"),
"help_text": _("Enable account collection")
},
}

View File

@ -314,7 +314,9 @@
"CreatedBy": "Creator",
"CriticalLoad": "Serious",
"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": "",
"CrontabHelpText": "If both interval and crontab are set, crontab is prioritized",
"CrontabHelpTip": "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/> ",
"CurrentConnectionUsers": "Online Users",
"CurrentConnections": "Current Connections",
"CurrentUserVerify": "Verify Current User",