Displaying 2 results from an estimated 2 matches for "my_fav_lang2".
Did you mean:
my_fav_lang
I found a way to dynamically switch languages in your rails app -- look at it and give your opinions
2006 Jan 05
0
I found a way to dynamically switch languages in your rails app -- look at it and give your opinions
...t;}
# 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"] == "my_fav_lang2"
cookies[:lang] = { :value => "my_fav_lang_dirname_in_po_directory2"}
flash[:notice] = ''my_fav_lang2 language selected.''
redirect_to :action => ''list''
end
end
Step 7) thats it that does it. you select your la...
2006 Jan 05
0
I found a way to dynamically switch languages in your railsapp -- look at it and give your opinions
...;} # 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"] == "my_fav_lang2"
cookies[:lang] = { :value =>
"my_fav_lang_dirname_in_po_directory2"}
flash[:notice] = ''my_fav_lang2 language selected.''
redirect_to :action => ''list''
end
end
Step 7) thats it that does it. you select your l...