list with period: full sentences in translation component

This commit is contained in:
Julien Fastré 2022-04-25 20:56:24 +02:00
parent 57d6240cd1
commit 916560c522
2 changed files with 14 additions and 7 deletions

View File

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

View File

@ -116,10 +116,17 @@ household_composition:
} }
periods: periods:
number of periods: >- show closed periods: >-
{nb_items, plural, {nb_items, plural,
=0 {Aucun } =0 {Aucun parcours clôturé}
one {un } one {Montrer un parcours clôturé}
many {# } many {Montrer # parcours clôturés}
other {# } other {Montrer # parcours clôturés}
}
hide closed periods: >-
{nb_items, plural,
=0 {Aucun parcours clôturé}
one {Masquer un parcours clôturé}
many {Masquer # parcours clôturés}
other {Masquer # parcours clôturés}
} }