title: Rails i18n if I use unicorn and nginx as a application server doesnt work
body: <p><br/>
  When I run my app using default <b>WEBrick</b> server, and set locale from subdomain, i18n works perfectly to "en" and "ja".<br/>
  However, when I use <b>Nginx and Unicorn</b> to run my app, i18n doesnt work like it does in WEBrick.</p>
  
  <p>I write below codes to set locale from subdomain;</p>
  
  <pre><code> def set_locale                                          
      I18n.locale = params[:locale] || I18n.default_locale  
       if request.host.starts_with? "en."                    
        I18n.locale = "en"                                  
       else                                                  
        I18n.locale = "ja"                                  
       end                                                   
   end
  </code></pre>
  
  <p><br/>
  What am I missing here?<br/>
  My settings for unicorn and nginx are almost default except I changed the app name or the proxy_pass to app in nginx.conf.<br/>
  Could anyone please teach me how to make i18n work?I'm stack all day....<br/>
  Please excuse my poor English skill...<br/>
  Thank you in advance.<br/></p>