Forum Archive - Translate website to any specific language, on page load

Translate website to any specific language, on page load
Jan 19, 2019 6:49 am by Leaon7756
Anybody have any idea how to translate a web page into any language using Google translate when it loads? I don't want a drop down menu, I just want to convert the website into a specific language when it loads. I have tried many things from" but all in vain. Any good suggestions would be appreciated.
Re: Translate website to any specific language, on page load
Jan 22, 2019 10:31 am by Yana
Hi, If you are using free version you can call doGTranslate('en|es') (here the main language is English, and language to show is Spanish) JavaScript function on page load and change the language. It will require development skills. In free plan, in order to have a translated version of the website as the page is loaded (without selecting a language), you can use the following script. In this example it will be Spanish. Put this in footer.php file of your theme, before the closing </body> tag in your footer. If you have don't have a CMS, or can't find the footer file, please find a section of pure html, and put it there, so you don't have to think about php syntax. Please use FTP for modifying the footer.php, or other files of the website, and create a backup beforehand, just for your safety: <script type="text/javascript"> if(localStorage.getItem("ChangeLanguageFirstTime") === null) { doGTranslate('en|es'); localStorage.setItem("ChangeLanguageFirstTime", true); } </script> ‚Äč


Google stopped providing website translator widgetsFeb 28, 2019 2:43 pmReplies: 0Post by: Edvard
not aligned on websiteFeb 27, 2019 2:24 pmReplies: 1Post by: mrkapable007
Highly increased load on website from 19, 2019 8:29 pmReplies: 1Post by: Ant_Z
wordpress amp link not translateDec 31, 2016 10:11 amReplies: 12Post by: besybuy
GT doesn't work...error 404 pageJan 28, 2019 5:36 pmReplies: 1Post by: vincenzodinuzzo

Try GTranslate with a free 15 day trial