#15 ✓resolved
Vidmantas

Rails 2.2 I18n compatibility

Reported by Vidmantas | December 9th, 2008 @ 04:01 AM

It would be awesome if Authlogic use Rails 2.2 I18n system, because now it's real pain to change some default messages of Authlogic.

Comments and changes to this ticket

  • Ben Johnson

    Ben Johnson December 9th, 2008 @ 01:12 PM

    • State changed from “new” to “open”

    Absolutely, that's a great idea. The only drawback is the fact that Authlogic isn't just for rails, you can use it in merb, etc. But I'll check for the constant and use it if its present.

  • Ben Johnson

    Ben Johnson January 28th, 2009 @ 07:43 PM

    • State changed from “open” to “resolved”

    This is done. See the Authlogic::I18n documentation for more details.

  • Vidmantas
  • Jan

    Jan January 29th, 2009 @ 11:31 AM

    Thanks! Unfortunately there is a misspelling in sessions/base.rb, method valid_record?:

    
    errors.add_to_base(I18n.t("errors_messages.not_#{required_status}", :default => "Your account is not #{required_status}"))
    

    should be

    
    errors.add_to_base(I18n.t("error_messages.not_#{required_status}", :default => "Your account is not #{required_status}"))
    

    "error_messages" instead of "errors_messages"

    Cheers!

  • Nando

    Nando January 29th, 2009 @ 11:56 AM

    Great work!

    Also there are three untranslated :messages in Credentials module that would need two new keys:

    • "should look like an email address."
    • "should use only letters, numbers, spaces, and .-_@ please."

    Thanks a lot!

  • Ben Johnson

    Ben Johnson January 29th, 2009 @ 12:15 PM

    Thanks for pointing these out. This is done, just update from the repo.

  • Nando

    Nando January 29th, 2009 @ 12:32 PM

    faster than light! ;)

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket

Pages