ajout des traductions en et fr
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user