# \[HELP\] strange result in production mode on remote server cannot find why it happens \[rails 3.2.12\]

**URL:** <https://www.ruby-forum.com/t/help-strange-result-in-production-mode-on-remote-server-cannot-find-why-it-happens-rails-3-2-12/229893>\
**Category:** Rails I18n\
**Created:** [February 12, 2013, 2:27pm UTC](https://www.ruby-forum.com/t/help-strange-result-in-production-mode-on-remote-server-cannot-find-why-it-happens-rails-3-2-12/229893 "2013-02-12T14:27:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [February 12, 2013, 2:27pm UTC](https://www.ruby-forum.com/t/help-strange-result-in-production-mode-on-remote-server-cannot-find-why-it-happens-rails-3-2-12/229893/1 "2013-02-12T14:27:03Z")

</div>

I have a simple localization which is not working correctly for one  
language in ‘production’ mode … ( fine in dev, and fine in env  
production  
on localhost )

in the view ( haml)  
= I18n.t(:is\_written\_by, scope: ‘posts’, author:  
post.blogger\_display\_name)

in locales  
posts.en.yml  
posts:  
is\_written\_by: "%{author} on "  
posts.fr.yml  
posts:  
is\_written\_by: "%{author} le "

with post.blogger\_display\_name =\> ‘Isabelle’

In console : Dev mode or Production mode , on localhost : cool

> I18n.locale =\> :fr  
> post = Post.first  
> I18n.t(:is\_written\_by, scope: ‘posts’, author: post.blogger\_display\_name)  
> =\> "isabelle le "  
> I18n.locale = :en  
> I18n.t(:is\_written\_by, scope: ‘posts’, author: post.blogger\_display\_name)  
> =\> "isabelle on "

But after deployment, … I got a "“translation missing:  
fr.posts.is\_written\_by” when locale is :fr , and fine display when  
locale  
is :en…  
I deployed and redeployed again… no way , same error …  
I tried to debug with a remote console, in production mode … same  
issue  
…  
I am lost … what should I do next to find where this issue is located  
…

thanls for help

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [February 12, 2013, 3:32pm UTC](https://www.ruby-forum.com/t/help-strange-result-in-production-mode-on-remote-server-cannot-find-why-it-happens-rails-3-2-12/229893/2 "2013-02-12T15:32:02Z")

</div>

changed the scope =\> :posts to :posting  
Destroyed & re-created the yaml files then deployed again … running  
fine  
should be a conflict w :posts key …  
no time for further enquiries …

Le mardi 12 fvrier 2013 14:26:04 UTC+1, Erwin a crit :
