Skip to content

Commit 9addd88

Browse files
committed
FEAT: Replace "trans" tags with "translate" in mail template
1 parent 73acd21 commit 9addd88

File tree

1 file changed

+7
-7
lines changed
  • djangocms_form_builder/templates/djangocms_form_builder/mails/default

1 file changed

+7
-7
lines changed

djangocms_form_builder/templates/djangocms_form_builder/mails/default/mail_html.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{% load i18n %}
2-
<h1>{% trans "Form submission" %}</h1>
3-
<p>{% if user %}{% trans "by" %} {{ user.firstname }} {{ user.lastname }} ({{ user.username }}){% else %}{% trans "by anonymous" %}{% endif %}</p>
2+
<h1>{% translate "Form submission" %}</h1>
3+
<p>{% if user %}{% translate "by" %} {{ user.firstname }} {{ user.lastname }} ({{ user.username }}){% else %}{% translate "by anonymous" %}{% endif %}</p>
44
<table>
55
<thead>
66
<tr>
7-
<th>{% trans "Field" %}</th>
8-
<th>{% trans "Value" %}</th>
7+
<th>{% translate "Field" %}</th>
8+
<th>{% translate "Value" %}</th>
99
</tr>
1010
</thead>
1111
<tbody>
@@ -16,15 +16,15 @@ <h1>{% trans "Form submission" %}</h1>
1616
</tr>
1717
{% endfor %}
1818
<tr>
19-
<td>{% trans "time" %}</td>
19+
<td>{% translate "time" %}</td>
2020
<td>{% now "H:i d/m/Y" %}</td>
2121
</tr>
2222
<tr>
23-
<td>{% trans "user agent" %}</td>
23+
<td>{% translate "user agent" %}</td>
2424
<td>{{ user_agent }}</td>
2525
</tr>
2626
<tr>
27-
<td>{% trans "referer" %}</td>
27+
<td>{% translate "referer" %}</td>
2828
<td>{{ referer }}</td>
2929
</tr>
3030
</tbody>

0 commit comments

Comments
 (0)