Revised the translation.

This commit is contained in:
依瑪貓
2020-08-07 10:40:57 +08:00
parent 8cc40e1f68
commit 4342f1e34e
4 changed files with 23 additions and 22 deletions

View File

@ -26,7 +26,8 @@ First written: 2020/7/1
{% load accounting %}
{% block settings %}
{% setvar "title" _("Accounts") %}
{% trans "Accounts" context "Accounting" as text %}
{% setvar "title" text %}
{% setvar "use_datatables" True %}
{% endblock %}
@ -37,7 +38,8 @@ First written: 2020/7/1
<i class="fas fa-plus"></i>
{{ _("New")|force_escape }}
</a>
{% with current_report_icon="fas fa-list-ol" current_report_title=_("Accounts") %}
{% trans "Accounts" context "Accounting" as text %}
{% with current_report_icon="fas fa-list-ol" current_report_title=text %}
{% include "accounting/include/report-chooser.html" %}
{% endwith %}
</div>

View File

@ -102,7 +102,7 @@ First written: 2020/7/9
</span>
<a class="dropdown-item {% if request.resolver_match.url_name == "accounts" %} active {% endif %}" href="{% url "accounting:accounts" %}">
<i class="fas fa-list-ol"></i>
{{ _("Accounts")|force_escape }}
{% trans "Accounts" context "Accounting" as text %}{{ text|force_escape }}
</a>
</div>
</div>