feat: 支持配置资产连接默认打开方式 (#12781)

Co-authored-by: feng <1304903146@qq.com>
pull/12784/head
fit2bot 9 months ago committed by GitHub
parent 4108415894
commit a3658136e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:d04781f4f0b0de3ac5f707febb222e239553d6103bca0cec41ab2fd5ab044571 oid sha256:3294ac306300777a26f8bb7e637f0c7253a1bd63d7e99fe7394c43c4686eb57a
size 173799 size 174018

@ -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: 2024-02-27 16:09+0800\n" "POT-Creation-Date: 2024-03-08 10:34+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"
@ -1383,7 +1383,8 @@ msgid "Unable to connect to port {port} on {address}"
msgstr "{port} のポート {address} に接続できません" msgstr "{port} のポート {address} に接続できません"
#: assets/automations/ping_gateway/manager.py:58 #: assets/automations/ping_gateway/manager.py:58
#: authentication/middleware.py:93 xpack/plugins/cloud/providers/fc.py:47 #: authentication/backends/oauth2/views.py:60 authentication/middleware.py:93
#: xpack/plugins/cloud/providers/fc.py:47
msgid "Authentication failed" msgid "Authentication failed"
msgstr "認証に失敗しました" msgstr "認証に失敗しました"
@ -1422,7 +1423,7 @@ msgstr "無効"
#: assets/const/base.py:33 settings/serializers/basic.py:8 #: assets/const/base.py:33 settings/serializers/basic.py:8
#: users/serializers/preference/koko.py:19 #: users/serializers/preference/koko.py:19
#: users/serializers/preference/lina.py:39 #: users/serializers/preference/lina.py:39
#: users/serializers/preference/luna.py:73 #: users/serializers/preference/luna.py:77
msgid "Basic" msgid "Basic"
msgstr "基本" msgstr "基本"
@ -1449,7 +1450,7 @@ msgstr "クラウド サービス"
#: assets/const/category.py:14 assets/models/asset/gpt.py:11 #: assets/const/category.py:14 assets/models/asset/gpt.py:11
#: assets/models/asset/web.py:16 audits/const.py:42 #: assets/models/asset/web.py:16 audits/const.py:42
#: terminal/models/applet/applet.py:27 users/const.py:59 #: terminal/models/applet/applet.py:27 users/const.py:64
msgid "Web" msgid "Web"
msgstr "Web" msgstr "Web"
@ -1749,7 +1750,7 @@ msgid "Domain"
msgstr "ドメイン" msgstr "ドメイン"
#: assets/models/asset/common.py:165 assets/models/automations/base.py:18 #: assets/models/asset/common.py:165 assets/models/automations/base.py:18
#: assets/models/cmd_filter.py:32 assets/models/node.py:549 #: assets/models/cmd_filter.py:32 assets/models/node.py:553
#: perms/models/asset_permission.py:72 perms/serializers/permission.py:37 #: perms/models/asset_permission.py:72 perms/serializers/permission.py:37
#: tickets/models/ticket/apply_asset.py:14 xpack/plugins/cloud/models.py:330 #: tickets/models/ticket/apply_asset.py:14 xpack/plugins/cloud/models.py:330
msgid "Node" msgid "Node"
@ -1889,7 +1890,7 @@ msgstr "デフォルトアセットグループ"
msgid "System" msgid "System"
msgstr "システム" msgstr "システム"
#: assets/models/label.py:19 assets/models/node.py:535 #: assets/models/label.py:19 assets/models/node.py:539
#: assets/serializers/cagegory.py:11 assets/serializers/cagegory.py:18 #: assets/serializers/cagegory.py:11 assets/serializers/cagegory.py:18
#: assets/serializers/cagegory.py:24 #: assets/serializers/cagegory.py:24
#: authentication/models/connection_token.py:29 #: authentication/models/connection_token.py:29
@ -1908,27 +1909,27 @@ msgstr "値"
msgid "Label" msgid "Label"
msgstr "ラベル" msgstr "ラベル"
#: assets/models/node.py:165 #: assets/models/node.py:169
msgid "New node" msgid "New node"
msgstr "新しいノード" msgstr "新しいノード"
#: assets/models/node.py:463 audits/backends/db.py:65 audits/backends/db.py:66 #: assets/models/node.py:467 audits/backends/db.py:65 audits/backends/db.py:66
msgid "empty" msgid "empty"
msgstr "空" msgstr "空"
#: assets/models/node.py:534 perms/models/perm_node.py:28 #: assets/models/node.py:538 perms/models/perm_node.py:28
msgid "Key" msgid "Key"
msgstr "キー" msgstr "キー"
#: assets/models/node.py:536 assets/serializers/node.py:20 #: assets/models/node.py:540 assets/serializers/node.py:20
msgid "Full value" msgid "Full value"
msgstr "フルバリュー" msgstr "フルバリュー"
#: assets/models/node.py:540 perms/models/perm_node.py:30 #: assets/models/node.py:544 perms/models/perm_node.py:30
msgid "Parent key" msgid "Parent key"
msgstr "親キー" msgstr "親キー"
#: assets/models/node.py:552 #: assets/models/node.py:556
msgid "Can match node" msgid "Can match node"
msgstr "ノードを一致させることができます" msgstr "ノードを一致させることができます"
@ -2188,7 +2189,7 @@ msgstr "制約"
msgid "Types" msgid "Types"
msgstr "タイプ" msgstr "タイプ"
#: assets/serializers/domain.py:53 perms/serializers/permission.py:188 #: assets/serializers/domain.py:56 perms/serializers/permission.py:188
msgid "Assets amount" msgid "Assets amount"
msgstr "資産数量" msgstr "資産数量"
@ -2653,11 +2654,11 @@ msgstr "仮パスワード"
msgid "Passkey" msgid "Passkey"
msgstr "Passkey" msgstr "Passkey"
#: audits/tasks.py:109 #: audits/tasks.py:119
msgid "Clean audits session task log" msgid "Clean audits session task log"
msgstr "資産監査セッションタスクログのクリーンアップ" msgstr "資産監査セッションタスクログのクリーンアップ"
#: audits/tasks.py:123 #: audits/tasks.py:133
msgid "Upload FTP file to external storage" msgid "Upload FTP file to external storage"
msgstr "外部ストレージへのFTPファイルのアップロード" msgstr "外部ストレージへのFTPファイルのアップロード"
@ -3274,13 +3275,13 @@ msgid "Show"
msgstr "表示" msgstr "表示"
#: authentication/templates/authentication/_access_key_modal.html:66 #: authentication/templates/authentication/_access_key_modal.html:66
#: users/const.py:37 users/models/user.py:644 users/serializers/profile.py:92 #: users/const.py:42 users/models/user.py:644 users/serializers/profile.py:92
#: users/templates/users/user_verify_mfa.html:36 #: users/templates/users/user_verify_mfa.html:36
msgid "Disable" msgid "Disable"
msgstr "無効化" msgstr "無効化"
#: authentication/templates/authentication/_access_key_modal.html:67 #: authentication/templates/authentication/_access_key_modal.html:67
#: users/const.py:38 users/models/user.py:645 users/serializers/profile.py:93 #: users/const.py:43 users/models/user.py:645 users/serializers/profile.py:93
#: users/templates/users/mfa_setting.html:26 #: users/templates/users/mfa_setting.html:26
#: users/templates/users/mfa_setting.html:68 #: users/templates/users/mfa_setting.html:68
msgid "Enable" msgid "Enable"
@ -3779,7 +3780,7 @@ msgstr "解析ファイルエラー: {}"
msgid "Invalid excel file" msgid "Invalid excel file"
msgstr "無効 excel 書類" msgstr "無効 excel 書類"
#: common/drf/renders/base.py:207 #: common/drf/renders/base.py:208
msgid "" msgid ""
"{} - The encryption password has not been set - please go to personal " "{} - The encryption password has not been set - please go to personal "
"information -> file encryption password to set the encryption password" "information -> file encryption password to set the encryption password"
@ -4057,11 +4058,11 @@ msgstr "投稿サイトニュース"
msgid "No account available" msgid "No account available"
msgstr "利用可能なアカウントがありません" msgstr "利用可能なアカウントがありません"
#: ops/ansible/inventory.py:264 #: ops/ansible/inventory.py:265
msgid "Ansible disabled" msgid "Ansible disabled"
msgstr "Ansible 無効" msgstr "Ansible 無効"
#: ops/ansible/inventory.py:280 #: ops/ansible/inventory.py:281
msgid "Skip hosts below:" msgid "Skip hosts below:"
msgstr "次のホストをスキップします: " msgstr "次のホストをスキップします: "
@ -6392,7 +6393,7 @@ msgid "Home page"
msgstr "ホームページ" msgstr "ホームページ"
#: templates/resource_download.html:18 templates/resource_download.html:33 #: templates/resource_download.html:18 templates/resource_download.html:33
#: users/const.py:60 #: users/const.py:65
msgid "Client" msgid "Client"
msgstr "クライアント" msgstr "クライアント"
@ -7841,11 +7842,18 @@ msgstr "マルチスクリーンディスプレイ"
msgid "Drives redirect" msgid "Drives redirect"
msgstr "ディスクマウント" msgstr "ディスクマウント"
#: users/const.py:64 #: users/const.py:37
msgid "Current window"
msgstr "現在のウィンドウ"
msgid "New window"
msgstr "新しいウィンドウ"
#: users/const.py:69
msgid "Replace" msgid "Replace"
msgstr "置換" msgstr "置換"
#: users/const.py:65 #: users/const.py:70
msgid "Suffix" msgid "Suffix"
msgstr "接尾辞を付ける" msgstr "接尾辞を付ける"
@ -8067,27 +8075,30 @@ msgstr "新しく設定されたパスワードが一致しない"
msgid "Async loading of asset tree" msgid "Async loading of asset tree"
msgstr "非同期ロード資産ツリー" msgstr "非同期ロード資産ツリー"
#: users/serializers/preference/luna.py:33 msgid "Connect default open method"
msgstr "デフォルトの接続オープン方法"
#: users/serializers/preference/luna.py:37
msgid "RDP resolution" msgid "RDP resolution"
msgstr "RDP 解像度" msgstr "RDP 解像度"
#: users/serializers/preference/luna.py:37 #: users/serializers/preference/luna.py:41
msgid "Keyboard layout" msgid "Keyboard layout"
msgstr "キーボードレイアウト" msgstr "キーボードレイアウト"
#: users/serializers/preference/luna.py:41 #: users/serializers/preference/luna.py:45
msgid "RDP client option" msgid "RDP client option"
msgstr "RDPクライアントオプション" msgstr "RDPクライアントオプション"
#: users/serializers/preference/luna.py:45 #: users/serializers/preference/luna.py:49
msgid "RDP color quality" msgid "RDP color quality"
msgstr "" msgstr ""
#: users/serializers/preference/luna.py:49 #: users/serializers/preference/luna.py:53
msgid "Rdp smart size" msgid "Rdp smart size"
msgstr "RDPインテリジェントサイズ" msgstr "RDPインテリジェントサイズ"
#: users/serializers/preference/luna.py:50 #: users/serializers/preference/luna.py:54
msgid "" msgid ""
"Determines whether the client computer should scale the content on the " "Determines whether the client computer should scale the content on the "
"remote computer to fit the window size of the client computer when the " "remote computer to fit the window size of the client computer when the "
@ -8102,27 +8113,27 @@ msgstr ""
# "ウィンドウサイズを変更するときにクライアントコンピュータがクライアントコン" # "ウィンドウサイズを変更するときにクライアントコンピュータがクライアントコン"
# "ピュータのウィンドウサイズに合わせるためにリモートコンピュータ上のコンテンツ" # "ピュータのウィンドウサイズに合わせるためにリモートコンピュータ上のコンテンツ"
# "をスケーリングすべきかどうかを判断する" # "をスケーリングすべきかどうかを判断する"
#: users/serializers/preference/luna.py:55 #: users/serializers/preference/luna.py:59
msgid "Remote application connection method" msgid "Remote application connection method"
msgstr "リモートアプリケーション接続方式" msgstr "リモートアプリケーション接続方式"
#: users/serializers/preference/luna.py:62 #: users/serializers/preference/luna.py:66
msgid "Character terminal font size" msgid "Character terminal font size"
msgstr "文字終端フォントサイズ" msgstr "文字終端フォントサイズ"
#: users/serializers/preference/luna.py:65 #: users/serializers/preference/luna.py:69
msgid "Backspace as Ctrl+H" msgid "Backspace as Ctrl+H"
msgstr "文字終端Backspace As Ctrl+H" msgstr "文字終端Backspace As Ctrl+H"
#: users/serializers/preference/luna.py:68 #: users/serializers/preference/luna.py:72
msgid "Right click quickly paste" msgid "Right click quickly paste"
msgstr "右クリックでクイック貼り付け" msgstr "右クリックでクイック貼り付け"
#: users/serializers/preference/luna.py:74 #: users/serializers/preference/luna.py:78
msgid "Graphics" msgid "Graphics"
msgstr "図形化" msgstr "図形化"
#: users/serializers/preference/luna.py:75 #: users/serializers/preference/luna.py:79
msgid "Command line" msgid "Command line"
msgstr "コマンドライン" msgstr "コマンドライン"
@ -8646,7 +8657,7 @@ msgstr "そして"
msgid "Or" msgid "Or"
msgstr "または" msgstr "または"
#: xpack/plugins/cloud/manager.py:57 #: xpack/plugins/cloud/manager.py:56
msgid "Account unavailable" msgid "Account unavailable"
msgstr "利用できないアカウント" msgstr "利用できないアカウント"

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:e66a6fa05d25f1c502f95001b5ff0d0a310affd32eac939fd7b840845028074f oid sha256:a5a2e571ec46b7ba7f4f4f69287e2c25d4e9319c40a52de3b12ddbefded9b6f8
size 142298 size 142448

@ -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: 2024-02-27 16:09+0800\n" "POT-Creation-Date: 2024-03-08 10:34+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"
@ -1375,7 +1375,8 @@ msgid "Unable to connect to port {port} on {address}"
msgstr "无法连接到 {port} 上的端口 {address}" msgstr "无法连接到 {port} 上的端口 {address}"
#: assets/automations/ping_gateway/manager.py:58 #: assets/automations/ping_gateway/manager.py:58
#: authentication/middleware.py:93 xpack/plugins/cloud/providers/fc.py:47 #: authentication/backends/oauth2/views.py:60 authentication/middleware.py:93
#: xpack/plugins/cloud/providers/fc.py:47
msgid "Authentication failed" msgid "Authentication failed"
msgstr "认证失败" msgstr "认证失败"
@ -1414,7 +1415,7 @@ msgstr "禁用"
#: assets/const/base.py:33 settings/serializers/basic.py:8 #: assets/const/base.py:33 settings/serializers/basic.py:8
#: users/serializers/preference/koko.py:19 #: users/serializers/preference/koko.py:19
#: users/serializers/preference/lina.py:39 #: users/serializers/preference/lina.py:39
#: users/serializers/preference/luna.py:73 #: users/serializers/preference/luna.py:77
msgid "Basic" msgid "Basic"
msgstr "基本" msgstr "基本"
@ -1441,7 +1442,7 @@ msgstr "云服务"
#: assets/const/category.py:14 assets/models/asset/gpt.py:11 #: assets/const/category.py:14 assets/models/asset/gpt.py:11
#: assets/models/asset/web.py:16 audits/const.py:42 #: assets/models/asset/web.py:16 audits/const.py:42
#: terminal/models/applet/applet.py:27 users/const.py:59 #: terminal/models/applet/applet.py:27 users/const.py:64
msgid "Web" msgid "Web"
msgstr "Web" msgstr "Web"
@ -1741,7 +1742,7 @@ msgid "Domain"
msgstr "网域" msgstr "网域"
#: assets/models/asset/common.py:165 assets/models/automations/base.py:18 #: assets/models/asset/common.py:165 assets/models/automations/base.py:18
#: assets/models/cmd_filter.py:32 assets/models/node.py:549 #: assets/models/cmd_filter.py:32 assets/models/node.py:553
#: perms/models/asset_permission.py:72 perms/serializers/permission.py:37 #: perms/models/asset_permission.py:72 perms/serializers/permission.py:37
#: tickets/models/ticket/apply_asset.py:14 xpack/plugins/cloud/models.py:330 #: tickets/models/ticket/apply_asset.py:14 xpack/plugins/cloud/models.py:330
msgid "Node" msgid "Node"
@ -1881,7 +1882,7 @@ msgstr "默认资产组"
msgid "System" msgid "System"
msgstr "系统" msgstr "系统"
#: assets/models/label.py:19 assets/models/node.py:535 #: assets/models/label.py:19 assets/models/node.py:539
#: assets/serializers/cagegory.py:11 assets/serializers/cagegory.py:18 #: assets/serializers/cagegory.py:11 assets/serializers/cagegory.py:18
#: assets/serializers/cagegory.py:24 #: assets/serializers/cagegory.py:24
#: authentication/models/connection_token.py:29 #: authentication/models/connection_token.py:29
@ -1900,27 +1901,27 @@ msgstr "值"
msgid "Label" msgid "Label"
msgstr "标签" msgstr "标签"
#: assets/models/node.py:165 #: assets/models/node.py:169
msgid "New node" msgid "New node"
msgstr "新节点" msgstr "新节点"
#: assets/models/node.py:463 audits/backends/db.py:65 audits/backends/db.py:66 #: assets/models/node.py:467 audits/backends/db.py:65 audits/backends/db.py:66
msgid "empty" msgid "empty"
msgstr "空" msgstr "空"
#: assets/models/node.py:534 perms/models/perm_node.py:28 #: assets/models/node.py:538 perms/models/perm_node.py:28
msgid "Key" msgid "Key"
msgstr "键" msgstr "键"
#: assets/models/node.py:536 assets/serializers/node.py:20 #: assets/models/node.py:540 assets/serializers/node.py:20
msgid "Full value" msgid "Full value"
msgstr "全称" msgstr "全称"
#: assets/models/node.py:540 perms/models/perm_node.py:30 #: assets/models/node.py:544 perms/models/perm_node.py:30
msgid "Parent key" msgid "Parent key"
msgstr "ssh私钥" msgstr "ssh私钥"
#: assets/models/node.py:552 #: assets/models/node.py:556
msgid "Can match node" msgid "Can match node"
msgstr "可以匹配节点" msgstr "可以匹配节点"
@ -2178,7 +2179,7 @@ msgstr "约束"
msgid "Types" msgid "Types"
msgstr "类型" msgstr "类型"
#: assets/serializers/domain.py:53 perms/serializers/permission.py:188 #: assets/serializers/domain.py:56 perms/serializers/permission.py:188
msgid "Assets amount" msgid "Assets amount"
msgstr "资产数量" msgstr "资产数量"
@ -2636,11 +2637,11 @@ msgstr "临时密码"
msgid "Passkey" msgid "Passkey"
msgstr "Passkey" msgstr "Passkey"
#: audits/tasks.py:109 #: audits/tasks.py:119
msgid "Clean audits session task log" msgid "Clean audits session task log"
msgstr "清理资产审计会话任务日志" msgstr "清理资产审计会话任务日志"
#: audits/tasks.py:123 #: audits/tasks.py:133
msgid "Upload FTP file to external storage" msgid "Upload FTP file to external storage"
msgstr "上传 FTP 文件到外部存储" msgstr "上传 FTP 文件到外部存储"
@ -3242,13 +3243,13 @@ msgid "Show"
msgstr "显示" msgstr "显示"
#: authentication/templates/authentication/_access_key_modal.html:66 #: authentication/templates/authentication/_access_key_modal.html:66
#: users/const.py:37 users/models/user.py:644 users/serializers/profile.py:92 #: users/const.py:42 users/models/user.py:644 users/serializers/profile.py:92
#: users/templates/users/user_verify_mfa.html:36 #: users/templates/users/user_verify_mfa.html:36
msgid "Disable" msgid "Disable"
msgstr "禁用" msgstr "禁用"
#: authentication/templates/authentication/_access_key_modal.html:67 #: authentication/templates/authentication/_access_key_modal.html:67
#: users/const.py:38 users/models/user.py:645 users/serializers/profile.py:93 #: users/const.py:43 users/models/user.py:645 users/serializers/profile.py:93
#: users/templates/users/mfa_setting.html:26 #: users/templates/users/mfa_setting.html:26
#: users/templates/users/mfa_setting.html:68 #: users/templates/users/mfa_setting.html:68
msgid "Enable" msgid "Enable"
@ -3735,7 +3736,7 @@ msgstr "解析文件错误: {}"
msgid "Invalid excel file" msgid "Invalid excel file"
msgstr "无效的 excel 文件" msgstr "无效的 excel 文件"
#: common/drf/renders/base.py:207 #: common/drf/renders/base.py:208
msgid "" msgid ""
"{} - The encryption password has not been set - please go to personal " "{} - The encryption password has not been set - please go to personal "
"information -> file encryption password to set the encryption password" "information -> file encryption password to set the encryption password"
@ -4008,11 +4009,11 @@ msgstr "发布站内消息"
msgid "No account available" msgid "No account available"
msgstr "无可用账号" msgstr "无可用账号"
#: ops/ansible/inventory.py:264 #: ops/ansible/inventory.py:265
msgid "Ansible disabled" msgid "Ansible disabled"
msgstr "Ansible 已禁用" msgstr "Ansible 已禁用"
#: ops/ansible/inventory.py:280 #: ops/ansible/inventory.py:281
msgid "Skip hosts below:" msgid "Skip hosts below:"
msgstr "跳过以下主机: " msgstr "跳过以下主机: "
@ -6303,7 +6304,7 @@ msgid "Home page"
msgstr "首页" msgstr "首页"
#: templates/resource_download.html:18 templates/resource_download.html:33 #: templates/resource_download.html:18 templates/resource_download.html:33
#: users/const.py:60 #: users/const.py:65
msgid "Client" msgid "Client"
msgstr "客户端" msgstr "客户端"
@ -7734,11 +7735,18 @@ msgstr "多屏显示"
msgid "Drives redirect" msgid "Drives redirect"
msgstr "磁盘挂载" msgstr "磁盘挂载"
#: users/const.py:64 #: users/const.py:37
msgid "Current window"
msgstr "当前窗口"
msgid "New window"
msgstr "新窗口"
#: users/const.py:69
msgid "Replace" msgid "Replace"
msgstr "替换" msgstr "替换"
#: users/const.py:65 #: users/const.py:70
msgid "Suffix" msgid "Suffix"
msgstr "加后缀" msgstr "加后缀"
@ -7960,29 +7968,32 @@ msgstr "两次密码不一致"
msgid "Async loading of asset tree" msgid "Async loading of asset tree"
msgstr "异步加载资产树" msgstr "异步加载资产树"
#: users/serializers/preference/luna.py:33 msgid "Connect default open method"
msgstr "连接默认打开方式"
#: users/serializers/preference/luna.py:37
msgid "RDP resolution" msgid "RDP resolution"
msgstr "RDP 分辨率" msgstr "RDP 分辨率"
#: users/serializers/preference/luna.py:37 #: users/serializers/preference/luna.py:41
msgid "Keyboard layout" msgid "Keyboard layout"
msgstr "键盘布局" msgstr "键盘布局"
#: users/serializers/preference/luna.py:41 #: users/serializers/preference/luna.py:45
msgid "RDP client option" msgid "RDP client option"
msgstr "RDP 客户端选项" msgstr "RDP 客户端选项"
#: users/serializers/preference/luna.py:45 #: users/serializers/preference/luna.py:49
msgid "RDP color quality" msgid "RDP color quality"
msgstr "" msgstr ""
#: users/serializers/preference/luna.py:49 #: users/serializers/preference/luna.py:53
msgid "Rdp smart size" msgid "Rdp smart size"
msgstr "" msgstr ""
# msgid "Rdp smart size" # msgid "Rdp smart size"
# msgstr "RDP 智能大小" # msgstr "RDP 智能大小"
#: users/serializers/preference/luna.py:50 #: users/serializers/preference/luna.py:54
msgid "" msgid ""
"Determines whether the client computer should scale the content on the " "Determines whether the client computer should scale the content on the "
"remote computer to fit the window size of the client computer when the " "remote computer to fit the window size of the client computer when the "
@ -7991,27 +8002,27 @@ msgstr ""
"确定调整窗口大小时客户端计算机是否应缩放远程计算机上的内容以适应客户端计算机" "确定调整窗口大小时客户端计算机是否应缩放远程计算机上的内容以适应客户端计算机"
"的窗口大小" "的窗口大小"
#: users/serializers/preference/luna.py:55 #: users/serializers/preference/luna.py:59
msgid "Remote application connection method" msgid "Remote application connection method"
msgstr "远程应用连接方式" msgstr "远程应用连接方式"
#: users/serializers/preference/luna.py:62 #: users/serializers/preference/luna.py:66
msgid "Character terminal font size" msgid "Character terminal font size"
msgstr "字符终端字体大小" msgstr "字符终端字体大小"
#: users/serializers/preference/luna.py:65 #: users/serializers/preference/luna.py:69
msgid "Backspace as Ctrl+H" msgid "Backspace as Ctrl+H"
msgstr "字符终端Backspace As Ctrl+H" msgstr "字符终端Backspace As Ctrl+H"
#: users/serializers/preference/luna.py:68 #: users/serializers/preference/luna.py:72
msgid "Right click quickly paste" msgid "Right click quickly paste"
msgstr "右键快速粘贴" msgstr "右键快速粘贴"
#: users/serializers/preference/luna.py:74 #: users/serializers/preference/luna.py:78
msgid "Graphics" msgid "Graphics"
msgstr "图形化" msgstr "图形化"
#: users/serializers/preference/luna.py:75 #: users/serializers/preference/luna.py:79
msgid "Command line" msgid "Command line"
msgstr "命令行" msgstr "命令行"
@ -8522,7 +8533,7 @@ msgstr "与"
msgid "Or" msgid "Or"
msgstr "或" msgstr "或"
#: xpack/plugins/cloud/manager.py:57 #: xpack/plugins/cloud/manager.py:56
msgid "Account unavailable" msgid "Account unavailable"
msgstr "账号无效" msgstr "账号无效"

@ -33,6 +33,11 @@ class RDPClientOption(TextChoices):
DRIVES_REDIRECT = 'drives_redirect', _('Drives redirect') DRIVES_REDIRECT = 'drives_redirect', _('Drives redirect')
class ConnectDefaultOpenMethod(TextChoices):
CURRENT = 'current', _('Current window')
NEW = 'new', _('New window')
class RDPSmartSize(TextChoices): class RDPSmartSize(TextChoices):
DISABLE = '0', _('Disable') DISABLE = '0', _('Disable')
ENABLE = '1', _('Enable') ENABLE = '1', _('Enable')

@ -4,7 +4,7 @@ from django.utils.translation import gettext_lazy as _
from rest_framework import serializers from rest_framework import serializers
from users.const import ( from users.const import (
RDPResolution, RDPSmartSize, KeyboardLayout, RDPResolution, RDPSmartSize, KeyboardLayout, ConnectDefaultOpenMethod,
RDPClientOption, AppletConnectionMethod, RDPColorQuality, RDPClientOption, AppletConnectionMethod, RDPColorQuality,
) )
@ -25,6 +25,10 @@ class BasicSerializer(serializers.Serializer):
is_async_asset_tree = serializers.BooleanField( is_async_asset_tree = serializers.BooleanField(
required=False, default=True, label=_('Async loading of asset tree') required=False, default=True, label=_('Async loading of asset tree')
) )
connect_default_open_method = serializers.ChoiceField(
choices=ConnectDefaultOpenMethod.choices, default=ConnectDefaultOpenMethod.CURRENT,
label=_('Connect default open method'), required=False
)
class GraphicsSerializer(serializers.Serializer): class GraphicsSerializer(serializers.Serializer):

Loading…
Cancel
Save