perf: i18n settings-Components done.

pull/12719/head
Bai 2024-02-27 16:43:44 +08:00
parent 7268f60343
commit 9e1a3598ab
8 changed files with 35 additions and 47 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e91350085ae1a963cd47e161976e8712215648bf46d9f9253c0fdec2f7c9869
size 2329
oid sha256:7b33b3fc460342e5c344d08fd5217d0d7abbfece053251332607a93d46b3ffbe
size 2319

View File

@ -5866,7 +5866,7 @@ msgid "Auto"
msgstr ""
#: settings/serializers/terminal.py:22
msgid "Enable terminal register"
msgid "Terminal registration"
msgstr ""
#: settings/serializers/terminal.py:24
@ -5885,16 +5885,16 @@ msgstr ""
#: settings/serializers/terminal.py:30
msgid ""
"Tips: If use other auth method, like AD/LDAP, you should disable this to "
"Information: If use other auth method, like AD/LDAP, you should disable this to "
"avoid being able to log in after deleting"
msgstr ""
#: settings/serializers/terminal.py:34
msgid "List sort by"
msgid "Asset list sorting"
msgstr ""
#: settings/serializers/terminal.py:37
msgid "List page size"
msgid "Asset list page size"
msgstr ""
#: settings/serializers/terminal.py:39
@ -5905,10 +5905,6 @@ msgstr ""
msgid "Enable Razor"
msgstr ""
#: settings/serializers/terminal.py:41
msgid "Enable SSH Client"
msgstr ""
#: settings/tasks/ldap.py:28
msgid "Periodic import ldap user"
msgstr ""
@ -7801,7 +7797,7 @@ msgid "Is OTP bound"
msgstr "OTP bound"
#: users/serializers/user.py:101
msgid "Can public key authentication"
msgid "Can public key auth"
msgstr "Public key auth"
#: users/serializers/user.py:166

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:69201f02364e905a7a671a4c841335ef36f0cde08f263c00891ac472033efaf1
size 168785
oid sha256:b5e7d67f20f1f3dcfe596a68a54e9c8228218ad4dfabed4c9439ebcd675df605
size 168686

View File

@ -6075,7 +6075,7 @@ msgid "Auto"
msgstr "自動"
#: settings/serializers/terminal.py:22
msgid "Enable terminal register"
msgid "Terminal registration"
msgstr "ターミナルレジスタの有効化"
#: settings/serializers/terminal.py:24
@ -6096,18 +6096,18 @@ msgstr "鍵認証"
#: settings/serializers/terminal.py:30
msgid ""
"Tips: If use other auth method, like AD/LDAP, you should disable this to "
"Information: If use other auth method, like AD/LDAP, you should disable this to "
"avoid being able to log in after deleting"
msgstr ""
"ヒント: AD/LDAPなどの他の認証方法を使用する場合は、サードパーティ製システムの"
"削除後にこの項目を無効にする必要があります, ログインも可能"
#: settings/serializers/terminal.py:34
msgid "List sort by"
msgid "Asset list sorting"
msgstr "リストの並べ替え"
#: settings/serializers/terminal.py:37
msgid "List page size"
msgid "Asset list page size"
msgstr "ページサイズを一覧表示"
#: settings/serializers/terminal.py:39
@ -6119,7 +6119,7 @@ msgid "Enable Razor"
msgstr "Razor の有効化"
#: settings/serializers/terminal.py:41
msgid "Enable SSH Client"
msgid "SSH Client"
msgstr "SSH Clientの有効化"
#: settings/tasks/ldap.py:28
@ -6540,10 +6540,6 @@ msgstr "出力"
msgid "Risk level"
msgstr "リスクレベル"
#: terminal/connect_methods.py:29
msgid "SSH Client"
msgstr "SSH クライアント"
#: terminal/connect_methods.py:30
msgid "SSH Guide"
msgstr "SSH ガイド人"
@ -8106,7 +8102,7 @@ msgid "Is OTP bound"
msgstr "仮想MFAがバインドされているか"
#: users/serializers/user.py:101
msgid "Can public key authentication"
msgid "Can public key auth"
msgstr "公開鍵認証が可能"
#: users/serializers/user.py:166

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:86fdb677199ef9d4911ec59a16aafd1e2b4b5613d81f8dfbcf477ecc51c2cd24
size 139535
oid sha256:ea00888ff29f180282bd67dd84e912d02184698ab75da63803c11352240f373a
size 139493

View File

@ -5937,7 +5937,7 @@ msgid "Auto"
msgstr "自动"
#: settings/serializers/terminal.py:22
msgid "Enable terminal register"
msgid "Terminal registration"
msgstr "组件注册"
#: settings/serializers/terminal.py:24
@ -5956,18 +5956,18 @@ msgstr "密钥认证"
#: settings/serializers/terminal.py:30
msgid ""
"Tips: If use other auth method, like AD/LDAP, you should disable this to "
"Information: If use other auth method, like AD/LDAP, you should disable this to "
"avoid being able to log in after deleting"
msgstr ""
"提示:如果你使用其它认证方式,如 AD/LDAP你应该禁用此项以避免第三方系统删"
"除后,还可以登录"
#: settings/serializers/terminal.py:34
msgid "List sort by"
msgid "Asset list sorting"
msgstr "资产列表排序"
#: settings/serializers/terminal.py:37
msgid "List page size"
msgid "Asset list page size"
msgstr "资产列表每页数量"
#: settings/serializers/terminal.py:39
@ -5979,7 +5979,7 @@ msgid "Enable Razor"
msgstr "启用 Razor 服务"
#: settings/serializers/terminal.py:41
msgid "Enable SSH Client"
msgid "SSH Client"
msgstr "启用 SSH Client"
#: settings/tasks/ldap.py:28
@ -6388,10 +6388,6 @@ msgstr "输出"
msgid "Risk level"
msgstr "风险等级"
#: terminal/connect_methods.py:29
msgid "SSH Client"
msgstr "SSH 客户端"
#: terminal/connect_methods.py:30
msgid "SSH Guide"
msgstr "SSH 向导"
@ -7924,7 +7920,7 @@ msgid "Is OTP bound"
msgstr "是否绑定了虚拟 MFA"
#: users/serializers/user.py:101
msgid "Can public key authentication"
msgid "Can public key auth"
msgstr "可以使用公钥认证"
#: users/serializers/user.py:166

View File

@ -261,7 +261,7 @@
"CommentHelpText": "Note: Remarks will be displayed when hovered over in the Luna page's user authorization asset tree. Ordinary users can view, please do not fill in sensitive information.",
"CommunityEdition": "Community Version",
"Component": "Component",
"ComponentMonitor": "Component Monitoring",
"ComponentMonitor": "Monitoring",
"ConceptContent": "I want you to act like a Python interpreter. I will give you Python code, and you will execute it. Do not provide any explanations. Respond with nothing except the output of the code.",
"ConceptTitle": "🤔 Python Interpreter",
"Config": "Settings",

View File

@ -6,8 +6,8 @@ class TerminalSettingSerializer(serializers.Serializer):
PREFIX_TITLE = _('Terminal')
SORT_BY_CHOICES = (
('name', _('Hostname')),
('ip', _('IP'))
('name', _('Name')),
('ip', _('Address'))
)
PAGE_SIZE_CHOICES = (
@ -19,23 +19,23 @@ class TerminalSettingSerializer(serializers.Serializer):
('50', '50'),
)
SECURITY_SERVICE_ACCOUNT_REGISTRATION = serializers.BooleanField(
required=True, label=_('Enable terminal register'),
required=True, label=_('Terminal registration'),
help_text=_(
"Allow terminal register, after all terminal setup, you should disable this for security"
)
)
TERMINAL_PASSWORD_AUTH = serializers.BooleanField(required=False, label=_('Password auth'))
TERMINAL_PASSWORD_AUTH = serializers.BooleanField(required=False, label=_("Password auth"))
TERMINAL_PUBLIC_KEY_AUTH = serializers.BooleanField(
required=False, label=_('Public key auth'),
help_text=_('Tips: If use other auth method, like AD/LDAP, you should disable this to '
required=False, label=_("public key auth"),
help_text=_('Information: If use other auth method, like AD/LDAP, you should disable this to '
'avoid being able to log in after deleting')
)
TERMINAL_ASSET_LIST_SORT_BY = serializers.ChoiceField(
SORT_BY_CHOICES, required=False, label=_('List sort by')
SORT_BY_CHOICES, required=False, label=_('Asset list sorting')
)
TERMINAL_ASSET_LIST_PAGE_SIZE = serializers.ChoiceField(
PAGE_SIZE_CHOICES, required=False, label=_('List page size')
PAGE_SIZE_CHOICES, required=False, label=_('Asset list page size')
)
TERMINAL_MAGNUS_ENABLED = serializers.BooleanField(label=_("Enable database proxy"))
TERMINAL_RAZOR_ENABLED = serializers.BooleanField(label=_("Enable Razor"))
TERMINAL_KOKO_SSH_ENABLED = serializers.BooleanField(label=_("Enable SSH Client"))
TERMINAL_MAGNUS_ENABLED = serializers.BooleanField(label="Magnus")
TERMINAL_RAZOR_ENABLED = serializers.BooleanField(label="Razor")
TERMINAL_KOKO_SSH_ENABLED = serializers.BooleanField(label="Koko")