sur un site j'ai mis en place une traduction automatique (code ci dessou)
le probleme est que lorsque j'ouvre un pdf qui se trouve sur ce site j'ai toute la mise en page qui fou le camps car google essai de traduire le pdf.
Comment faire pour que google ne prenne pas en compte dans la traduction automatique de la page les fichiers pdf que je met sur mon site ? (pour info si la page n'est pas traduite donc dans sa version d'origine le pdf s'ouvre tres bien et garde sa mise en page)
code pour la traduction :
Code : Tout sélectionner
<script type="text/javascript">
//<![CDATA[
if(top.location!=self.location)top.location=self.location;
window['_tipoff']=function(){};window['_tipon']=function(a){};
function doTranslate(lang_pair)
{
if(lang_pair.value)lang_pair=lang_pair.value;
if(location.hostname=='www.monsite.com' && lang_pair=='fr|fr')return;
else if(location.hostname!='www.monsite.com' && lang_pair=='fr|fr')location.href=unescape(gfg('u'));
else if(location.hostname=='www.monsite.com' && lang_pair!='fr|fr')location.href='http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+escape(location.href);
else location.href='http://translate.google.com/translate?client=tmpg&hl=en&langpair='+lang_pair+'&u='+unescape(gfg('u'));
}
function gfg(name)
{
name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS="[\\?&]"+name+"=([^&#]*)";
var regex=new RegExp(regexS);
var results=regex.exec(location.href);
if(results==null)return '';return results[1];
}
//]]>
</script>
<a href="javascript:doTranslate('fr|nl')" title="Néerlandais">
<img src="../images/drapeaux/dutch.png" alt="Néerlandais" width="16" height="13" border="0" /></a>
<a href="javascript:doTranslate('fr|en')" title="Anglais">
<img src="../images/drapeaux/anglais.png" alt="Anglais" width="16" height="13" border="0" /></a>
<a href="javascript:doTranslate('fr|fr')" title="Français">
<img src="../images/drapeaux/francais.png" alt="Français" width="16" height="13" border="0" /></a>
<a href="javascript:doTranslate('fr|de')" title="Allemand">
<img src="../images/drapeaux/allemand.png" alt="Allemand" width="16" height="13" border="0" /></a> <a href="../cartes/les-menus.pdf" target="_blank"><img src="../images/carte-menu.jpg" alt="menu" width="135" height="200" /></a>