Results 1 to 4 of 4

Thread: Translating text inside an iframe from the same domain

Hybrid View

  1. #1
    Join Date
    Feb 2012

    Unhappy 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');

    </script><script src="//translate.google.com/translate_a/element.js?

    Any ideas?

    Here's the site I'm building. You can see that it can translate everything but the main green text which is inside the iframe.


    Thanks a lot!

  2. #2
    Join Date
    Aug 2012

    Did you find a solution to iframe problem

    Im having the same problem with google translation translating the page but not content on the page in an iframe. Did you find a solution?

  3. #3
    Join Date
    Aug 2012
    having same problem, did you find a solution

  4. #4
    Join Date
    Jun 2008
    Google translate USED TO BE FREE, but now they are charging for this, so working translators that relied upon the Google Translate API do not work now.

    I hate when those #$&#37;^&#**#*#*# do that!
    I had built a few translation sites with great functionality relying upon their open API, and now none of them work and I need to do them all over again using the BING translation API!!!!

    Try the BING translate API:

    Privacy Policy Generator

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center