search for: my_fav_lang_dirname_in_po_directory

Displaying 2 results from an estimated 2 matches for "my_fav_lang_dirname_in_po_directory".

2006 Jan 05
0
I found a way to dynamically switch languages in your rails app -- look at it and give your opinions
...ag "Go" %> <%= end_form_tag %> step 6)now in your application.rb file create a method like this def lang_switch if @params["post"]["lang_id"] == "my_fav_lang" #compare the parameters sent by browser cookies[:lang] = { :value => "my_fav_lang_dirname_in_po_directory"} # set the language cookie ,mostly this is like en or gb or jp etc flash[:notice] = ''my_fav_lang language selected.'' redirect_to :action => ''list'' #redirect the page end else if @params["post"]["lang_id"] == &q...
2006 Jan 05
0
I found a way to dynamically switch languages in your railsapp -- look at it and give your opinions
..."Go" %> <%= end_form_tag %> step 6)now in your application.rb file create a method like this def lang_switch if @params["post"]["lang_id"] == "my_fav_lang" #compare the parameters sent by browser cookies[:lang] = { :value => "my_fav_lang_dirname_in_po_directory"} # set the language cookie ,mostly this is like en or gb or jp etc flash[:notice] = ''my_fav_lang language selected.'' redirect_to :action => ''list'' #redirect the page end else if @params["post"]["lang_id"] == &...