mirror of https://github.com/jumpserver/jumpserver
perf: 修改资产序列类字段翻译
parent
bb23c2a9fa
commit
ba9123b1c4
|
@ -66,7 +66,7 @@ class AssetSerializer(BulkOrgResourceSerializerMixin, WritableNestedModelSeriali
|
||||||
nodes = ObjectRelatedField(many=True, required=False, queryset=Node.objects, label=_('Nodes'))
|
nodes = ObjectRelatedField(many=True, required=False, queryset=Node.objects, label=_('Nodes'))
|
||||||
labels = AssetLabelSerializer(many=True, required=False, label=_('Labels'))
|
labels = AssetLabelSerializer(many=True, required=False, label=_('Labels'))
|
||||||
protocols = AssetProtocolsSerializer(many=True, required=False, label=_('Protocols'))
|
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()
|
enabled_info = serializers.SerializerMethodField()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
@ -86,6 +86,7 @@ class AssetSerializer(BulkOrgResourceSerializerMixin, WritableNestedModelSeriali
|
||||||
extra_kwargs = {
|
extra_kwargs = {
|
||||||
'name': {'label': _("Name")},
|
'name': {'label': _("Name")},
|
||||||
'address': {'label': _('Address')},
|
'address': {'label': _('Address')},
|
||||||
|
'nodes_display': {'label': _('Node path')},
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_field_names(self, declared_fields, info):
|
def get_field_names(self, declared_fields, info):
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:a533ee3b36cdd61fe239be159cc80362e5cd358f134857987029bde8e4c1231e
|
oid sha256:93524bfafbdfcb59e20920619c934b1df7b040573e98d1f1f481c73126110630
|
||||||
size 119530
|
size 119578
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \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"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -1308,12 +1308,16 @@ msgstr "プロトコル"
|
||||||
msgid "Address"
|
msgid "Address"
|
||||||
msgstr "アドレス"
|
msgstr "アドレス"
|
||||||
|
|
||||||
#: assets/serializers/asset/common.py:156
|
#: assets/serializers/asset/common.py:89
|
||||||
|
msgid "Node path"
|
||||||
|
msgstr "ノードパスです"
|
||||||
|
|
||||||
|
#: assets/serializers/asset/common.py:157
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Platform not exist"
|
msgid "Platform not exist"
|
||||||
msgstr "アプリが存在しません"
|
msgstr "アプリが存在しません"
|
||||||
|
|
||||||
#: assets/serializers/asset/common.py:172
|
#: assets/serializers/asset/common.py:173
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Protocol is required: {}"
|
msgid "Protocol is required: {}"
|
||||||
msgstr "プロトコル重複: {}"
|
msgstr "プロトコル重複: {}"
|
||||||
|
@ -7443,9 +7447,6 @@ msgstr "コミュニティ版"
|
||||||
#~ msgid "Apps amount"
|
#~ msgid "Apps amount"
|
||||||
#~ msgstr "アプリの量"
|
#~ msgstr "アプリの量"
|
||||||
|
|
||||||
#~ msgid "Nodes amount"
|
|
||||||
#~ msgstr "ノード量"
|
|
||||||
|
|
||||||
#~ msgid "Login mode display"
|
#~ msgid "Login mode display"
|
||||||
#~ msgstr "ログインモード表示"
|
#~ msgstr "ログインモード表示"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:7496f27202b5dcd9d677a70f9efc86c30b74fc306d6b5fa7202238c15c845971
|
oid sha256:8ea4225734c8f9df88bb72379ccd48b50d833766fbde3ce64cacf5eb6f87082b
|
||||||
size 105814
|
size 105853
|
||||||
|
|
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: JumpServer 0.3.3\n"
|
"Project-Id-Version: JumpServer 0.3.3\n"
|
||||||
"Report-Msgid-Bugs-To: \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"
|
"PO-Revision-Date: 2021-05-20 10:54+0800\n"
|
||||||
"Last-Translator: ibuler <ibuler@qq.com>\n"
|
"Last-Translator: ibuler <ibuler@qq.com>\n"
|
||||||
"Language-Team: JumpServer team<ibuler@qq.com>\n"
|
"Language-Team: JumpServer team<ibuler@qq.com>\n"
|
||||||
|
@ -1246,11 +1246,15 @@ msgstr "协议组"
|
||||||
msgid "Address"
|
msgid "Address"
|
||||||
msgstr "地址"
|
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"
|
msgid "Platform not exist"
|
||||||
msgstr "平台不存在"
|
msgstr "平台不存在"
|
||||||
|
|
||||||
#: assets/serializers/asset/common.py:172
|
#: assets/serializers/asset/common.py:173
|
||||||
msgid "Protocol is required: {}"
|
msgid "Protocol is required: {}"
|
||||||
msgstr "协议是必填的: {}"
|
msgstr "协议是必填的: {}"
|
||||||
|
|
||||||
|
@ -7217,9 +7221,6 @@ msgstr "社区版"
|
||||||
#~ msgid "Apps amount"
|
#~ msgid "Apps amount"
|
||||||
#~ msgstr "应用数量"
|
#~ msgstr "应用数量"
|
||||||
|
|
||||||
#~ msgid "Nodes amount"
|
|
||||||
#~ msgstr "节点数量"
|
|
||||||
|
|
||||||
#~ msgid "Login mode display"
|
#~ msgid "Login mode display"
|
||||||
#~ msgstr "认证方式名称"
|
#~ msgstr "认证方式名称"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue