perf: Translate msg template (#16050)

* fix: Correct translation for device and user limits in django.po

* perf: Translate msg template

---------

Co-authored-by: wangruidong <940853815@qq.com>
This commit is contained in:
fit2bot
2025-09-17 19:04:06 +08:00
committed by GitHub
parent ddacd5fce1
commit eca637c120
6 changed files with 8 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
{% load i18n %}
<h3>{% trans 'Dear' %}: {{ recipient.name }}[{{ recipient.username }}]</h3>
<h3>{% trans 'Dear' %}: {{ recipient_name }}[{{ recipient_username }}]</h3>
<hr>
<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>

View File

@@ -11,8 +11,6 @@
<b>{% trans 'Time' %}:</b> {{ time }}<br>
<b>{% trans 'IP' %}:</b> {{ ip }}
</p>
-
<p>
{% trans 'If the operation is not your own, unbind and change the password.' %}
</p>

View File

@@ -9065,11 +9065,11 @@ msgstr "图标"
#: terminal/serializers/applet_host.py:24
msgid "Per Device (Device number limit)"
msgstr "每用户 (限制设备数量)"
msgstr "每设备 (限制设备数量)"
#: terminal/serializers/applet_host.py:25
msgid "Per User (User number limit)"
msgstr "每设备 (限制用户数量)"
msgstr "每用户 (限制用户数量)"
#: terminal/serializers/applet_host.py:37
msgid "Core API"

View File

@@ -1621,5 +1621,6 @@
"userName": "User name",
"description": "No data yet",
"MsgTemplate": "Msg Template",
"TemplateVariablesHelpText": "You can select a template and use {{ key }} within the template content to read built-in variables.Note: only the {{ }} syntax is supported; other syntaxes such as {% if title %} are not supported."
"TemplateVariablesHelpText": "You can select a template and use {{ key }} within the template content to read built-in variables.Note: only the {{ }} syntax is supported; other syntaxes such as {% if title %} are not supported.",
"ResetSuccessfully": "Reset successfully"
}

View File

@@ -1631,5 +1631,6 @@
"description": "暂无数据",
"MsgTemplate": "消息模板",
"Example": "示例值",
"TemplateVariablesHelpText": "您可以选择一个模板在模板内容中使用 {{ key }} 读取内置变量,注意:只支持 {{ }} 语法,其他语法不支持。例如 {% if title %}"
"TemplateVariablesHelpText": "您可以选择一个模板在模板内容中使用 {{ key }} 读取内置变量,注意:只支持 {{ }} 语法,其他语法不支持。例如 {% if title %}",
"ResetSuccessfully": "重置成功"
}

View File

@@ -1,7 +1,7 @@
{% load i18n %}
<p>
{{ honorific }} {{ name }},
{{ honorific }}
</p>
<div>