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,22 +1,11 @@
{#
* Copyright (C) 2014, Champs Libres Cooperative SCRLFS, <http://www.champs-libres.coop>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
<h2>{{ 'Reports search results'|trans }}</h2>
<p>{{ '%total% reports matching the search "%pattern%"'|transchoice( total, {'%pattern%': pattern, '%total%' : total}) }}</p>
<p>
{{ 'total reports matching 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>
{% if reports|length > 0 %}
<table class="striped rounded">

View File

@@ -34,7 +34,6 @@ No report registered for this person.: Aucun rapport pour cet usager.
'You may not set a date argument and a date in default': Vous avez introduit deux dates, l'une avec l'argument date et l'autre en zone de recherche par défaut. Merci d'indiquer l'un ou l'autre
'You must provide either a date:YYYY-mm-dd argument or a YYYY-mm-dd default search': Merci d'indiquer soit un argument date:YYYY-mm-dd, soit une date dans la recherche par défaut.
'Reports search results': Recherche dans les rapports
'%total% reports matching the search "%pattern%"': '{0} Aucun rapport ne correspond à la recherche "%pattern%" | {1} Un rapport correspond à la recherche "%pattern%" | ]1,Inf]%total% rapports correspondent à la recherche "%pattern%"'
#timeline
'%user% has filled a %report_label% report': "%user% a ajouté un rapport '%report_label%'"

View File

@@ -0,0 +1,7 @@
total reports matching the search: >-
{ total, plural,
=0 {Aucun rapport ne correspond à la recherche}
one {Un rapport correspond à la recherche}
many {# rapports correspondent à la recherche}
other {# rapports correspondent à la recherche}
}