perf: notification i18n

pull/13305/head
wangruidong 2024-05-24 15:42:12 +08:00 committed by w940853815
parent 8ebdd59e00
commit 0ea2339ad5
18 changed files with 173 additions and 124 deletions

View File

@ -39,7 +39,7 @@ class UserLoginReminderMsg(UserMessage):
class AssetLoginReminderMsg(UserMessage):
subject = _('Asset login reminder')
subject = _('User login alert for asset')
def __init__(self, user, asset: Asset, login_user: User, account: Account, input_username):
self.asset = asset

View File

@ -1,13 +1,16 @@
{% load i18n %}
<h3>{% trans 'Respectful' %}: {{ recipient.name }}[{{ recipient.username }}]</h3>
<h3>{% trans 'Dear' %}: {{ recipient.name }}[{{ recipient.username }}]</h3>
<hr>
<p><strong>{% trans 'User' %}:</strong> [{{ name }}({{ username }})]</p>
<p><strong>{% trans 'Assets' %}:</strong> [{{ asset }}]</p>
<p><strong>{% trans 'Account' %}:</strong> [{{ account_name }}({{ account }})]</p>
<p>{% trans 'We would like to inform you that a user has recently logged into the following asset:' %}<p>
<p><strong>{% trans 'Asset details' %}:</strong></p>
<ul>
<li><strong>{% trans 'User' %}:</strong> [{{ name }}({{ username }})]</li>
<li><strong>{% trans 'Assets' %}:</strong> [{{ asset }}]</li>
<li><strong>{% trans 'Account' %}:</strong> [{{ account_name }}({{ account }})]</li>
</ul>
<hr>
<p>{% trans 'The user has just logged in to the asset. Please ensure that this is an authorized operation. If you suspect that this is an unauthorized access, please take appropriate measures immediately.' %}</p>
<p>{% trans 'Thank you' %}</p>
<p>{% trans 'Please review the login activity to ensure the security and proper usage of the asset. If you did not authorize this login or if you notice any suspicious activity, please take the necessary actions immediately.' %}</p>
<p>{% trans 'Thank you for your attention to this matter' %}</p>

View File

@ -1,14 +1,16 @@
{% load i18n %}
<h3>{% trans 'Respectful' %}: {{ recipient.name }}[{{ recipient.username }}]</h3>
<h3>{% trans 'Dear' %}: {{ recipient.name }}[{{ recipient.username }}]</h3>
<hr>
<p><strong>{% trans 'User' %}:</strong> [{{ username }}]</p>
<p><strong>IP:</strong> [{{ ip }}]</p>
<p><strong>{% trans 'Login city' %}:</strong> [{{ city }}]</p>
<p><strong>{% trans 'User agent' %}:</strong> [{{ user_agent }}]</p>
<p>{% trans 'We would like to inform you that a user has recently logged:' %}<p>
<p><strong>{% trans 'User details' %}:</strong></p>
<ul>
<li><strong>{% trans 'User' %}:</strong> [{{ username }}]</li>
<li><strong>IP:</strong> [{{ ip }}]</li>
<li><strong>{% trans 'Login city' %}:</strong> [{{ city }}]</li>
<li><strong>{% trans 'User agent' %}:</strong> [{{ user_agent }}]</li>
</ul>
<hr>
<p>{% trans 'The user has just successfully logged into the system. Please ensure that this is an authorized operation. If you suspect that this is an unauthorized access, please take appropriate measures immediately.' %}</p>
<p>{% trans 'Thank you' %}</p>
<p>{% trans 'Please review the login activity to ensure the security and proper usage of the asset. If you did not authorize this login or if you notice any suspicious activity, please take the necessary actions immediately.' %}</p>
<p>{% trans 'Thank you for your attention to this matter' %}</p>

View File

@ -1,15 +1,15 @@
{% load i18n %}
<p>{% trans 'Hello' %} {{ name }},</p>
<p>{% trans 'Dear' %} {{ name }},</p>
<p>
{% trans 'Your password has just been successfully updated' %}
</p>
<p>
<b>{% trans 'IP' %}:</b> {{ ip_address }} <br />
<b>{% trans 'IP' %}:</b> {{ ip_address }} <br/>
<b>{% trans 'Browser' %}:</b> {{ browser }}
</p>
-
<p>
{% trans 'If the password update was not initiated by you, your account may have security issues' %} <br />
{% trans 'If the password update was not initiated by you, your account may have security issues' %} <br/>
{% trans 'If you have any questions, you can contact the administrator' %}
</p>

View File

@ -1,15 +1,15 @@
{% load i18n %}
<p>{% trans 'Hello' %} {{ name }},</p>
<p>{% trans 'Dear' %} {{ name }},</p>
<p>
{% trans 'Your public key has just been successfully updated' %}
</p>
<p>
<b>{% trans 'IP' %}:</b> {{ ip_address }} <br />
<b>{% trans 'IP' %}:</b> {{ ip_address }} <br/>
<b>{% trans 'Browser' %}:</b> {{ browser }}
</p>
-
<p>
{% trans 'If the public key update was not initiated by you, your account may have security issues' %} <br />
{% trans 'If the public key update was not initiated by you, your account may have security issues' %} <br/>
{% trans 'If you have any questions, you can contact the administrator' %}
</p>

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-05-22 18:28+0800\n"
"POT-Creation-Date: 2024-05-24 10:40+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"
@ -848,7 +848,7 @@ msgstr ""
#: accounts/serializers/account/account.py:453 acls/serializers/base.py:116
#: acls/templates/acls/asset_login_reminder.html:5
#: acls/templates/acls/user_login_reminder.html:5
#: acls/templates/acls/user_login_reminder.html:7
#: assets/models/cmd_filter.py:24 assets/models/label.py:16 audits/models.py:54
#: audits/models.py:90 audits/models.py:172 audits/models.py:269
#: audits/serializers.py:171 authentication/models/connection_token.py:32
@ -1084,7 +1084,6 @@ msgstr ""
#: accounts/templates/accounts/change_secret_failed_info.html:5
#: acls/templates/acls/asset_login_reminder.html:3
#: acls/templates/acls/user_login_reminder.html:3
msgid "Respectful"
msgstr ""
@ -1247,7 +1246,7 @@ msgid "User login reminder"
msgstr ""
#: acls/notifications.py:42
msgid "Asset login reminder"
msgid "User login alert for asset"
msgstr ""
#: acls/serializers/base.py:11 acls/serializers/login_acl.py:11
@ -1307,27 +1306,44 @@ msgid ""
msgstr ""
#: acls/templates/acls/asset_login_reminder.html:12
#: acls/templates/acls/user_login_reminder.html:13
msgid "Thank you"
msgstr ""
#: acls/templates/acls/user_login_reminder.html:7 audits/models.py:194
#: acls/templates/acls/user_login_reminder.html:3
msgid "Dear"
msgstr ""
#: acls/templates/acls/user_login_reminder.html:5
msgid ""
"We would like to inform you that a user has recently logged into the "
"following asset:"
msgstr ""
#: acls/templates/acls/user_login_reminder.html:6
msgid "Asset details"
msgstr ""
#: acls/templates/acls/user_login_reminder.html:9 audits/models.py:194
#: audits/models.py:263
#: authentication/templates/authentication/_msg_different_city.html:11
#: tickets/models/ticket/login_confirm.py:11
msgid "Login city"
msgstr ""
#: acls/templates/acls/user_login_reminder.html:8 audits/models.py:197
#: acls/templates/acls/user_login_reminder.html:10 audits/models.py:197
#: audits/models.py:264 audits/serializers.py:68
msgid "User agent"
msgstr ""
#: acls/templates/acls/user_login_reminder.html:11
#: acls/templates/acls/user_login_reminder.html:13
msgid ""
"The user has just successfully logged into the system. Please ensure that "
"this is an authorized operation. If you suspect that this is an unauthorized "
"access, please take appropriate measures immediately."
"Please review the login activity to ensure the security and proper usage of "
"the asset. If you did not authorize this login or if you notice any "
"suspicious activity, please take the necessary actions immediately."
msgstr ""
#: acls/templates/acls/user_login_reminder.html:15
msgid "Thank you for your attention to this matter"
msgstr ""
#: assets/api/asset/asset.py:180
@ -4351,12 +4367,12 @@ msgid "Server performance"
msgstr ""
#: ops/notifications.py:25
msgid "Terminal health check warning"
msgid "Component health check warning"
msgstr ""
#: ops/notifications.py:70
#, python-brace-format
msgid "The terminal is offline: {name}"
msgid "The component is offline: {name}"
msgstr ""
#: ops/notifications.py:75
@ -4646,7 +4662,7 @@ msgid "day"
msgstr ""
#: perms/notifications.py:15
msgid "You permed assets is about to expire"
msgid "The asset you authorized is about to expire"
msgstr ""
#: perms/notifications.py:20
@ -6125,7 +6141,7 @@ msgid "Registration periodic import ldap user task"
msgstr ""
#: settings/templates/ldap/_msg_import_ldap_user.html:2
msgid "Sync task Finish"
msgid "Sync task finish"
msgstr ""
#: settings/templates/ldap/_msg_import_ldap_user.html:6

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-05-22 18:28+0800\n"
"POT-Creation-Date: 2024-05-24 11:04+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"
@ -315,7 +315,7 @@ msgstr "ソース ID"
#: accounts/serializers/automations/change_secret.py:110
#: accounts/serializers/automations/change_secret.py:141
#: accounts/templates/accounts/change_secret_failed_info.html:12
#: acls/serializers/base.py:124 acls/templates/acls/asset_login_reminder.html:7
#: acls/serializers/base.py:124 acls/templates/acls/asset_login_reminder.html:9
#: assets/serializers/gateway.py:28 audits/models.py:59
#: authentication/api/connection_token.py:411 ops/models/base.py:18
#: perms/models/asset_permission.py:75 terminal/backends/command/models.py:18
@ -840,7 +840,7 @@ msgstr "編集済み"
#: accounts/serializers/account/account.py:273
#: accounts/serializers/automations/base.py:22 acls/models/base.py:97
#: acls/templates/acls/asset_login_reminder.html:6
#: acls/templates/acls/asset_login_reminder.html:8
#: assets/models/automations/base.py:19
#: assets/serializers/automations/base.py:20
#: authentication/api/connection_token.py:410 ops/models/base.py:17
@ -871,8 +871,8 @@ msgid "ID"
msgstr "ID"
#: accounts/serializers/account/account.py:453 acls/serializers/base.py:116
#: acls/templates/acls/asset_login_reminder.html:5
#: acls/templates/acls/user_login_reminder.html:5
#: acls/templates/acls/asset_login_reminder.html:7
#: acls/templates/acls/user_login_reminder.html:8
#: assets/models/cmd_filter.py:24 assets/models/label.py:16 audits/models.py:54
#: audits/models.py:90 audits/models.py:172 audits/models.py:269
#: audits/serializers.py:171 authentication/models/connection_token.py:32
@ -1115,8 +1115,6 @@ msgid "Task execution id"
msgstr "タスク実行ID"
#: accounts/templates/accounts/change_secret_failed_info.html:5
#: acls/templates/acls/asset_login_reminder.html:3
#: acls/templates/acls/user_login_reminder.html:3
msgid "Respectful"
msgstr "尊敬する"
@ -1286,7 +1284,7 @@ msgid "User login reminder"
msgstr "ユーザーログインのリマインダ"
#: acls/notifications.py:42
msgid "Asset login reminder"
msgid "User login alert for asset"
msgstr "資産ログインのリマインダ"
#: acls/serializers/base.py:11 acls/serializers/login_acl.py:11
@ -1343,42 +1341,57 @@ msgstr "IP"
msgid "Time Period"
msgstr "期間"
#: acls/templates/acls/asset_login_reminder.html:10
#: acls/templates/acls/asset_login_reminder.html:3
#: acls/templates/acls/user_login_reminder.html:3
msgid "Dear"
msgstr "尊敬する"
#: acls/templates/acls/asset_login_reminder.html:5
msgid ""
"The user has just logged in to the asset. Please ensure that this is an "
"authorized operation. If you suspect that this is an unauthorized access, "
"please take appropriate measures immediately."
msgstr ""
"ユーザーは資産にログインしています。許可されたアクションであることを確認して"
"ください。不正アクセスが疑われる場合は、すぐに適切な措置を取ってください。"
"We would like to inform you that a user has recently logged into the "
"following asset:"
msgstr "以下の資産にユーザーが最近ログインしたことをお知らせいたします。"
#: acls/templates/acls/asset_login_reminder.html:6
msgid "Asset details"
msgstr "資産詳細"
#: acls/templates/acls/asset_login_reminder.html:12
#: acls/templates/acls/user_login_reminder.html:13
msgid "Thank you"
msgstr "ありがとうございます。"
#: acls/templates/acls/user_login_reminder.html:15
msgid ""
"Please review the login activity to ensure the security and proper usage of "
"the asset. If you did not authorize this login or if you notice any "
"suspicious activity, please take the necessary actions immediately."
msgstr ""
"資産のセキュリティと適切な使用を確保するために、ログイン活動を確認してくださ"
"い。このログインを承認していない場合や、不審な活動に気付いた場合は、直ちに必"
"要な措置を講じてください。"
#: acls/templates/acls/user_login_reminder.html:7 audits/models.py:194
#: acls/templates/acls/asset_login_reminder.html:14
#: acls/templates/acls/user_login_reminder.html:16
msgid "Thank you for your attention to this matter"
msgstr "この件についてのご注意をお願いいたします。"
#: acls/templates/acls/user_login_reminder.html:5
msgid "We would like to inform you that a user has recently logged:"
msgstr "ユーザーが最近ログインしたことをお知らせいたします:"
#: acls/templates/acls/user_login_reminder.html:6
msgid "User details"
msgstr "ユーザー詳細"
#: acls/templates/acls/user_login_reminder.html:10 audits/models.py:194
#: audits/models.py:263
#: authentication/templates/authentication/_msg_different_city.html:11
#: tickets/models/ticket/login_confirm.py:11
msgid "Login city"
msgstr "ログイン都市"
#: acls/templates/acls/user_login_reminder.html:8 audits/models.py:197
#: acls/templates/acls/user_login_reminder.html:11 audits/models.py:197
#: audits/models.py:264 audits/serializers.py:68
msgid "User agent"
msgstr "ユーザーエージェント"
#: acls/templates/acls/user_login_reminder.html:11
msgid ""
"The user has just successfully logged into the system. Please ensure that "
"this is an authorized operation. If you suspect that this is an unauthorized "
"access, please take appropriate measures immediately."
msgstr ""
"ユーザーはシステムに正常にログインしたばかりです。許可されたアクションである"
"ことを確認してください。不正アクセスが疑われる場合は、すぐに適切な措置を取っ"
"てください。"
#: assets/api/asset/asset.py:180
msgid "Cannot create asset directly, you should create a host or other"
msgstr ""
@ -4505,13 +4518,13 @@ msgid "Server performance"
msgstr "サーバーのパフォーマンス"
#: ops/notifications.py:25
msgid "Terminal health check warning"
msgstr "ターミナルヘルスチェックの警告"
msgid "Component health check warning"
msgstr "コンポーネントのヘルスチェック警告"
#: ops/notifications.py:70
#, python-brace-format
msgid "The terminal is offline: {name}"
msgstr "ターミナルはオフラインです: {name}"
msgid "The component is offline: {name}"
msgstr "コンポーネントがオフラインです: {name}"
#: ops/notifications.py:75
#, python-brace-format
@ -4819,7 +4832,7 @@ msgid "day"
msgstr "日"
#: perms/notifications.py:15
msgid "You permed assets is about to expire"
msgid "The asset you authorized is about to expire"
msgstr "パーマ資産の有効期限が近づいています"
#: perms/notifications.py:20
@ -5410,6 +5423,7 @@ msgid "Search filter"
msgstr "ユーザー検索フィルター"
#: settings/serializers/auth/ldap.py:61
#, python-format
msgid "Selection could include (cn|uid|sAMAccountName=%(user)s)"
msgstr "選択は (cnまたはuidまたはsAMAccountName)=%(user)s)"
@ -6388,7 +6402,7 @@ msgid "Registration periodic import ldap user task"
msgstr "登録サイクルLDAPユーザータスクのインポート"
#: settings/templates/ldap/_msg_import_ldap_user.html:2
msgid "Sync task Finish"
msgid "Sync task finish"
msgstr "同期タスクが完了しました"
#: settings/templates/ldap/_msg_import_ldap_user.html:6

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: JumpServer 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-05-22 18:27+0800\n"
"POT-Creation-Date: 2024-05-24 11:04+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"
@ -314,7 +314,7 @@ msgstr "来源 ID"
#: accounts/serializers/automations/change_secret.py:110
#: accounts/serializers/automations/change_secret.py:141
#: accounts/templates/accounts/change_secret_failed_info.html:12
#: acls/serializers/base.py:124 acls/templates/acls/asset_login_reminder.html:7
#: acls/serializers/base.py:124 acls/templates/acls/asset_login_reminder.html:9
#: assets/serializers/gateway.py:28 audits/models.py:59
#: authentication/api/connection_token.py:411 ops/models/base.py:18
#: perms/models/asset_permission.py:75 terminal/backends/command/models.py:18
@ -836,7 +836,7 @@ msgstr "已修改"
#: accounts/serializers/account/account.py:273
#: accounts/serializers/automations/base.py:22 acls/models/base.py:97
#: acls/templates/acls/asset_login_reminder.html:6
#: acls/templates/acls/asset_login_reminder.html:8
#: assets/models/automations/base.py:19
#: assets/serializers/automations/base.py:20
#: authentication/api/connection_token.py:410 ops/models/base.py:17
@ -867,8 +867,8 @@ msgid "ID"
msgstr "ID"
#: accounts/serializers/account/account.py:453 acls/serializers/base.py:116
#: acls/templates/acls/asset_login_reminder.html:5
#: acls/templates/acls/user_login_reminder.html:5
#: acls/templates/acls/asset_login_reminder.html:7
#: acls/templates/acls/user_login_reminder.html:8
#: assets/models/cmd_filter.py:24 assets/models/label.py:16 audits/models.py:54
#: audits/models.py:90 audits/models.py:172 audits/models.py:269
#: audits/serializers.py:171 authentication/models/connection_token.py:32
@ -1106,8 +1106,6 @@ msgid "Task execution id"
msgstr "任务执行 ID"
#: accounts/templates/accounts/change_secret_failed_info.html:5
#: acls/templates/acls/asset_login_reminder.html:3
#: acls/templates/acls/user_login_reminder.html:3
msgid "Respectful"
msgstr "尊敬的"
@ -1272,7 +1270,7 @@ msgid "User login reminder"
msgstr "用户登录提醒"
#: acls/notifications.py:42
msgid "Asset login reminder"
msgid "User login alert for asset"
msgstr "资产登录提醒"
#: acls/serializers/base.py:11 acls/serializers/login_acl.py:11
@ -1328,41 +1326,56 @@ msgstr "IP"
msgid "Time Period"
msgstr "时段"
#: acls/templates/acls/asset_login_reminder.html:10
#: acls/templates/acls/asset_login_reminder.html:3
#: acls/templates/acls/user_login_reminder.html:3
msgid "Dear"
msgstr "尊敬的"
#: acls/templates/acls/asset_login_reminder.html:5
msgid ""
"The user has just logged in to the asset. Please ensure that this is an "
"authorized operation. If you suspect that this is an unauthorized access, "
"please take appropriate measures immediately."
msgstr ""
"用户刚刚在登录资产。请确保这是授权的操作。如果您怀疑这是一个未经授权的访问,"
"请立即采取适当的措施。"
"We would like to inform you that a user has recently logged into the "
"following asset:"
msgstr "我们想通知您,以下资产最近有用户登录:"
#: acls/templates/acls/asset_login_reminder.html:6
msgid "Asset details"
msgstr "资产详情"
#: acls/templates/acls/asset_login_reminder.html:12
#: acls/templates/acls/user_login_reminder.html:13
msgid "Thank you"
msgstr "谢谢"
#: acls/templates/acls/user_login_reminder.html:15
msgid ""
"Please review the login activity to ensure the security and proper usage of "
"the asset. If you did not authorize this login or if you notice any "
"suspicious activity, please take the necessary actions immediately."
msgstr ""
"请您审核此登录活动,以确保资产的安全和正确使用。如果您未授权此次登录或发现任"
"何可疑活动,请立即采取必要的措施。"
#: acls/templates/acls/user_login_reminder.html:7 audits/models.py:194
#: acls/templates/acls/asset_login_reminder.html:14
#: acls/templates/acls/user_login_reminder.html:16
msgid "Thank you for your attention to this matter"
msgstr "感谢您对此事的关注。"
#: acls/templates/acls/user_login_reminder.html:5
msgid "We would like to inform you that a user has recently logged:"
msgstr "我们想通知您,最近有用户登录:"
#: acls/templates/acls/user_login_reminder.html:6
msgid "User details"
msgstr "用户详情"
#: acls/templates/acls/user_login_reminder.html:10 audits/models.py:194
#: audits/models.py:263
#: authentication/templates/authentication/_msg_different_city.html:11
#: tickets/models/ticket/login_confirm.py:11
msgid "Login city"
msgstr "登录城市"
#: acls/templates/acls/user_login_reminder.html:8 audits/models.py:197
#: acls/templates/acls/user_login_reminder.html:11 audits/models.py:197
#: audits/models.py:264 audits/serializers.py:68
msgid "User agent"
msgstr "用户代理"
#: acls/templates/acls/user_login_reminder.html:11
msgid ""
"The user has just successfully logged into the system. Please ensure that "
"this is an authorized operation. If you suspect that this is an unauthorized "
"access, please take appropriate measures immediately."
msgstr ""
"用户刚刚成功登录到系统。请确保这是授权的操作。如果您怀疑这是一个未经授权的访"
"问,请立即采取适当的措施。"
#: assets/api/asset/asset.py:180
msgid "Cannot create asset directly, you should create a host or other"
msgstr "不能直接创建资产, 你应该创建主机或其他资产"
@ -4420,13 +4433,13 @@ msgid "Server performance"
msgstr "监控告警"
#: ops/notifications.py:25
msgid "Terminal health check warning"
msgstr "终端健康状况检查警告"
msgid "Component health check warning"
msgstr "组件健康状况检查警告"
#: ops/notifications.py:70
#, python-brace-format
msgid "The terminal is offline: {name}"
msgstr "终端已离线: {name}"
msgid "The component is offline: {name}"
msgstr "组件已离线: {name}"
#: ops/notifications.py:75
#, python-brace-format
@ -4715,7 +4728,7 @@ msgid "day"
msgstr "天"
#: perms/notifications.py:15
msgid "You permed assets is about to expire"
msgid "The asset you authorized is about to expire"
msgstr "你授权的资产即将到期"
#: perms/notifications.py:20
@ -5291,6 +5304,7 @@ msgid "Search filter"
msgstr "用户过滤器"
#: settings/serializers/auth/ldap.py:61
#, python-format
msgid "Selection could include (cn|uid|sAMAccountName=%(user)s)"
msgstr "可能的选项是(cn或uid或sAMAccountName=%(user)s)"
@ -6230,7 +6244,7 @@ msgid "Registration periodic import ldap user task"
msgstr "注册周期导入 LDAP 用户 任务"
#: settings/templates/ldap/_msg_import_ldap_user.html:2
msgid "Sync task Finish"
msgid "Sync task finish"
msgstr "同步任务完成"
#: settings/templates/ldap/_msg_import_ldap_user.html:6

View File

@ -80,7 +80,7 @@
"All": "All",
"AllAccountTip": "All accounts already added on the asset",
"AllAccounts": "All",
"AllClickRead": "All marked as read",
"AllClickRead": "Mark all as read",
"AllMembers": "All members",
"AllowInvalidCert": "Ignore certificate check",
"Announcement": "Announcement",
@ -722,7 +722,7 @@
"NoPermission": "No permissions",
"NoPermission403": "403 no permission",
"NoPermissionVew": "No permission to view the current page",
"NoUnreadMsg": "No unread messages",
"NoUnreadMsg": "You have unread notifications",
"Node": "Node",
"NodeAmount": "Nodes",
"NodeInformation": "Node information",
@ -749,7 +749,7 @@
"OldPublicKey": "Old Public Key",
"OneAssignee": "First-level approver",
"OneAssigneeType": "First-level handler type",
"OneClickReadMsg": "Are you sure you want to mark the current information as read?",
"OneClickReadMsg": "Are you sure you want to mark all as read?",
"OnlineSession": "Online devices",
"OnlineSessionHelpMsg": "Unable to log out of the current session because it is the current user's online session. currently only users logged in via web are being logged.",
"OnlineSessions": "Online sessions",

View File

@ -752,7 +752,7 @@
"OldPublicKey": "旧 SSH 公開鍵",
"OneAssignee": "一次審査員",
"OneAssigneeType": "一次受理者タイプ",
"OneClickReadMsg": "現在の情報をすべて既読にしますか?",
"OneClickReadMsg": "すべてを既読にしますか?",
"OnlineSession": "オンラインユーザー",
"OnlineSessionHelpMsg": "現在のセッションをオフラインにすることはできません。そのため、現在のユーザーがオンラインセッションです。現在、Webでログインするユーザーだけが記録されます。",
"OnlineSessions": "オンラインセッション数",

View File

@ -739,7 +739,7 @@
"NewPublicKey": "新 SSH 公钥",
"OneAssignee": "一级受理人",
"OneAssigneeType": "一级受理人类型",
"OneClickReadMsg": "你确定要将当前信息标记为已读吗?",
"OneClickReadMsg": "你确定全部标记为已读吗?",
"OnlineSession": "在线用户",
"OnlineSessionHelpMsg": "无法下线当前会话,因为该会话是当前用户的在线会话。当前只记录以 Web 方式登录的用户。",
"OnlineSessions": "在线会话数",

View File

@ -864,7 +864,7 @@
"OneAssignee": "一級受理人",
"OneAssigneeType": "一級受理人類型",
"OneClickRead": "當前已讀",
"OneClickReadMsg": "你確定要將當前資訊標記為已讀嗎?",
"OneClickReadMsg": "你確定要全部標記為已讀嗎?",
"OnlineSession": "在線用戶",
"OnlineSessionHelpMsg": "無法下線當前會話,因為該會話是當前用戶的在線會話。當前只記錄以 Web 方式登入的用戶。",
"OnlineSessions": "在線會話數",

View File

@ -543,7 +543,7 @@ class Config(dict):
'PERM_EXPIRED_CHECK_PERIODIC': 60 * 60,
'PERM_TREE_REGEN_INTERVAL': 1,
'FLOWER_URL': "127.0.0.1:5555",
'LANGUAGE_CODE': 'zh',
'LANGUAGE_CODE': 'en',
'TIME_ZONE': 'Asia/Shanghai',
'FORCE_SCRIPT_NAME': '',
'SESSION_COOKIE_SECURE': False,

View File

@ -22,7 +22,7 @@ class ServerPerformanceMessage(SystemMessage):
self.terms_with_errors = terms_with_errors
def get_html_msg(self) -> dict:
subject = gettext("Terminal health check warning")
subject = gettext("Component health check warning")
context = {
'terms_with_errors': self.terms_with_errors
}
@ -55,7 +55,7 @@ class ServerPerformanceMessage(SystemMessage):
for item, data in items_mapper.items():
msg = data['alarm_msg_format']
max_threshold = data['max_threshold']
value = 123 // i+1
value = 123 // i + 1
msg = msg.format(max_threshold=max_threshold, value=value, name=term.name)
errors.append(msg)
terms_with_errors.append([term, errors])
@ -67,7 +67,7 @@ class ServerPerformanceCheckUtil(object):
'is_alive': {
'default': False,
'max_threshold': False,
'alarm_msg_format': _('The terminal is offline: {name}')
'alarm_msg_format': _('The component is offline: {name}')
},
'disk_used': {
'default': 0,

View File

@ -12,7 +12,7 @@ class PermedAssetsWillExpireUserMsg(UserMessage):
self.day_count = _('today') if day_count == 0 else str(day_count) + _('day')
def get_html_msg(self) -> dict:
subject = _("You permed assets is about to expire")
subject = _("The asset you authorized is about to expire")
context = {
'name': self.user.name,
'count': self.day_count,

View File

@ -1,6 +1,6 @@
{% load i18n %}
<p>
{% trans 'Hello' %} {{ name }},
{% trans 'Dear' %} {{ name }},
</p>
<p>

View File

@ -1,5 +1,5 @@
{% load i18n %}
<p>{% trans "Sync task Finish" %}</p>
<p>{% trans "Sync task finish" %}</p>
<b>{% trans 'Time' %}:</b>
<ul>
<li>{% trans 'Date start' %}: {{ start_time }}</li>

View File

@ -1,10 +1,10 @@
{% load i18n %}
<p>
{% trans 'Hello' %} {{ name }},
{% trans 'Dear' %} {{ name }},
</p>
<p>
{% trans 'Your MFA has been reset by site administrator' %} <br />
{% trans 'Your MFA has been reset by site administrator' %} <br/>
{% trans 'Please click the link below to set' %}
<br>
<br>