Hi there,
I would like to make it so that if a customer chooses a language from the dropdown box, it will switch to that language pack as usual, but also use Google Translate to translate everything that isn't automatically translated by the language pack (e.g. product descriptions, info pages).
This is the Google script:
I was thinking I could put an if statement into the language sidebox file so that Google would run whichever translation corresponds to the chosen currency. I do not want the Google Translate dropdown box to even show up. I want the customer to be able to just click the Greek flag and have it use the language pack and Google Translate.<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
includedLanguages: 'el'
}, 'google_translate_element');
}
</script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
I tried a few different things to make it work, but no luck. Does anyone have any ideas? I think this would be useful for a lot of people!
Thanks!







Bookmarks