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,6 +1,6 @@
{% extends 'base.html.twig' %}
{% block title %}Log in!{% endblock %}
{% block title %}{{ 'log_in'|trans }}{% endblock %}
{% block body %}
<form method="post">
@@ -10,17 +10,17 @@
{% if app.user %}
<div class="mb-3">
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Logout</a>
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">{{ 'logout'|trans }}</a>
</div>
{% endif %}
<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
<h1 class="h3 mb-3 font-weight-normal">{{ 'sign_in'|trans }}</h1>
<div class="mb-3">
<label for="username">Email</label>
<input type="email" value="{{ last_username }}" name="_username" id="username" class="form-control" autocomplete="email" required autofocus>
</div>
<div class="mb-3">
<label for="password">Password</label>
<label for="password">{{ 'password'|trans }}</label>
<input type="password" name="_password" id="password" class="form-control" autocomplete="current-password" required>
</div>
@@ -34,16 +34,16 @@
<div class="checkbox mb-3">
<label>
<input type="checkbox" name="_remember_me"> Remember me
<input type="checkbox" name="_remember_me">{{ 'remember_me'|trans }}
</label>
</div>
#}
<button class="btn btn-primary" type="submit">
Sign in
{{ 'sign_in'|trans }}
</button>
<a class="btn btn-secondary" href="{{ path('app_register') }}">
Sign up
{{ 'sign_up'|trans }}
</a>
</form>
{% endblock %}