# "translation missing" errors in production, not in development

**URL:** <https://www.ruby-forum.com/t/translation-missing-errors-in-production-not-in-development/190015>\
**Category:** Rails I18n\
**Created:** [June 11, 2010, 11:42am UTC](https://www.ruby-forum.com/t/translation-missing-errors-in-production-not-in-development/190015 "2010-06-11T11:42:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@Meike](https://www.ruby-forum.com/u/Meike)\
**Post date:** [June 11, 2010, 11:42am UTC](https://www.ruby-forum.com/t/translation-missing-errors-in-production-not-in-development/190015/1 "2010-06-11T11:42:39Z")

</div>

Hello,

I’ve got a similar problem to this one:  
[http://groups.google.com/group/rails-i18n/browse\_thread/thread/cce36deb0fb6dab3/bef233bf198bfe8f?lnk=gst&q=production+development#bef233bf198bfe8f](http://groups.google.com/group/rails-i18n/browse_thread/thread/cce36deb0fb6dab3/bef233bf198bfe8f?lnk=gst&q=production+development#bef233bf198bfe8f)

Tranlations are working fine in development mode, but in production  
mode translations are missing in a certain case.

Adding translated custom error messages to validations is successful  
in development mode.

validates\_acceptance\_of :terms, :message =\> I18n.t(“errors.terms”)

=\> “Bedingungen müssen akzeptiert werden”

But in production mode it says:

=\> “translation missing: en, errors, terms”

It’s no surprise that this translation is missing since my application  
is in german, russian and polish only. I’ve got no idea why it’s  
suddenly trying to find an english translation.

All other translation are working as expected in development and  
production mode. Like this one for example:

errors[:base] \<\< I18n.t(“errors.address”)

I searched for a setting of the I18n.load\_path because in the thread  
mentioned above the solution was to add a I18n.reload! after setting  
the load\_path. I found this line in my plugin called dynamic\_form:

I18n.load\_path \<\< File.expand\_path(“…/…/locale/en.yml”, **FILE** )

But reloading I18n or deleting this line has no effect whatsoever.

My application is running on Rails 3.0.0 beta3.

Has anyone any ideas?

Meike
