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
example
setcookie(“googtrans”, “/en/ja”, time()+3600, “/”, “www.example.com”);
//setcookie(“googtrans”, “en/ja”);
setcookie(“googtrans”, “/en/en”, time()+3600, “/”, “.example.com”);
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
example
setcookie(“googtrans”, “/en/ja”, time()+3600, “/”, “www.example.com”);
//setcookie(“googtrans”, “en/ja”);
setcookie(“googtrans”, “/en/en”, time()+3600, “/”, “.example.com”);
I have tested that years ago but I think it should work.
ReplyDelete