]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Translate error message in login page 3090/head
authoradev <adev2000@gmail.com>
Sat, 6 May 2017 20:21:04 +0000 (22:21 +0200)
committeradev <adev2000@gmail.com>
Sat, 6 May 2017 20:21:04 +0000 (22:21 +0200)
Fix #2933

src/Wallabag/UserBundle/Resources/views/Security/login.html.twig

index fc0d97e77fa4239fab034bf979398c7f4734984a..32984c845483e912c1cf30b40f716c221fa85959 100644 (file)
@@ -5,7 +5,7 @@
     <div class="card-content">
 
         {% if error %}
-            <script>Materialize.toast('{{ error.message }}', 4000)</script>
+            <script>Materialize.toast('{{ error.messageKey|trans(error.messageData, 'security') }}', 4000)</script>
         {% endif %}
 
         {% for flashMessage in app.session.flashbag.get('notice') %}