You say it's first set from params[:locale]

So all you need to do is open page with ?locale=xx

On Jun 14, 3:49 am, Youyou Semsem <[email protected]>
wrote:
> Hi,
> 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?
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to