Skip to content

Commit

Permalink
add plural blocktrans in one line
Browse files Browse the repository at this point in the history
  • Loading branch information
“OMosimege” committed Jun 6, 2024
1 parent b88f5d6 commit a59bc0d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/templates/app/institutions.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,9 @@ <h5 class="card-title">{{ institution.name }}</h5>
{{ institution.abbreviation }}
</p>
<p class="card-text">
{% if institution.project_count == 0 %}
{% blocktrans %}no applicable project{% endblocktrans %}
{% if institution.project_count == 0 %}{% blocktrans %}no applicable project{% endblocktrans %}
{% else %}
{% blocktrans count project_count=institution.project_count %}
{{ project_count }} applicable project
{% plural %}
{{ project_count }} applicable projects
{% endblocktrans %}
{% blocktrans count project_count=institution.project_count %}{{ project_count }} applicable project{% plural %}{{ project_count }} applicable projects{% endblocktrans %}
{% endif %}
</p>
</div>
Expand Down

0 comments on commit a59bc0d

Please sign in to comment.