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,16 +1,16 @@
{% extends 'base.html.twig' %}
{% block title %}Species{% endblock %}
{% block title %}{{ 'species'|trans }}{% endblock %}
{% block body %}
<h1>{{ species.vernacularName }}</h1>
<p>
🔬 Scientific name : {{ species.scientificName }}<br/>
📍 Region : {{ species.region }}
🔬 {{ 'scientific_name'|trans }} : {{ species.scientificName }}<br/>
📍 {{ 'region'|trans }} : {{ species.region }}
</p>
<div>
<h2>Posts :</h2>
<h2>{{ 'posts'|trans }} :</h2>
{% for post in species.posts %}
<div>
@@ -18,18 +18,18 @@
<h3>{{ post.publicationDate | date }}</h3>
</dt>
<dl>
<dt>📍Geolocation</dt>
<dt>📍{{ 'geolocation'|trans }}</dt>
<dd>{{ post.longitude }} - {{ post.latitude }}</dd>
<dt>💬Commentary</dt>
<dt>💬{{ 'commentary'|trans }}</dt>
<dd>{{ post.getCommentary }}</dd>
</dl>
</div>
{% endfor %}
<a href="{{ path('app_species_index') }}">Back to list</a>
<a href="{{ path('app_species_index') }}">{{ 'back_to_list'|trans }}</a>
<a href="{{ path('app_species_edit', {'id': species.id}) }}">Edit</a>
<a href="{{ path('app_species_edit', {'id': species.id}) }}">{{ 'edit'|trans }}</a>
{{ include('species/_delete_form.html.twig') }}
</div>