From a59bc0d4b2533e78a669652e7adf6d9394969b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9COMosimege=E2=80=9D?= <“onalerona.mosimege@gmail.com”> Date: Thu, 6 Jun 2024 14:33:47 +0200 Subject: [PATCH] add plural blocktrans in one line --- app/templates/app/institutions.html | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/templates/app/institutions.html b/app/templates/app/institutions.html index c0247b5f..4973269b 100644 --- a/app/templates/app/institutions.html +++ b/app/templates/app/institutions.html @@ -15,14 +15,9 @@
{{ institution.name }}
{{ institution.abbreviation }}

- {% 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 %}