mirror of https://github.com/jumpserver/jumpserver
perf: 修改翻译
parent
f6e4d909ff
commit
c22f88ae42
|
@ -125,7 +125,7 @@ class AssetSerializer(BulkOrgResourceModelSerializer, ResourceLabelsMixin, Writa
|
|||
category = LabeledChoiceField(choices=Category.choices, read_only=True, label=_('Category'))
|
||||
type = LabeledChoiceField(choices=AllTypes.choices(), read_only=True, label=_('Type'))
|
||||
protocols = AssetProtocolsSerializer(many=True, required=False, label=_('Protocols'), default=())
|
||||
accounts = AssetAccountSerializer(many=True, required=False, allow_null=True, write_only=True, label=_('Account'))
|
||||
accounts = AssetAccountSerializer(many=True, required=False, allow_null=True, write_only=True, label=_('Accounts'))
|
||||
nodes_display = serializers.ListField(read_only=False, required=False, label=_("Node path"))
|
||||
_accounts = None
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ __all__ = ['DomainSerializer', 'DomainWithGatewaySerializer', 'DomainListSeriali
|
|||
|
||||
class DomainSerializer(ResourceLabelsMixin, BulkOrgResourceModelSerializer):
|
||||
gateways = ObjectRelatedField(
|
||||
many=True, required=False, label=_('Gateway'), read_only=True,
|
||||
many=True, required=False, label=_('Gateways'), read_only=True,
|
||||
)
|
||||
assets_amount = serializers.IntegerField(label=_('Assets amount'), read_only=True)
|
||||
|
||||
|
|
|
@ -30,30 +30,36 @@ class PlatformAutomationSerializer(serializers.ModelSerializer):
|
|||
]
|
||||
extra_kwargs = {
|
||||
# 启用资产探测
|
||||
"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 facts collection")
|
||||
"ping_enabled": {"label": _("Ping enabled"), },
|
||||
"ping_method": {"label": _("Ping method"), "help_text": _("Enable asset detection")},
|
||||
"gather_facts_enabled": {"label": _("Gather facts enabled"), },
|
||||
"gather_facts_method": {
|
||||
"label": _("Gather facts method"),
|
||||
"help_text": _("Enable asset information collection")
|
||||
},
|
||||
"gather_facts_method": {"label": _("Gather facts method")},
|
||||
"verify_account_enabled": {
|
||||
"label": _("Verify account enabled"),
|
||||
"verify_account_method": {
|
||||
"label": _("Verify account method"),
|
||||
"help_text": _("Enable account verification")
|
||||
},
|
||||
"verify_account_method": {"label": _("Verify account method")},
|
||||
"change_secret_enabled": {
|
||||
"label": _("Change secret enabled"),
|
||||
},
|
||||
"change_secret_method": {
|
||||
"label": _("Change secret method"),
|
||||
"help_text": _("Enable account secret auto change")
|
||||
},
|
||||
"change_secret_method": {"label": _("Change secret method")},
|
||||
"push_account_enabled": {"label": _("Push account enabled"), "help_text": _("Enable account auto push")},
|
||||
"push_account_method": {"label": _("Push account method")},
|
||||
"push_account_enabled": {"label": _("Push account enabled"), },
|
||||
"push_account_method": {
|
||||
"label": _("Push account method"),
|
||||
"help_text": _("Enable account auto push")
|
||||
},
|
||||
"gather_accounts_enabled": {
|
||||
"label": _("Gather accounts enabled"),
|
||||
},
|
||||
"gather_accounts_method": {
|
||||
"label": _("Gather accounts method"),
|
||||
"help_text": _("Enable account collection")
|
||||
},
|
||||
"gather_accounts_method": {"label": _("Gather accounts method")},
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1040,12 +1040,13 @@
|
|||
"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": "SU From",
|
||||
"SuEnabled": "Enable switch",
|
||||
"SuFrom": "Switch From",
|
||||
"Submit": "Submit",
|
||||
"Success": "Success",
|
||||
"SuccessAsset": "Successful Assets",
|
||||
"SuccessfulOperation": "Action successful",
|
||||
"AddInDetailText": "After successful creation or update, add to the details",
|
||||
"Summary(success/total)": " Overview( Successful/Total )",
|
||||
"Sunday": "Sunday",
|
||||
"SuperAdmin": "Super Administrator",
|
||||
|
@ -1197,7 +1198,7 @@
|
|||
"UserProfile": "Profile",
|
||||
"UserSession": "Asset Sessions",
|
||||
"UserSetting": "Preference",
|
||||
"UserSwitchFrom": "SU from",
|
||||
"UserSwitchFrom": "Switch from",
|
||||
"UserUpdate": "Update the User",
|
||||
"Username": "Username",
|
||||
"UsernamePlaceholder": "Please Enter Username",
|
||||
|
|
Loading…
Reference in New Issue