Hi all, I use Gloc plugin to add multilanguage features to my rails app the user select the language and I save the value in session[:lang] in application.rb I have added before_filter :check_language def check_language if session[:lang]== "fr" set_language :fr else set_language :en end end all works great in views and controllers but in models the default language defined in environment.rb is selected How can I set the language value in model according to the value stored in session I am still newbie with rails ! Thanks for your help -- 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 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 -~----------~----~----~----~------~----~------~--~---