阅读背景:

你如何在Rails中设置语言?

来源:互联网 

I am trying to use i18n in rails. I want the language to be set first from params[:locale] (probably already in the url) then from the browser http header and lastly from the default_locale. Everything is fine. Now the problem starts, when I want to add a dropdown list to allow the user to change the locale. How do I force the page to reload with the new Locale? FYI, I tried using .js and forcing a page.reload. The result was that the it kept the same locale in the url after the reload. Any ideas? I am trying to use i18n in rails. I want the la




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: