ajout des traductions en et fr
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Post index{% endblock %}
|
||||
{% block title %}{{ 'post_index'|trans }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Post index</h1>
|
||||
<h1>{{ 'post_index'|trans }}</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>FoundDate</th>
|
||||
<th>PublicationDate</th>
|
||||
<th>{{ 'found_date'|trans }}</th>
|
||||
<th>{{ 'publication_date'|trans }}</th>
|
||||
<th>Latitude</th>
|
||||
<th>Longitude</th>
|
||||
<th>Altitude</th>
|
||||
<th>Commentary</th>
|
||||
<th>{{ 'commentary'|trans }}</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -29,17 +29,17 @@
|
||||
<td>{{ post.altitude }}</td>
|
||||
<td>{{ post.commentary }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_post_show', {'id': post.id}) }}">Show</a>
|
||||
<a href="{{ path('app_post_edit', {'id': post.id}) }}">Edit</a>
|
||||
<a href="{{ path('app_post_show', {'id': post.id}) }}">{{ 'show'|trans }}</a>
|
||||
<a href="{{ path('app_post_edit', {'id': post.id}) }}">{{ 'edit'|trans }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="8">no records found</td>
|
||||
<td colspan="8">{{ 'no_records_found'|trans }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_post_new') }}">Create new</a>
|
||||
<a href="{{ path('app_post_new') }}">{{ 'create_new'|trans }}</a>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user