1 (edited by ZabParis 2013-01-26 11:07:41)

Topic: Google Translation issue

Hi everybody

I have a problem with Google translation issue : in every page of my website (http://www.extrados.fr/spip.php?article17 for example) you can translate in several langagues, using Google translate. (my original website is in french)
BUT, the link to each gallery is in an iframe, its source refering to a keyword, and even with the “span class=”notranslate”> tag, Google translates the iframe src so that in place of the gallery it is displayed “Juicebox Error: Config XML file not found.”

What can I do with that ?
The code source is :
<span class="notranslate"><iframe src="http://www.extrados.fr/galeries2/amerique/index" width="100%" height=750  frameborder="0" scrolling="no"></iframe></span>

"amerique" is the name of the gallery, in this example.

Thanks for your help .

Elisabeth

Re: Google Translation issue

You should be able to prevent Google Translate from translating the 'src' attribute of your <iframe> using JavaScript as follows:

<iframe id="gallery" src="#" width="100%" height=750  frameborder="0" scrolling="no"></iframe>
<script type="text/javascript">
    document.getElementById('gallery').src = "http://www.extrados.fr/galeries2/amerique/index";
</script>

Re: Google Translation issue

It works !!!!
Thanks a lot !!!

Elisabeth