perf: 修改资产序列类字段翻译

pull/9248/head
Bai 2022-12-27 16:21:32 +08:00
parent bb23c2a9fa
commit ba9123b1c4
5 changed files with 20 additions and 17 deletions

View File

@ -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):

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a533ee3b36cdd61fe239be159cc80362e5cd358f134857987029bde8e4c1231e
size 119530
oid sha256:93524bfafbdfcb59e20920619c934b1df7b040573e98d1f1f481c73126110630
size 119578

View File

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 "ログインモード表示"

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7496f27202b5dcd9d677a70f9efc86c30b74fc306d6b5fa7202238c15c845971
size 105814
oid sha256:8ea4225734c8f9df88bb72379ccd48b50d833766fbde3ce64cacf5eb6f87082b
size 105853

View File

@ -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 <ibuler@qq.com>\n"
"Language-Team: JumpServer team<ibuler@qq.com>\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 "认证方式名称"