Posts: 5
Threads: 3
Joined: Feb 2012
Just place this code anywhere you like:
<a href="http://free-website-translation.com/" id="ftwtranslation_button" hreflang="en" title="" style="border:0;"><img src="http://free-website-translation.com/img/fwt_button_en.gif" id="ftwtranslation_image" alt="Website Translation Widget" style="border:0;"/></a> <script type="text/javascript" src="http://free-website-translation.com/scripts/fwt.js" /></script>
Posts: 2,928
Threads: 195
Joined: Feb 2011
that's a good suggestion, I would suggest to define the placement more detailed:
not place it anywhere, place it in a component and add that to your template ;=)
Cheers, Connie
Posts: 1,108
Threads: 70
Joined: Aug 2009
I don't get it , why use a middle man to do this?
Just use the Google translate tools which at the end of the day this is using...
http://translate.google.com/translate_tools
Posts: 2,928
Threads: 195
Joined: Feb 2011
n00dles101 Wrote:I don't get it , why use a middle man to do this?
I find it helpful, because many users don't know about this possibility and so they are offered something
I once learned from a friend when I tried to open a milk package: "you know, everything in the US must be convenient for the user", my latin teacher told me that all roads leed to Rome ;=)
Posts: 2,094
Threads: 54
Joined: Jan 2011
Connie Wrote:n00dles101 Wrote:I don't get it , why use a middle man to do this?
I find it helpful, because many users don't know about this possibility and so they are offered something
Connie: the question is why should anyone include a script from
free-website-translation.com (which probably calls google), if you can get the same from
google directly?
Posts: 1,108
Threads: 70
Joined: Aug 2009
That was my whole point, they just provide a re-badged button for Google translate and when you do translate the page you given a horrible Google banner across the top of the pages, as apposed to the Google way which you can see on this site.
Insert the following to give you the same and cut out the middleman...
Code:
<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
Posts: 5
Threads: 3
Joined: Feb 2012
Posts: 2,928
Threads: 195
Joined: Feb 2011
mvlcek Wrote:Connie: the question is why should anyone include a script from free-website-translation.com (which probably calls google), if you can get the same from google directly?
that's right, no real sense
@capnix: in that post where you refer to they write about the "real" Google implementation, but your code-snippet included that "man in the middle" ;=)
Posts: 1
Threads: 0
Joined: Oct 2013
have any of you notice that after using the default google translate code, some of the javascript features of the website are not working anymore?
My website uses javascript action on the page and those functions no longer work after the page was translated via default code of google.
I`m not a master with these things, but of someone can help me in this matter...i would really appreciate it.