Fix message in search results

The pluralization of message has been refactored
This commit is contained in:
Julien Fastré 2015-01-06 21:31:03 +01:00
parent 0d1ca31fc9
commit f91775a617
3 changed files with 6 additions and 7 deletions

View File

@ -55,8 +55,7 @@ Reset: 'Remise à zéro'
'The person has been created': 'Le dossier a été créé'
'Person search results': 'Recherche de personnes'
'Search within persons': 'Recherche parmi les personnes'
'No persons matching search %pattern%': 'Aucune personne ne correpond à votre recherche "%pattern%".'
'%total% persons matching the search %pattern%': '%total% personnes correspondent aux termes de recherche "%pattern%".'
'%total% persons matching the search %pattern%': '{0} Aucune personne ne correspond aux termes de recherche "%pattern%" | {1} Une personne a été trouvée par la recherche "%pattern%" | ]1,Inf] %total% personnes correspondent aux termes de recherche "%pattern%".'
'Last opening since %last_opening%': 'Dernière ouverture le %last_opening%.'
'Close person history': Clotûrer
'Person history - %name%': 'Historique du dossier - %name%'

View File

@ -55,7 +55,7 @@ Reset: Delete
'The person has been created': 'Dossier is aangemaakt'
'Person search results': Personengezocht
'No persons matching search %pattern%': 'Geen personen stemmen met het gezocht "%pattern%" overeen.'
'%total% persons matching the search %pattern%': '%total% personen stemmen met het gezocht "%pattern%" overeen.'
'%total% persons matching the search %pattern%': '{0} Geen personen stemmen met het gezocht "%pattern%" overeen. | {1} Één persoon stemd met het gezocht "%pattern%" overeen. | ]1,Inf] %total% personen stemmen met het gezocht "%pattern%" overeen.'
'Person details': 'Details van de persoon'
'Last opening since %last_opening%': '__Last opening since %last_opening%'
'Close person history': '__Close person history'

View File

@ -15,10 +15,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
<h2>{{ 'Person search results'|trans }}</h2>
{% if persons|length == 0 %}
<p>{{ 'No persons matching search %pattern%'|trans({'%pattern%' : pattern}) }}</p>
{% else %}
<p>{{ '%total% persons matching the search %pattern%'|trans({'%pattern%': pattern, '%total%' : total}) }}</p>
<p>{{ '%total% persons matching the search %pattern%'|transchoice( total, {'%pattern%': pattern, '%total%' : total}) }}</p>
{% if persons|length > 0 %}
<table class="striped rounded">
<thead>