Hey everyone,
I’ve been trying to install Google Webpage Translator for ages on our websites. I have attempted placing the code in the header template, footer template, a specific page. I have change the language of the browser and my whole computer.
Currently I am embedding the Javascript parts of the “plugin” from Google into the footer template and that footer template contains the html component of the plugin and is embedded into all of the other pages.
While it doesn’t work at all it does load all the required js and css files - I am out of ideas - any one got any suggestions?
Running on 2.5
Hi,
Could you provide a link to the plugin you are trying to install? I’m unfamiliar with it, and would like to take a look at the documentation so I can help.
Also, if you could tell me what problem you are trying to solve by using this plugin that’ll help me determine if it’s the best approach with ExpressionEngine.
Thanks!
Hi James,
It’s not an EE plugin - it is literally a plugin developed by Google (https://translate.google.com/manager/website/)
The issue we are trying to resolve is the fact that we have customers from all over the world but our site is only in English - we would like to allow customer to translate it to there computers/browsers language
Thanks Trent
Interesting- I’ve never played with it. Is this what you’re talking about?
Hrm- I can’t find a good example there. Can you link us to the docs so I can take a look?
EE really shouldn’t be affecting things, but if you’re worried it is, what I always do is step back and get it working in a static html file. If it works there, it should work in EE and if it doesn’t, it’s generally easy to spot why.
Hi Mike,
That is essential what I am looking for but without the dropdown - the current Google plugin/Google Web Translate code allows it auto detect the browsers default language and then it asks the user if they would like it translated. outbackfree.com.au is the site I’m working on at the moment. If you look at the resources all the required resources have loaded from Google. So technically with those files loading the site would ask to translate but it doesn’t. I have also tried to with the element like your example - but no luck either. The issue appears to be with some of Google’s Javascript (probably conflicting with some of mine). Getting the error: TypeError: format.replace is not a function
You can see that in the Developer Tools/ Console
Any help would be amazing
Thank you,
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.