From 29c29b17d41e6eb232eb79921b0525d022df9bdb Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Wed, 10 Jul 2024 19:03:19 +0800 Subject: [PATCH] perf: Translate (#13686) Co-authored-by: feng <1304903146@qq.com> --- apps/i18n/core/en/LC_MESSAGES/django.po | 36 +++++++++++--------- apps/i18n/core/ja/LC_MESSAGES/django.po | 34 ++++++++++-------- apps/i18n/core/zh/LC_MESSAGES/django.po | 34 ++++++++++-------- apps/i18n/core/zh_Hant/LC_MESSAGES/django.po | 34 ++++++++++-------- apps/i18n/lina/en.json | 4 +-- apps/i18n/lina/ja.json | 6 ++-- apps/i18n/lina/zh.json | 8 ++--- apps/i18n/lina/zh_hant.json | 4 +-- apps/jumpserver/api.py | 2 +- 9 files changed, 89 insertions(+), 73 deletions(-) diff --git a/apps/i18n/core/en/LC_MESSAGES/django.po b/apps/i18n/core/en/LC_MESSAGES/django.po index 7df22facf..a05d845e8 100644 --- a/apps/i18n/core/en/LC_MESSAGES/django.po +++ b/apps/i18n/core/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-07-09 16:23+0800\n" +"POT-Creation-Date: 2024-07-10 18:54+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -67,7 +67,7 @@ msgstr "" #: accounts/serializers/automations/change_secret.py:166 #: assets/serializers/automations/base.py:52 audits/const.py:64 #: audits/models.py:64 audits/signal_handlers/activity_log.py:33 -#: common/const/choices.py:18 ops/const.py:74 ops/serializers/celery.py:48 +#: common/const/choices.py:65 ops/const.py:74 ops/serializers/celery.py:48 #: terminal/const.py:78 terminal/models/session/sharing.py:121 #: tickets/views/approve.py:128 msgid "Success" @@ -76,7 +76,7 @@ msgstr "Success" #: accounts/automations/backup_account/handlers.py:221 #: accounts/const/account.py:34 accounts/const/automation.py:109 #: accounts/serializers/automations/change_secret.py:167 audits/const.py:65 -#: audits/signal_handlers/activity_log.py:33 common/const/choices.py:19 +#: audits/signal_handlers/activity_log.py:33 common/const/choices.py:66 #: ops/const.py:76 terminal/const.py:79 xpack/plugins/cloud/const.py:47 msgid "Failed" msgstr "" @@ -305,7 +305,7 @@ msgid "SFTP" msgstr "" #: accounts/const/automation.py:111 assets/serializers/automations/base.py:54 -#: common/const/choices.py:16 terminal/const.py:77 tickets/const.py:29 +#: common/const/choices.py:63 terminal/const.py:77 tickets/const.py:29 #: tickets/const.py:38 msgid "Pending" msgstr "" @@ -597,7 +597,7 @@ msgstr "" #: assets/const/automation.py:8 #: authentication/templates/authentication/passkey.html:173 #: authentication/views/base.py:42 authentication/views/base.py:43 -#: authentication/views/base.py:44 common/const/choices.py:20 +#: authentication/views/base.py:44 common/const/choices.py:67 #: settings/templates/ldap/_msg_import_ldap_user.html:26 msgid "Error" msgstr "" @@ -2533,7 +2533,7 @@ msgstr "" #: terminal/models/session/sharing.py:128 tickets/const.py:25 #: xpack/plugins/cloud/const.py:67 msgid "Finished" -msgstr "結束" +msgstr "" #: audits/const.py:46 settings/serializers/terminal.py:6 #: terminal/models/applet/host.py:26 terminal/models/component/terminal.py:175 @@ -2564,11 +2564,11 @@ msgstr "" msgid "-" msgstr "" -#: audits/handler.py:126 +#: audits/handler.py:128 msgid "Yes" msgstr "" -#: audits/handler.py:126 +#: audits/handler.py:128 msgid "No" msgstr "" @@ -2784,11 +2784,11 @@ msgstr "" msgid "Passkey" msgstr "" -#: audits/tasks.py:130 +#: audits/tasks.py:131 msgid "Clean audits session task log" msgstr "" -#: audits/tasks.py:143 +#: audits/tasks.py:145 msgid "Upload FTP file to external storage" msgstr "" @@ -3768,23 +3768,27 @@ msgstr "" msgid "Request file format may be wrong" msgstr "" -#: common/const/choices.py:10 +#: common/const/choices.py:40 +msgid "China" +msgstr "" + +#: common/const/choices.py:57 msgid "Manual trigger" msgstr "" -#: common/const/choices.py:11 +#: common/const/choices.py:58 msgid "Timing trigger" msgstr "" -#: common/const/choices.py:15 +#: common/const/choices.py:62 msgid "Ready" msgstr "" -#: common/const/choices.py:17 ops/const.py:73 +#: common/const/choices.py:64 ops/const.py:73 msgid "Running" msgstr "" -#: common/const/choices.py:21 +#: common/const/choices.py:68 msgid "Canceled" msgstr "" @@ -8490,7 +8494,7 @@ msgid "" "administrator." msgstr "" -#: users/signal_handlers.py:171 +#: users/signal_handlers.py:170 msgid "Clean up expired user sessions" msgstr "" diff --git a/apps/i18n/core/ja/LC_MESSAGES/django.po b/apps/i18n/core/ja/LC_MESSAGES/django.po index d28089be7..354c96fc5 100644 --- a/apps/i18n/core/ja/LC_MESSAGES/django.po +++ b/apps/i18n/core/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: 2024-07-09 16:23+0800\n" +"POT-Creation-Date: 2024-07-10 18:54+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -67,7 +67,7 @@ msgstr "仕上げ" #: accounts/serializers/automations/change_secret.py:166 #: assets/serializers/automations/base.py:52 audits/const.py:64 #: audits/models.py:64 audits/signal_handlers/activity_log.py:33 -#: common/const/choices.py:18 ops/const.py:74 ops/serializers/celery.py:48 +#: common/const/choices.py:65 ops/const.py:74 ops/serializers/celery.py:48 #: terminal/const.py:78 terminal/models/session/sharing.py:121 #: tickets/views/approve.py:128 msgid "Success" @@ -76,7 +76,7 @@ msgstr "成功" #: accounts/automations/backup_account/handlers.py:221 #: accounts/const/account.py:34 accounts/const/automation.py:109 #: accounts/serializers/automations/change_secret.py:167 audits/const.py:65 -#: audits/signal_handlers/activity_log.py:33 common/const/choices.py:19 +#: audits/signal_handlers/activity_log.py:33 common/const/choices.py:66 #: ops/const.py:76 terminal/const.py:79 xpack/plugins/cloud/const.py:47 msgid "Failed" msgstr "失敗しました" @@ -305,7 +305,7 @@ msgid "SFTP" msgstr "SFTP" #: accounts/const/automation.py:111 assets/serializers/automations/base.py:54 -#: common/const/choices.py:16 terminal/const.py:77 tickets/const.py:29 +#: common/const/choices.py:63 terminal/const.py:77 tickets/const.py:29 #: tickets/const.py:38 msgid "Pending" msgstr "未定" @@ -597,7 +597,7 @@ msgstr "ステータス" #: assets/const/automation.py:8 #: authentication/templates/authentication/passkey.html:173 #: authentication/views/base.py:42 authentication/views/base.py:43 -#: authentication/views/base.py:44 common/const/choices.py:20 +#: authentication/views/base.py:44 common/const/choices.py:67 #: settings/templates/ldap/_msg_import_ldap_user.html:26 msgid "Error" msgstr "間違い" @@ -2613,11 +2613,11 @@ msgstr "タスク" msgid "-" msgstr "-" -#: audits/handler.py:126 +#: audits/handler.py:128 msgid "Yes" msgstr "是" -#: audits/handler.py:126 +#: audits/handler.py:128 msgid "No" msgstr "否" @@ -2833,11 +2833,11 @@ msgstr "仮パスワード" msgid "Passkey" msgstr "Passkey" -#: audits/tasks.py:130 +#: audits/tasks.py:131 msgid "Clean audits session task log" msgstr "資産監査セッションタスクログのクリーンアップ" -#: audits/tasks.py:143 +#: audits/tasks.py:145 msgid "Upload FTP file to external storage" msgstr "外部ストレージへのFTPファイルのアップロード" @@ -3849,23 +3849,27 @@ msgstr "パスワードでログインしてからWeComをバインドしてく msgid "Request file format may be wrong" msgstr "リクエストファイルの形式が間違っている可能性があります" -#: common/const/choices.py:10 +#: common/const/choices.py:40 +msgid "China" +msgstr "中国" + +#: common/const/choices.py:57 msgid "Manual trigger" msgstr "手動トリガー" -#: common/const/choices.py:11 +#: common/const/choices.py:58 msgid "Timing trigger" msgstr "タイミングトリガー" -#: common/const/choices.py:15 +#: common/const/choices.py:62 msgid "Ready" msgstr "の準備を" -#: common/const/choices.py:17 ops/const.py:73 +#: common/const/choices.py:64 ops/const.py:73 msgid "Running" msgstr "ランニング" -#: common/const/choices.py:21 +#: common/const/choices.py:68 msgid "Canceled" msgstr "キャンセル" @@ -8801,7 +8805,7 @@ msgstr "" "管理者は「既存のユーザーのみログインを許可」をオンにしており、現在のユーザー" "はユーザーリストにありません。管理者に連絡してください。" -#: users/signal_handlers.py:171 +#: users/signal_handlers.py:170 msgid "Clean up expired user sessions" msgstr "期限切れのユーザー・セッションのパージ" diff --git a/apps/i18n/core/zh/LC_MESSAGES/django.po b/apps/i18n/core/zh/LC_MESSAGES/django.po index a60295b6f..b3334fde1 100644 --- a/apps/i18n/core/zh/LC_MESSAGES/django.po +++ b/apps/i18n/core/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: 2024-07-09 16:23+0800\n" +"POT-Creation-Date: 2024-07-10 18:54+0800\n" "PO-Revision-Date: 2021-05-20 10:54+0800\n" "Last-Translator: ibuler \n" "Language-Team: JumpServer team\n" @@ -66,7 +66,7 @@ msgstr "完成" #: accounts/serializers/automations/change_secret.py:166 #: assets/serializers/automations/base.py:52 audits/const.py:64 #: audits/models.py:64 audits/signal_handlers/activity_log.py:33 -#: common/const/choices.py:18 ops/const.py:74 ops/serializers/celery.py:48 +#: common/const/choices.py:65 ops/const.py:74 ops/serializers/celery.py:48 #: terminal/const.py:78 terminal/models/session/sharing.py:121 #: tickets/views/approve.py:128 msgid "Success" @@ -75,7 +75,7 @@ msgstr "成功" #: accounts/automations/backup_account/handlers.py:221 #: accounts/const/account.py:34 accounts/const/automation.py:109 #: accounts/serializers/automations/change_secret.py:167 audits/const.py:65 -#: audits/signal_handlers/activity_log.py:33 common/const/choices.py:19 +#: audits/signal_handlers/activity_log.py:33 common/const/choices.py:66 #: ops/const.py:76 terminal/const.py:79 xpack/plugins/cloud/const.py:47 msgid "Failed" msgstr "失败" @@ -304,7 +304,7 @@ msgid "SFTP" msgstr "SFTP" #: accounts/const/automation.py:111 assets/serializers/automations/base.py:54 -#: common/const/choices.py:16 terminal/const.py:77 tickets/const.py:29 +#: common/const/choices.py:63 terminal/const.py:77 tickets/const.py:29 #: tickets/const.py:38 msgid "Pending" msgstr "待定的" @@ -596,7 +596,7 @@ msgstr "状态" #: assets/const/automation.py:8 #: authentication/templates/authentication/passkey.html:173 #: authentication/views/base.py:42 authentication/views/base.py:43 -#: authentication/views/base.py:44 common/const/choices.py:20 +#: authentication/views/base.py:44 common/const/choices.py:67 #: settings/templates/ldap/_msg_import_ldap_user.html:26 msgid "Error" msgstr "错误" @@ -2590,11 +2590,11 @@ msgstr "任务" msgid "-" msgstr "-" -#: audits/handler.py:126 +#: audits/handler.py:128 msgid "Yes" msgstr "是" -#: audits/handler.py:126 +#: audits/handler.py:128 msgid "No" msgstr "否" @@ -2810,11 +2810,11 @@ msgstr "临时密码" msgid "Passkey" msgstr "Passkey" -#: audits/tasks.py:130 +#: audits/tasks.py:131 msgid "Clean audits session task log" msgstr "清理资产审计会话任务日志" -#: audits/tasks.py:143 +#: audits/tasks.py:145 msgid "Upload FTP file to external storage" msgstr "上传 FTP 文件到外部存储" @@ -3799,23 +3799,27 @@ msgstr "请使用密码登录,然后绑定企业微信" msgid "Request file format may be wrong" msgstr "上传的文件格式错误 或 其它类型资源的文件" -#: common/const/choices.py:10 +#: common/const/choices.py:40 +msgid "China" +msgstr "中国" + +#: common/const/choices.py:57 msgid "Manual trigger" msgstr "手动触发" -#: common/const/choices.py:11 +#: common/const/choices.py:58 msgid "Timing trigger" msgstr "定时触发" -#: common/const/choices.py:15 +#: common/const/choices.py:62 msgid "Ready" msgstr "准备" -#: common/const/choices.py:17 ops/const.py:73 +#: common/const/choices.py:64 ops/const.py:73 msgid "Running" msgstr "运行中" -#: common/const/choices.py:21 +#: common/const/choices.py:68 msgid "Canceled" msgstr "取消" @@ -8640,7 +8644,7 @@ msgid "" msgstr "" "管理员已开启'仅允许已存在用户登录',当前用户不在用户列表中,请联系管理员。" -#: users/signal_handlers.py:171 +#: users/signal_handlers.py:170 msgid "Clean up expired user sessions" msgstr "清除过期的用户会话" diff --git a/apps/i18n/core/zh_Hant/LC_MESSAGES/django.po b/apps/i18n/core/zh_Hant/LC_MESSAGES/django.po index a30748e53..02ab73f9f 100644 --- a/apps/i18n/core/zh_Hant/LC_MESSAGES/django.po +++ b/apps/i18n/core/zh_Hant/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: 2024-07-09 16:23+0800\n" +"POT-Creation-Date: 2024-07-10 18:54+0800\n" "PO-Revision-Date: 2021-05-20 10:54+0800\n" "Last-Translator: ibuler \n" "Language-Team: JumpServer team\n" @@ -68,7 +68,7 @@ msgstr "完成" #: accounts/serializers/automations/change_secret.py:166 #: assets/serializers/automations/base.py:52 audits/const.py:64 #: audits/models.py:64 audits/signal_handlers/activity_log.py:33 -#: common/const/choices.py:18 ops/const.py:74 ops/serializers/celery.py:48 +#: common/const/choices.py:65 ops/const.py:74 ops/serializers/celery.py:48 #: terminal/const.py:78 terminal/models/session/sharing.py:121 #: tickets/views/approve.py:128 msgid "Success" @@ -77,7 +77,7 @@ msgstr "成功" #: accounts/automations/backup_account/handlers.py:221 #: accounts/const/account.py:34 accounts/const/automation.py:109 #: accounts/serializers/automations/change_secret.py:167 audits/const.py:65 -#: audits/signal_handlers/activity_log.py:33 common/const/choices.py:19 +#: audits/signal_handlers/activity_log.py:33 common/const/choices.py:66 #: ops/const.py:76 terminal/const.py:79 xpack/plugins/cloud/const.py:47 msgid "Failed" msgstr "失敗" @@ -306,7 +306,7 @@ msgid "SFTP" msgstr "SFTP" #: accounts/const/automation.py:111 assets/serializers/automations/base.py:54 -#: common/const/choices.py:16 terminal/const.py:77 tickets/const.py:29 +#: common/const/choices.py:63 terminal/const.py:77 tickets/const.py:29 #: tickets/const.py:38 msgid "Pending" msgstr "待定的" @@ -598,7 +598,7 @@ msgstr "狀態" #: assets/const/automation.py:8 #: authentication/templates/authentication/passkey.html:173 #: authentication/views/base.py:42 authentication/views/base.py:43 -#: authentication/views/base.py:44 common/const/choices.py:20 +#: authentication/views/base.py:44 common/const/choices.py:67 #: settings/templates/ldap/_msg_import_ldap_user.html:26 msgid "Error" msgstr "錯誤" @@ -2592,11 +2592,11 @@ msgstr "任務" msgid "-" msgstr "-" -#: audits/handler.py:126 +#: audits/handler.py:128 msgid "Yes" msgstr "是" -#: audits/handler.py:126 +#: audits/handler.py:128 msgid "No" msgstr "否" @@ -2812,11 +2812,11 @@ msgstr "臨時密碼" msgid "Passkey" msgstr "Passkey" -#: audits/tasks.py:130 +#: audits/tasks.py:131 msgid "Clean audits session task log" msgstr "清理資產審計會話任務日誌" -#: audits/tasks.py:143 +#: audits/tasks.py:145 msgid "Upload FTP file to external storage" msgstr "上傳 FTP 文件到外部儲存" @@ -3801,23 +3801,27 @@ msgstr "請使用密碼登錄,然後綁定企業微信" msgid "Request file format may be wrong" msgstr "上傳的檔案格式錯誤 或 其它類型資源的文件" -#: common/const/choices.py:10 +#: common/const/choices.py:40 +msgid "China" +msgstr "中國" + +#: common/const/choices.py:57 msgid "Manual trigger" msgstr "手動觸發" -#: common/const/choices.py:11 +#: common/const/choices.py:58 msgid "Timing trigger" msgstr "定時觸發" -#: common/const/choices.py:15 +#: common/const/choices.py:62 msgid "Ready" msgstr "準備" -#: common/const/choices.py:17 ops/const.py:73 +#: common/const/choices.py:64 ops/const.py:73 msgid "Running" msgstr "運行中" -#: common/const/choices.py:21 +#: common/const/choices.py:68 msgid "Canceled" msgstr "取消" @@ -8652,7 +8656,7 @@ msgid "" msgstr "" "管理員已開啟'僅允許已存在用戶登錄',當前用戶不在用戶列表中,請聯絡管理員。" -#: users/signal_handlers.py:171 +#: users/signal_handlers.py:170 msgid "Clean up expired user sessions" msgstr "清除過期的用戶會話" diff --git a/apps/i18n/lina/en.json b/apps/i18n/lina/en.json index 1675cda22..ce0ccd166 100644 --- a/apps/i18n/lina/en.json +++ b/apps/i18n/lina/en.json @@ -1308,7 +1308,7 @@ "UserAclLists": "Login ACLs", "UserAssetActivity": "User/Asset activity", "UserCreate": "Create user", - "UserData": "User", + "UserData": "User data", "UserDetail": "User details", "UserGroupCreate": "Create user group", "UserGroupDetail": "User group details", @@ -1333,7 +1333,7 @@ "Users": "User", "UsersAmount": "User", "UsersAndUserGroups": "Users/groups", - "UsersTotal": "Total accounts", + "UsersTotal": "Total users", "Valid": "Valid", "Variable": "Variable", "VariableHelpText": "You can use {{ key }} to read built-in variables in commands", diff --git a/apps/i18n/lina/ja.json b/apps/i18n/lina/ja.json index 03e7e9a44..d4e1fdc74 100644 --- a/apps/i18n/lina/ja.json +++ b/apps/i18n/lina/ja.json @@ -714,7 +714,7 @@ "LoginSucceeded": "ログイン成功", "LoginTitleTip": "ヒント:企業版ユーザーのSSHログイン KoKo ログインページに表示されます(例:JumpServerオープンソースバスチオンへようこそ)", "LoginUserRanking": "ログインアカウントランキング", - "LoginUserToday": "本日のログインアカウント数", + "LoginUserToday": "今日のログインユーザー数", "LoginUsers": "アクティブなアカウント", "LogoIndexTip": "ヒント:管理ページの左上に表示されます(推奨画像サイズ:185px*55px)", "LogoLogoutTip": "ヒント:これは、エンタープライズ版ユーザーのWebターミナルページに表示されます(推奨画像サイズ:82px*82px)", @@ -1348,7 +1348,7 @@ "UserAclLists": "ユーザーログインルール", "UserAssetActivity": "アカウント/アクティブアセット状況", "UserCreate": "ユーザーを作成する", - "UserData": "アカウントデータ", + "UserData": "ユーザーデータ", "UserDetail": "ユーザーの詳細", "UserGroupCreate": "ユーザーグループの作成", "UserGroupDetail": "ユーザーグループ詳細", @@ -1373,7 +1373,7 @@ "Users": "ユーザー", "UsersAmount": "ユーザー", "UsersAndUserGroups": "ユーザー/ユーザーグループ", - "UsersTotal": "アカウントの総数", + "UsersTotal": "総ユーザー数", "Valid": "有効", "Variable": "変数", "VariableHelpText": "コマンド中で {{ key }} を使用して内蔵変数を読み取ることができます", diff --git a/apps/i18n/lina/zh.json b/apps/i18n/lina/zh.json index bdd9b60a4..be47070d2 100644 --- a/apps/i18n/lina/zh.json +++ b/apps/i18n/lina/zh.json @@ -246,7 +246,7 @@ "CeleryTaskLog": "Celery任务日志", "Certificate": "证书", "CertificateKey": "客户端密钥", - "ChangeCredentials": "改密", + "ChangeCredentials": "账号改密", "ChangeCredentialsHelpText": "定时修改账号密钥密码。账号随机生成密码,并同步到目标资产,如果同步成功,更新该账号的密码", "ChangeField": "变更字段", "ChangeOrganization": "更改组织", @@ -691,7 +691,7 @@ "LoginSucceeded": "登录成功", "LoginTitleTip": "提示:将会显示在企业版用户 SSH 登录 KoKo 登录页面(eg: 欢迎使用JumpServer开源堡垒机)", "LoginUserRanking": "登录账号排名", - "LoginUserToday": "今日登录账号数", + "LoginUserToday": "今日登录用户数", "LoginUsers": "活跃账号", "LogoIndexTip": "提示:将会显示在管理页面左上方(建议图片大小为: 185px*55px)", "LogoLogoutTip": "提示:将会显示在企业版用户的 Web 终端页面(建议图片大小为:82px*82px)", @@ -1310,7 +1310,7 @@ "UserAclLists": "用户登录规则", "UserAssetActivity": "账号/资产活跃情况", "UserCreate": "创建用户", - "UserData": "账号数据", + "UserData": "用户数据", "UserDetail": "用户详情", "UserGroupCreate": "创建用户组", "UserGroupDetail": "用户组详情", @@ -1335,7 +1335,7 @@ "Users": "用户", "UsersAmount": "用户", "UsersAndUserGroups": "用户/用户组", - "UsersTotal": "账号总数", + "UsersTotal": "用户总数", "Valid": "有效", "Variable": "变量", "VariableHelpText": "您可以在命令中使用 {{ key }} 读取内置变量", diff --git a/apps/i18n/lina/zh_hant.json b/apps/i18n/lina/zh_hant.json index 9bd1ecec3..a5664b662 100644 --- a/apps/i18n/lina/zh_hant.json +++ b/apps/i18n/lina/zh_hant.json @@ -332,7 +332,7 @@ "CeleryTaskLog": "Celery任務日誌", "Certificate": "證書", "CertificateKey": "用戶端金鑰", - "ChangeCredentials": "改密", + "ChangeCredentials": "帳號改密", "ChangeCredentialsHelpText": "定時修改帳號密鑰密碼。帳號隨機生成密碼,並同步到目標資產,如果同步成功,更新該帳號的密碼", "ChangeField": "變更欄位", "ChangeOrganization": "更改組織", @@ -1726,7 +1726,7 @@ "UserAclLists": "用戶登入規則", "UserAssetActivity": "用戶/資產活躍情況", "UserCreate": "創建用戶", - "UserData": "用戶數據", + "UserData": "使用者資料", "UserDetail": "用戶詳情", "UserFirstLogin": "首次登入", "UserGroupCreate": "創建用戶組", diff --git a/apps/jumpserver/api.py b/apps/jumpserver/api.py index f50e52d2e..eb7bbd9e0 100644 --- a/apps/jumpserver/api.py +++ b/apps/jumpserver/api.py @@ -106,7 +106,7 @@ class DateTimeMixin: @lazyproperty def user_login_logs_on_the_system_queryset(self): - qs = UserLoginLog.objects.all() + qs = UserLoginLog.objects.filter(status=LoginStatusChoices.success) qs = self.get_logs_queryset_filter(qs, 'datetime') queryset = qs.filter(username__in=construct_userlogin_usernames(self.users)) return queryset