At present, Google Translate gadget for Chinese web pages (and other language pages) provided for the translation of the other 23 languages: Chinese (Traditional), English, Arabic, Bulgarian, Polish, Korean, Danish, German, Russian, French, Finnish, Dutch, Czech, Croatian, Romanian, Norwegian, Portuguese, Japanese, Swedish, Spanish, Greek, Italian, and Indic languages. That is, when your website uses Google Translate gadget, your website can be displayed in another 23 languages immediately, this is a great boon to all the aspiring owners who want to connect with the international standards and make the global Internet users understand China's profound web information. Of course, the translation quality of machine automatic translation is still far behind the professional but agency the quality of human translation, translation of the text must be less than the human translation of "Letter Tatsu ya." But think about how much time and money you need to translate your Web page into 23 languages, Google Translate gadget provides "better than no good" foreign language information with limited time and money.
JS Code
$ (document). Ready (function () {//default language: CY,DE,EL,EN,ES,FR,IT,JA,KO,NL,PL,PT,TH,VI,ZH-CN,ZH-TW varLang = Geturlparam ("Lang"); if(lang! = undefined && lang! =NULL) {Setcookie ("Googtrans","/zh-cn/"+Lang); } setTimeout ("Googletranlate.initgoogletranlateloadframe ()", -); $("Body"). On (" Change", function () {googletranlate.initgoogletranlateloadframe ();}); $("#google_translate_element"). On ("Click", function () {googletranlate.initgoogletranlateloadframe ();});});varGoogletranlate ={initgoogletranlateloadframe:function () {$ (Document.getelementsbyclassname ("Goog-te-menu-frame"). attr ("ID","googletranfrm") varData = $ (document.getElementById ("googletranfrm"). ContentWindow.document.body); if($ (data). FIND (". Selflang"). Length = =0) { varHTML ="<a class= ' goog-te-menu2-item selflang ' href= ' javascript:void (0) ' onclick=\ ' Parent.googleTranlate.GoToInitPage () \ "><div style= ' white-space:nowrap; ' ><span class= ' indicator ' >?</span><span class= ' text ' >english</span><span style= ' Color:red ' > (Original Language) </span></div></a>"; //$ (HTML). InsertBefore ($ (data). Find (". Goog-te-menu2-item"). First ());$ (data). FIND (". Goog-te-menu2-item"). Last (). parent (). append (HTML); $ (data). Find (". Selflang"). InsertBefore ($ (data). FIND (". Goog-te-menu2-item"). EQ (0)); }}, Gotoinitpage:function () {//Clear Cookie Refresh current page varexpires =NewDate (); Expires.settime (Expires.gettime ()- +); Document.cookie="googtrans= ';p ath=/;expires="+ expires.togmtstring () +";"; Document.cookie="googtrans= ';p ath=/;expires="+ expires.togmtstring () +";d omain=allpcb.com"; Window.location.href=window.location.href; }}View Code
Demo Address: http://www.deriva.cn/technology/detail/2437
JS with Google Translate plugin for multi-language version