Fix deprecation of transchoice

This commit is contained in:
2023-10-02 17:44:21 +02:00
parent 41f4bbfdce
commit ef8ac6041a
16 changed files with 71 additions and 39 deletions

View File

@@ -1,6 +1,11 @@
<h2>{{ 'Event search'|trans }}</h2>
<p>{% transchoice total with { '%pattern%' : pattern } %}%total% events match the search %pattern%{% endtranschoice %}</p>
<p>
{{ 'total events match the search'|trans({'total' : total}) }}&nbsp;:
<a href="{{ path('chill_main_advanced_search', { "name": search_name, "q": pattern } ) }}" class="btn btn-sm">
<i class="fa fa-search" aria-hidden="true"></i> {{ pattern }}
</a>
</p>
<style>
table.events td:last-child {

View File

@@ -67,7 +67,7 @@
<h2>{{ 'Participations'|trans }}</h2>
{% set count = event.participations|length %}
<p>{% transchoice count %}%count% participations to this event{% endtranschoice %}</p>
<p>{{ 'count participations to this event'|trans({'count': count}) }}</p>
{% if count > 0 %}
<table class="table table-bordered border-dark align-middle">