Skip to content

Commit

Permalink
Merge pull request #66 from SADiLaR/feature/translate_templates
Browse files Browse the repository at this point in the history
add plural blocktrans in one line
  • Loading branch information
OnaMosimege authored Jun 6, 2024
2 parents 78432b2 + a59bc0d commit bfe4e4d
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 bfe4e4d

Please sign in to comment.