Devise translation in rails
I have registration in devise, look like this:
<%= semantic_form_for resource, :as => resource_name, :url =>
registration_path(resource_name) do |f| %>
<li id='errors'><%= devise_error_messages! %></li>
<span><%= f.label :email ,'Adres email' %></span>
<li><%= f.email_field :email %></li>
<span><%= f.label :password ,'Has³o' %></span>
<li><%= f.password_field :password %></li>
And i try to translate devise with I18n, but with no results. When i put
wrong password i see :
Password nale¿y uzupe³niæ
Second half of it is translated but word "password" is not. I try many
things like:
activerecord:
attributes:
user:
password: SHIT
but it doesn't work. Also try put it in :
errors: &errors
format: ! '%{attribute} %{message}'
messages:
but still it doesnt work. Also try with
formtastic:
user:
password:
but nothing works. Where i can translate words like: password, email,
password_confirmation and other value from form.
No comments:
Post a Comment