Count things [skip ci]

This commit is contained in:
James Cole
2015-05-14 16:35:41 +02:00
parent 353e96d951
commit 4bd8a7014f
5 changed files with 13 additions and 10 deletions

View File

@@ -22,10 +22,10 @@
</p>
<p class="small">
{% if account.transactions|length > 0 %}
{{ Lang.choice('form.also_delete_transactions', account.transactions|length) }}
{{ Lang.choice('form.also_delete_transactions', account.transactions|length, {count: account.transactions|length}) }}
{% endif %}<br />
{% if account.piggyBanks|length > 0 %}
{{ Lang.choice('form.also_delete_piggyBanks', account.piggyBanks|length) }}
{{ Lang.choice('form.also_delete_piggyBanks', account.piggyBanks|length, {count: account.piggyBanks|length}) }}
{% endif %}
</p>
</div>

View File

@@ -22,7 +22,7 @@
</p>
<p class="small">
{% if bill.transactionjournals|length > 0 %}
{{ Lang.choice('form.bill_keep_transactions', bill.transactionjournals|length) }}
{{ Lang.choice('form.bill_keep_transactions', bill.transactionjournals|length,{count: bill.transactionjournals|length}) }}
{% endif %}
</p>
</div>

View File

@@ -24,7 +24,7 @@
<p class="small">
{% if budget.transactionjournals|length > 0 %}
{{ Lang.choice('form.budget_keep_transactions', budget.transactionjournals|length) }}
{{ Lang.choice('form.budget_keep_transactions', budget.transactionjournals|length, {count: budget.transactionjournals|length}) }}
{% endif %}
</p>
</div>

View File

@@ -23,7 +23,7 @@
</p>
<p class="small">
{% if category.transactionjournals|length > 0 %}
{{ Lang.choice('form.category_keep_transactions', category.transactionjournals|length) }}
{{ Lang.choice('form.category_keep_transactions', category.transactionjournals|length, {count: category.transactionjournals|length}) }}
{% endif %}
</p>
</div>