# Translations for active record models not working here

**URL:** <https://www.ruby-forum.com/t/translations-for-active-record-models-not-working-here/202141>\
**Category:** Rails I18n\
**Created:** [January 22, 2011, 8:49pm UTC](https://www.ruby-forum.com/t/translations-for-active-record-models-not-working-here/202141 "2011-01-22T20:49:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [January 22, 2011, 8:49pm UTC](https://www.ruby-forum.com/t/translations-for-active-record-models-not-working-here/202141/1 "2011-01-22T20:49:16Z")

</div>

My setup:  
Rails 3.0.3 with fast\_gettext, I18n default locale set to ‘it’.

I have config/locales/it.yml with general translations (time and date  
stuff, numbers etc.)  
Then I created config/locales/models\_it.yml, which contains:  
it:  
activerecord:  
models:  
user: ‘utente’  
review: ‘recensione’  
attributes:  
review:  
comment: ‘commento’

Then, I go and create a new review. This requires a comment. I submit  
it without one and it says:  
\* Comment non pu essere lasciato in bianco

‘non pu essere lasciato in bianco’ means ‘can’t be blank’ and it’s  
taken from the general it.yml file.

My review/new.html.erb has this at the top:  
\<% if @review.errors.any? %\>

  

  
\<% @review.errors.full\_messages.each do |msg| %\>  
- \<%= msg %\>
  
\<% end %\>  

  

  
\<% end %\>

I can print this: I18n.t(‘activerecord.attributes.review.comment’) and  
it works. ==\> ‘commento’  
So the problem is that ‘errors.full\_messages’ I guess.

Is there something I need to set to make it use translations for model  
attributes?
