From 3ce6ac0ce2e482bc1f2784c3c7f716172b151902 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 15 Nov 2016 23:02:57 +0100 Subject: Adding some localizations --- app/views/auth/sessions/new.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/views/auth/sessions/new.html.haml') diff --git a/app/views/auth/sessions/new.html.haml b/app/views/auth/sessions/new.html.haml index ced85d20c..93b9629f1 100644 --- a/app/views/auth/sessions/new.html.haml +++ b/app/views/auth/sessions/new.html.haml @@ -1,11 +1,11 @@ - content_for :page_title do - Log in + = t('auth.login') = simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| - = f.input :email, autofocus: true, placeholder: 'E-mail address', required: true, input_html: { 'aria-label' => 'E-mail address' } - = f.input :password, placeholder: 'Password', required: true, input_html: { 'aria-label' => 'Password' } + = f.input :email, autofocus: true, placeholder: t('simple_form.labels.defaults.email'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.email') } + = f.input :password, placeholder: t('simple_form.labels.defaults.password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.password') } .actions - = f.button :button, "Log in", type: :submit + = f.button :button, t('auth.login'), type: :submit .form-footer= render "auth/shared/links" -- cgit