[Bangalore RUG] Rails Internationalization problem while submitting the form.

Take a look at http://guides.rubyonrails.org/i18n.html#setting-the-locale-from-the-client-supplied-information

On changing the language, store in session-store and set the locale
from the session store thereafter
Also store the locale in the users table. use this in case the session
is refreshed
http is stateless and the locale will be set on every request