ajout des traductions en et fr
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Species index{% endblock %}
|
||||
{% block title %}{{ 'species_index'|trans }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Species index</h1>
|
||||
<h1>{{ 'species_index'|trans }}</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Scientific_name</th>
|
||||
<th>Vernacular_name</th>
|
||||
<th>{{ 'scientific_name'|trans }}</th>
|
||||
<th>{{ 'vernacular_name'|trans }}</th>
|
||||
<th>Region</th>
|
||||
<th>actions</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -23,17 +23,17 @@
|
||||
<td>{{ species.vernacularName }}</td>
|
||||
<td>{{ species.region }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_species_show', {'id': species.id}) }}">Show</a>
|
||||
<a href="{{ path('app_species_edit', {'id': species.id}) }}">Edit</a>
|
||||
<a href="{{ path('app_species_show', {'id': species.id}) }}">{{ 'show'|trans }}</a>
|
||||
<a href="{{ path('app_species_edit', {'id': species.id}) }}">{{ 'edit'|trans }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="5">no records found</td>
|
||||
<td colspan="5">{{ 'no_records_found'|trans }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_species_new') }}">Create new</a>
|
||||
<a href="{{ path('app_species_new') }}">{{ 'create_new'|trans }}</a>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user