Hi Anton!

Welcome on the list.

The validation messages go inside an "errors" scope.

It should be something like

de:
  activerecord:
    errors:
      message: "Nachricht (global)"
      models:
        message:
          message: "Nachricht (model specific)"
          attributes:
            message: "Nachricht (attribute specific)"

You can choose whichever one you prefer.

Read my tutorial on this for more information:
http://iain.nl/2008/09/translating-activerecord/#default-validations

Good luck!

Iain
http://iain.nl/

On Nov 26, 12:13 pm, abtrapp <[EMAIL PROTECTED]>
wrote:
> Hi there!
>
> I tried about 20 versions to get rid of the error in the activerecord
> tranlation:
>
> Validation failed: Message translation missing: de, activerecord,
> errors, models, message, attributes, message, blank
>
> Most sources on the internet suggest, that:
>
> de:
>   activerecord:
>     models:
>       message: "Nachricht"
>     attributes:
>       message:
>         message:  "Nachricht"
>
> should be correct to do this, however it does nothing. The same for
> the other hierarchies (like putting the model below the errors, the
> attributes below the model, ...). Has anybody found a solution how to
> get this done? The rest of I18n works perfect (including dates, ...),
> but every time I have an activerecord message it ignores whatever I
> do :(
>
> Thank you very much in advance!
>
> Anton
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rails-i18n" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rails-i18n?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to