Added possibility to change locale from login/register pages

This commit is contained in:
Nicolas Lœuillet
2017-06-12 17:23:35 +02:00
committed by Jeremy Benoist
parent 43b6f3a8a8
commit be417ef236
6 changed files with 31 additions and 3 deletions

View File

@ -33,6 +33,7 @@ services:
- "%wallabag_core.reading_speed%"
- "%wallabag_core.action_mark_as_read%"
- "%wallabag_core.list_mode%"
- "@session"
tags:
- { name: kernel.event_subscriber }

View File

@ -3,7 +3,6 @@
{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}}) }}
<div class="card-content">
<div class="row">
{{ form_widget(form._token) }}
{% for flashMessage in app.session.flashbag.get('notice') %}

View File

@ -15,6 +15,11 @@
{% block fos_user_content %}
{% endblock fos_user_content %}
</div>
<div class="center">
<a href="{{ path('changeLocale', {'language': 'de'}) }}">Deutsch</a>
<a href="{{ path('changeLocale', {'language': 'en'}) }}">English</a>
<a href="{{ path('changeLocale', {'language': 'fr'}) }}">Français</a>
</div>
</div>
</main>
{% endblock %}