in my environment.rb, the languge is defined :
GLoc.set_config :default_language => :en
when loading another page , a specific javascript function need to get this local as a var var useLanguage = “##”
is it possible ?
in my environment.rb, the languge is defined :
GLoc.set_config :default_language => :en
when loading another page , a specific javascript function need to get this local as a var var useLanguage = “##”
is it possible ?
in my environment.rb, the languge is defined :
GLoc.set_config :default_language => :en
when loading another page , a specific javascript function need to get this local as a var var useLanguage = “##”
You'd have to generate some javascript with the appropriate values in
it (you could do this from an initializer for example, just write out
what you need to public/javascripts/language.js and include that
javascript file where relevant).
Fred