Translating text inside an iframe from the same domain
Hi guys,
I'm new to this forum! =)
I read that google translator should translate iframes that are in the
same domain of the parent page, but mine doesn't translate the frame
text, only the parent page.
Do I have to add something to the iframe to get it translated too ? I
searched everywhere but couldn't find a answer. Google online toolbar
translates everything (parent and iframe) ok, but the code they give
to us to translate pages doesn't translate everything. Here's the code
I'm using:
<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'pt',
gaTrack: true,
gaId: 'UA-28932994-1',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
}
Bookmarks