diff --git a/apps/assets/serializers/asset/common.py b/apps/assets/serializers/asset/common.py index e34af1f5f..c7641cf4b 100644 --- a/apps/assets/serializers/asset/common.py +++ b/apps/assets/serializers/asset/common.py @@ -66,7 +66,7 @@ class AssetSerializer(BulkOrgResourceSerializerMixin, WritableNestedModelSeriali nodes = ObjectRelatedField(many=True, required=False, queryset=Node.objects, label=_('Nodes')) labels = AssetLabelSerializer(many=True, required=False, label=_('Labels')) protocols = AssetProtocolsSerializer(many=True, required=False, label=_('Protocols')) - accounts = AssetAccountSerializer(many=True, required=False, label=_('Accounts')) + accounts = AssetAccountSerializer(many=True, required=False, label=_('Account')) enabled_info = serializers.SerializerMethodField() class Meta: @@ -86,6 +86,7 @@ class AssetSerializer(BulkOrgResourceSerializerMixin, WritableNestedModelSeriali extra_kwargs = { 'name': {'label': _("Name")}, 'address': {'label': _('Address')}, + 'nodes_display': {'label': _('Node path')}, } def get_field_names(self, declared_fields, info): diff --git a/apps/locale/ja/LC_MESSAGES/django.mo b/apps/locale/ja/LC_MESSAGES/django.mo index f98c635ae..454a324f7 100644 --- a/apps/locale/ja/LC_MESSAGES/django.mo +++ b/apps/locale/ja/LC_MESSAGES/django.mo @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a533ee3b36cdd61fe239be159cc80362e5cd358f134857987029bde8e4c1231e -size 119530 +oid sha256:93524bfafbdfcb59e20920619c934b1df7b040573e98d1f1f481c73126110630 +size 119578 diff --git a/apps/locale/ja/LC_MESSAGES/django.po b/apps/locale/ja/LC_MESSAGES/django.po index 33caf18a8..652632d49 100644 --- a/apps/locale/ja/LC_MESSAGES/django.po +++ b/apps/locale/ja/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-26 20:28+0800\n" +"POT-Creation-Date: 2022-12-27 12:11+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1308,12 +1308,16 @@ msgstr "プロトコル" msgid "Address" msgstr "アドレス" -#: assets/serializers/asset/common.py:156 +#: assets/serializers/asset/common.py:89 +msgid "Node path" +msgstr "ノードパスです" + +#: assets/serializers/asset/common.py:157 #, fuzzy msgid "Platform not exist" msgstr "アプリが存在しません" -#: assets/serializers/asset/common.py:172 +#: assets/serializers/asset/common.py:173 #, fuzzy msgid "Protocol is required: {}" msgstr "プロトコル重複: {}" @@ -7443,9 +7447,6 @@ msgstr "コミュニティ版" #~ msgid "Apps amount" #~ msgstr "アプリの量" -#~ msgid "Nodes amount" -#~ msgstr "ノード量" - #~ msgid "Login mode display" #~ msgstr "ログインモード表示" diff --git a/apps/locale/zh/LC_MESSAGES/django.mo b/apps/locale/zh/LC_MESSAGES/django.mo index acd56e90a..d938f8a06 100644 --- a/apps/locale/zh/LC_MESSAGES/django.mo +++ b/apps/locale/zh/LC_MESSAGES/django.mo @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7496f27202b5dcd9d677a70f9efc86c30b74fc306d6b5fa7202238c15c845971 -size 105814 +oid sha256:8ea4225734c8f9df88bb72379ccd48b50d833766fbde3ce64cacf5eb6f87082b +size 105853 diff --git a/apps/locale/zh/LC_MESSAGES/django.po b/apps/locale/zh/LC_MESSAGES/django.po index 2fe65075a..a08e9854c 100644 --- a/apps/locale/zh/LC_MESSAGES/django.po +++ b/apps/locale/zh/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: JumpServer 0.3.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-26 20:28+0800\n" +"POT-Creation-Date: 2022-12-27 12:11+0800\n" "PO-Revision-Date: 2021-05-20 10:54+0800\n" "Last-Translator: ibuler \n" "Language-Team: JumpServer team\n" @@ -1246,11 +1246,15 @@ msgstr "协议组" msgid "Address" msgstr "地址" -#: assets/serializers/asset/common.py:156 +#: assets/serializers/asset/common.py:89 +msgid "Node path" +msgstr "节点路径" + +#: assets/serializers/asset/common.py:157 msgid "Platform not exist" msgstr "平台不存在" -#: assets/serializers/asset/common.py:172 +#: assets/serializers/asset/common.py:173 msgid "Protocol is required: {}" msgstr "协议是必填的: {}" @@ -7217,9 +7221,6 @@ msgstr "社区版" #~ msgid "Apps amount" #~ msgstr "应用数量" -#~ msgid "Nodes amount" -#~ msgstr "节点数量" - #~ msgid "Login mode display" #~ msgstr "认证方式名称"