# Localization problem in nested-attributes validation

**URL:** <https://www.ruby-forum.com/t/localization-problem-in-nested-attributes-validation/165055>\
**Category:** Rails I18n\
**Created:** [April 8, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/localization-problem-in-nested-attributes-validation/165055 "2009-04-08T17:58:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@benni](https://www.ruby-forum.com/u/benni)\
**Post date:** [April 8, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/localization-problem-in-nested-attributes-validation/165055/1 "2009-04-08T17:58:35Z")

</div>

Hey,

I recently run into a problem with the new feature for activerecord:  
nested attributes. When the nested object (Activist) is invalid, the  
error messages are shown, but the object name is noch translated. (My  
project is in german)  
So I get int the error box:

"Bitte Ã¼berprÃ¼fen Sie die folgenden Felder:

```
* Activist surename muss ausgefÃ¼llt werden
* Activist city muss ausgefÃ¼llt werden"

```

In my appropriate localization file (de.yml) I defined the object/  
attributes names correctly.

de:  
activerecord:  
models:  
protest\_mail: Protestmail  
activist: Aktivistin  
attributes:  
protest\_mail:  
subject: Betreff  
body: Inhalt  
activist:  
surename: Nachname  
city: Stadt

The error messages for protest\_mail are transalated correctly, so I  
guess, the problems applies to the new nested-attributes feature.

Any idea how to fix this?

best regards,  
benni
