not translating email_invalid (i18n) #332

Open
luisfernandos opened this Issue Sep 28, 2012 · 1 comment

2 participants

@luisfernandos

Hi I am using Rails 3 with Ruby 1.9.2 and this key is not being translated, it is always in english.

@hybernaut

pull request submitted: #349

alternative solution you can implement in your app without touching authlogic:

  acts_as_authentic do |c|
    c.merge_validates_format_of_email_field_options( message: Proc.new{I18n.t('authlogic.error_messages.email_invalid')} )
  end

Both assume that you have provided translations like this:

  authlogic:
    error_messages:
      email_invalid: XXX email is not valid XXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment