Rails: translate ActiveRecord error template headers for a single model

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-06-11T13:28:59Z Indexed on 2010/06/11 13:32 UTC
Read the original article Hit count: 227

Hi, I'm trying to rename the authlogic error messages in a Rails 3 app.

The general format I found out working in Rails 3:

de:
  errors:
    template:
      header:
        one:    "Konnte {{model}} nicht speichern: ein Fehler."
        other:  "Konnte {{model}} nicht speichern: {{count}} Fehler."
      body: "Bitte überprüfen Sie die folgenden Felder:

But I want to change this for the authlogic user session model (and only for this one) because when the Login fails, the message "Could not save user session" does not make very much sense.

How can I do that?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about i18n