add amount of closed periods in accordeon message

This commit is contained in:
Julie Lenaerts 2022-04-22 18:02:59 +02:00
parent 0cbcd91c3f
commit 6747cad210
3 changed files with 14 additions and 2 deletions

View File

@ -246,8 +246,8 @@
data-bs-target="#collapse_{{ person.id }}"
aria-expanded="false"
aria-controls="collapse_{{ person.id }}">
<span class="folded">{{ 'Show closed parcours of %name%'|trans({'%name%': person.firstName ~ " " ~ person.lastName }) }} ({{ 'budget.number of elements'|trans({ 'nb_items': 1 }) }})</span>
<span class="unfolded text-secondary">{{ 'Hide closed parcours of %name%'|trans({'%name%': person.firstName ~ " " ~ person.lastName }) }}</span>
<span class="folded">{{ 'show'|trans }} {{ 'periods.number of periods'|trans({ 'nb_items': acpsClosed|length }) }}{{ 'closed periods'|trans }}</span>
<span class="unfolded text-secondary">{{ 'hide'|trans }} {{ 'closed periods'|trans }}</span>
</button>
</h2>

View File

@ -114,3 +114,12 @@ household_composition:
few {# enfants dans le ménage}
other {# enfants dans le ménage}
}
periods:
number of periods: >-
{nb_items, plural,
=0 {Aucun }
one {un }
many {# }
other {# }
}

View File

@ -465,6 +465,9 @@ fix it: Compléter
accompanying_course:
administrative_location: Localisation administrative
comment is pinned: Le commentaire est épinglé
show: Montrer
hide: Masquer
closed periods: parcours clôturer
# Accompanying Course comments
Accompanying Course Comment: Commentaire