ajout des traductions en et fr

This commit is contained in:
hugo.pradier2
2024-06-11 23:05:31 +02:00
committed by clfreville2
parent 352a0db047
commit 0215583fee
25 changed files with 1128 additions and 75 deletions

View File

@@ -1,9 +1,9 @@
{% extends 'base.html.twig' %}
{% block title %}Post{% endblock %}
{% block title %}{{ 'post'|trans }}{% endblock %}
{% block body %}
<h1>Post</h1>
<h1>{{ 'post'|trans }}</h1>
<table class="table">
<tbody>
@@ -12,11 +12,11 @@
<td>{{ post.id }}</td>
</tr>
<tr>
<th>FoundDate</th>
<th>{{ 'found_date'|trans }}</th>
<td>{{ post.foundDate ? post.foundDate|date('Y-m-d H:i:s') : '' }}</td>
</tr>
<tr>
<th>PublicationDate</th>
<th>{{ 'publication_date'|trans }}</th>
<td>{{ post.publicationDate ? post.publicationDate|date('Y-m-d H:i:s') : '' }}</td>
</tr>
<tr>
@@ -38,15 +38,15 @@
</tr>
{% endif %}
<tr>
<th>Commentary</th>
<th>{{ 'commentary'|trans }}</th>
<td>{{ post.commentary }}</td>
</tr>
</tbody>
</table>
<a href="{{ path('app_post_index') }}">Back to list</a>
<a href="{{ path('app_post_index') }}">{{ 'back_to_list'|trans }}</a>
<a href="{{ path('app_post_edit', {'id': post.id}) }}">Edit</a>
<a href="{{ path('app_post_edit', {'id': post.id}) }}">{{ 'edit'|trans }}</a>
{{ include('post/_delete_form.html.twig') }}