Thursday, 1 March 2012

set google translater default language, google translate default language

We can set google translate default language
by working with cookies
for this first use google translate to translate your web page
then see what cookies he has created
(for this right click on your web page then page info
then security then view cookies and click on googtrans you see what is the translation he is using and what is the path and what is the domain or host name )
and put this all data in setcookies function
setcookie(“googtrans”, “/en/ja”, time()+3600, “/”, “”);
//setcookie(“googtrans”, “en/ja”);
setcookie(“googtrans”, “/en/en”, time()+3600, “/”, “”);


  1. I have tested that years ago but I think it should work.