# Translating missing for I18n in models after upgrading gem

**URL:** <https://www.ruby-forum.com/t/translating-missing-for-i18n-in-models-after-upgrading-gem/173550>\
**Category:** Rails I18n\
**Created:** [August 11, 2009, 10:26am UTC](https://www.ruby-forum.com/t/translating-missing-for-i18n-in-models-after-upgrading-gem/173550 "2009-08-11T10:26:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bitonio2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@bitonio2](https://www.ruby-forum.com/u/bitonio2)\
**Post date:** [August 11, 2009, 10:26am UTC](https://www.ruby-forum.com/t/translating-missing-for-i18n-in-models-after-upgrading-gem/173550/1 "2009-08-11T10:26:54Z")

</div>

Hi everyone,

I deployed yesterday a new version of my website. For some features, I  
had to upgrade rubygems to 1.3.1 version. Here is my gem env :  
RubyGems Environment:

- RUBYGEMS VERSION: 1.3.1
- RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
  - ruby
  - x86-linux

- GEM PATHS:
  - /usr/lib/ruby/gems/1.8
  - /home/tableonline/.gem/ruby/1.8

- GEM CONFIGURATION:
  - :update\_sources =\> true
  - :verbose =\> true
  - :benchmark =\> false
  - :backtrace =\> false
  - :bulk\_threshold =\> 1000

- REMOTE SOURCES:
  - [http://gems.rubyforge.org/](http://gems.rubyforge.org/)

Version of rails is 2.2.2

Path seems to be ok, as all my gems are there.  
But since then (and i really don’t understand the link), I18n ONLY IN  
MODELS rb files is not working and I get the “Translation missing: en”  
message for variables in those files. The weird stuff is that my locale  
is fr (and seems to work as the rest of the website is correctly  
translated).  
Even more strange, in development environment (on my mac) everything is  
working with the same versions.

I tried changing locale, upgrading en.yml with french values, nothing  
changed…

Any clue of what is happening ?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![bitonio2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@bitonio2](https://www.ruby-forum.com/u/bitonio2)\
**Post date:** [August 11, 2009, 1:38pm UTC](https://www.ruby-forum.com/t/translating-missing-for-i18n-in-models-after-upgrading-gem/173550/2 "2009-08-11T13:38:59Z")

</div>

This now more precise : only constants values in models are not working.  
But I still don’t understand why.  
Moreover, if I create the en.yml identical to fr (with en at the  
beginning of the file), the problem remains the same.
