- {% for locale in ['fr', 'en'] %}
+ {% for locale in locales %}
{{ locale }}
{% endfor %}
diff --git a/templates/base.html.twig b/templates/base.html.twig
index 3458302..a91c741 100644
--- a/templates/base.html.twig
+++ b/templates/base.html.twig
@@ -3,7 +3,7 @@
-
{% block title %}{{ title }}{% endblock %}
+
{% block title %}{{ title[app.request.locale] }}{% endblock %}
{% block stylesheets %}
{% endblock %}
@@ -36,7 +36,7 @@
{% for message in messages %}
{{ message }}
-
+
{% endfor %}
{% endfor %}
diff --git a/templates/comment/start.md.twig b/templates/comment/start.md.twig
index f1750c9..561036a 100644
--- a/templates/comment/start.md.twig
+++ b/templates/comment/start.md.twig
@@ -1,2 +1,6 @@
{% import 'macro.html.twig' as macro %}
-{{ macro.osmLinkTo(user.username) }} commence la tâche [{{ task.name }}]({{ path('app_task_show', {'slug': task.slug}) }})
+{{ 'comment.start'|trans({
+ '%username%': macro.osmLinkTo(user.username),
+ '%task_name%': task.name }},
+ '%task_url%': path('app_task_show', {'slug': task.slug})
+}) }}
diff --git a/templates/home/index.html.twig b/templates/home/index.html.twig
index 9a42953..c0a32d3 100644
--- a/templates/home/index.html.twig
+++ b/templates/home/index.html.twig
@@ -2,13 +2,13 @@
{% block page_content %}
-
{{ long_title }}
+
{{ long_title[app.request.locale] }}
{{ 'text.home1'|trans }}
-
L’idée c’est d’avoir un petit outil collaboratif simple et facile à administrer/utiliser pour mapper des trucs de façon coordonnée à un endroit.
-
Si d’aventure vous souhaitez contacter le développeur, merci d’écrire à v+osm@caboulot.org
+
{{ 'text.home2'|trans }}
+
{{ 'text.home3'|trans({'%mailto_link%': 'v+osm@caboulot.org'})|raw }}
@@ -33,7 +33,7 @@
{% include 'partials/_project-metadata.html.twig' %}
{% if project.description %}
{{ project.description|markdown_to_html }}
{% endif %}
-
En savoir plus
+
{{ 'button.more'|trans }}