Why don't you just do a simple form that does a GET to the same page
with the locale as a parameter?

-
Maurício Linhares
http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr



On Sat, Jun 13, 2009 at 10:49 PM, 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 via http://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