mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-23 12:29:47 +00:00
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:
@@ -1,6 +1,6 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
<h3>{% trans 'Dear' %}: {{ recipient.name }}[{{ recipient.username }}]</h3>
|
<h3>{% trans 'Dear' %}: {{ recipient_name }}[{{ recipient_username }}]</h3>
|
||||||
<hr>
|
<hr>
|
||||||
<p>{% trans 'We would like to inform you that a user has recently logged into the following asset:' %}<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>
|
<p><strong>{% trans 'Asset details' %}:</strong></p>
|
||||||
|
@@ -11,8 +11,6 @@
|
|||||||
<b>{% trans 'Time' %}:</b> {{ time }}<br>
|
<b>{% trans 'Time' %}:</b> {{ time }}<br>
|
||||||
<b>{% trans 'IP' %}:</b> {{ ip }}
|
<b>{% trans 'IP' %}:</b> {{ ip }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
-
|
|
||||||
<p>
|
<p>
|
||||||
{% trans 'If the operation is not your own, unbind and change the password.' %}
|
{% trans 'If the operation is not your own, unbind and change the password.' %}
|
||||||
</p>
|
</p>
|
||||||
|
@@ -9065,11 +9065,11 @@ msgstr "图标"
|
|||||||
|
|
||||||
#: terminal/serializers/applet_host.py:24
|
#: terminal/serializers/applet_host.py:24
|
||||||
msgid "Per Device (Device number limit)"
|
msgid "Per Device (Device number limit)"
|
||||||
msgstr "每用户 (限制设备数量)"
|
msgstr "每设备 (限制设备数量)"
|
||||||
|
|
||||||
#: terminal/serializers/applet_host.py:25
|
#: terminal/serializers/applet_host.py:25
|
||||||
msgid "Per User (User number limit)"
|
msgid "Per User (User number limit)"
|
||||||
msgstr "每设备 (限制用户数量)"
|
msgstr "每用户 (限制用户数量)"
|
||||||
|
|
||||||
#: terminal/serializers/applet_host.py:37
|
#: terminal/serializers/applet_host.py:37
|
||||||
msgid "Core API"
|
msgid "Core API"
|
||||||
|
@@ -1621,5 +1621,6 @@
|
|||||||
"userName": "User name",
|
"userName": "User name",
|
||||||
"description": "No data yet",
|
"description": "No data yet",
|
||||||
"MsgTemplate": "Msg Template",
|
"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"
|
||||||
}
|
}
|
||||||
|
@@ -1631,5 +1631,6 @@
|
|||||||
"description": "暂无数据",
|
"description": "暂无数据",
|
||||||
"MsgTemplate": "消息模板",
|
"MsgTemplate": "消息模板",
|
||||||
"Example": "示例值",
|
"Example": "示例值",
|
||||||
"TemplateVariablesHelpText": "您可以选择一个模板在模板内容中使用 {{ key }} 读取内置变量,注意:只支持 {{ }} 语法,其他语法不支持。例如 {% if title %}"
|
"TemplateVariablesHelpText": "您可以选择一个模板在模板内容中使用 {{ key }} 读取内置变量,注意:只支持 {{ }} 语法,其他语法不支持。例如 {% if title %}",
|
||||||
|
"ResetSuccessfully": "重置成功"
|
||||||
}
|
}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{{ honorific }} {{ name }},
|
{{ honorific }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
Reference in New Issue
Block a user