Hello, there: I am using "Localization plugin" to help my app support both English and Chinese. http://wiki.rubyonrails.org/rails/pages/Localization+Plugin However, I dont find the way to switch the language version without interfering other users from client side. My way is adding a button, which links to an action, to change the variable "Localization.lang" ''s value, but if one user switches from English to Chinese , it does affect all the other current users, their browsers also switches to Chinese! Any good idea? Thanks a lot! myst --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
hi, i use this plugin too and don''t have your problem. you should keep language in a session or cookie variable. On Jan 2, 7:00 pm, myst_tt <tdxia...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, there: > I am using "Localization plugin" to help my app support both English > and Chinese.http://wiki.rubyonrails.org/rails/pages/Localization+Plugin > > However, I dont find the way to switch the language version without > interfering other users from client side. > My way is adding a button, which links to an action, to change the > variable "Localization.lang" ''s value, but if one user switches from > English to Chinese , it does affect all the other current users, their > browsers also switches to Chinese! > Any good idea? > > Thanks a lot! > myst--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hello, Jean: Yap, I thought of using session or cookie, but I dont know how to do that, I will try google it :). Thanks a lot! Br, myst On 1月2日, 下午9时25分, "Jean-Sébastien" <jeansebastien....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hi, i use this plugin too and don''t have your problem. you should keep > language in a session or cookie variable. > > On Jan 2, 7:00 pm, myst_tt <tdxia...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hello, there: > > I am using "Localization plugin" to help my app support both English > > and Chinese.http://wiki.rubyonrails.org/rails/pages/Localization+Plugin > > > However, I dont find the way to switch the language version without > > interfering other users from client side. > > My way is adding a button, which links to an action, to change the > > variable "Localization.lang" ''s value, but if one user switches from > > English to Chinese , it does affect all the other current users, their > > browsers also switches to Chinese! > > Any good idea? > > > Thanks a lot! > > myst--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---