Recherche : nom des programmes et axes selon la langue

La carte affichait le champ complet « FR // EN ». Elle passe maintenant par le
filtre bilingual, comme taxonomy.twig.
This commit is contained in:
2026-11-05 13:47:27 +01:00
parent 3e895178f5
commit 3d9b1d7f83
+1 -1
View File
@@ -49,7 +49,7 @@
{% for term in taxonomy_cards %} {% for term in taxonomy_cards %}
<li class="taxonomy-results__item"> <li class="taxonomy-results__item">
<a href="{{ term.url }}" class="taxonomy-results__link"> <a href="{{ term.url }}" class="taxonomy-results__link">
<span class="taxonomy-results__name">{{ term.name }}</span> <span class="taxonomy-results__name">{{ term.name | bilingual(current_language) }}</span>
<span class="taxonomy-results__meta">{{ term.taxonomy_label }}{% if term.count %} · {{ term.count }} {{ term.count > 1 ? (current_language == 'en' ? 'posts' : 'publications') : (current_language == 'en' ? 'post' : 'publication') }}{% endif %}</span> <span class="taxonomy-results__meta">{{ term.taxonomy_label }}{% if term.count %} · {{ term.count }} {{ term.count > 1 ? (current_language == 'en' ? 'posts' : 'publications') : (current_language == 'en' ? 'post' : 'publication') }}{% endif %}</span>
</a> </a>
</li> </li>