# Translation of model names?

**URL:** <https://www.ruby-forum.com/t/translation-of-model-names/200663>\
**Category:** Rails I18n\
**Created:** [December 18, 2010, 8:39pm UTC](https://www.ruby-forum.com/t/translation-of-model-names/200663 "2010-12-18T20:39:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikuSESS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f17d59/32.png) [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Post date:** [December 18, 2010, 8:39pm UTC](https://www.ruby-forum.com/t/translation-of-model-names/200663/1 "2010-12-18T20:39:17Z")

</div>

Hi there,  
I’ve been using I18n for a project and I’ve run into a problem where  
it seems rails helpers (e.g. submit buttons) are not properly  
translating model names, and same with validation error messages. For  
example, to get a translated model name to work for the error template  
header i had to use the following:  
\<%= I18n.t(‘activerecord.errors.template.header’, :count =\>  
object.errors.size, :model =\>  
I18n.t(“models.#{object.class.to\_s.downcase}”)) %\>  
which looks like a real kludge to my eyes.

And when I use the following for submit helpers (from the repo):

fr-CA:  
helpers:  
select:  
prompt: “Veuillez slectionner”  
submit:  
create: “Crer un %{model}”  
update: “Modifier ce %{model}”  
submit: “Enregistrer ce %{model}”

I still get the english model names, e.g. “Crer un User”. Not good.

I’m using rails 3.0.3 and I’ve encountered these erros with both  
activerecord and mongomapper.

Any ideas? Thanks in advance.

Sean
