Browse Source

fix: translate transaction subject and description

master
Frederic 11 years ago
parent
commit
220a4f027d
  1. 2
      cash/templates/cash/transaction_list.html

2
cash/templates/cash/transaction_list.html

@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
{% for t in transaction_list %}
<tr>
<td>{% if detailed %}{{ t.timestamp|date:'d.m.Y H:i:s' }}{% else %}{{ t.timestamp|date:'d.m.Y'}}{% endif %}</td>
<td>{{ t.subject }}{% if detailed %}<br/><i>{{ t.description }}</i>{% endif %}</td>
<td>{% trans t.subject %}{% if detailed %}<br/><i>{% trans t.description %}</i>{% endif %}</td>
<td style="text-align: right; color: {% if t.amount < 0 %}red{% else %}green{% endif %}">{{ t.amount|floatformat:2 }} &euro;</td>
</tr>
{% endfor %}

Loading…
Cancel
Save