Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

Why does Google Translate widget dropdown menu not display in FF locally

  • 5 risposte
  • 6 hanno questo problema
  • 13 visualizzazioni
  • Ultima risposta di gluepack

more options

Background.... I have a website on a free service and want to switch to paid. I downloaded all (I assume) necessary files in order to be able to work with the website locally, in order to modify it substantially. The "home" page contains a standard Google Translate widget that works fine online under all browsers, displaying a drop down list of all languages available. While testing my modified site locally, everything works fine but I noticed that the drop down menu would not function with Waterfox but it does with Chrome and Safari (it fails with IE too).

I have now installed FF14 (and WF14) and it is the same problem.

I have created a barebones file with just the Google widget code in it and the same problem occurs (only displays "Select Language" with FF/WF but drop down menu works fine with Chrome and Safari).

<!DOCTYPE HTML >
<html>
<head>
</head>
<body>
 <!-- Google Translate Element --> 
 <div id="google_translate_element" style="display:block"></div>
 <script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'auto',
gaTrack: true
}, 'google_translate_element');
};
</script>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
 </body>
</html>
Background.... I have a website on a free service and want to switch to paid. I downloaded all (I assume) necessary files in order to be able to work with the website locally, in order to modify it substantially. The "home" page contains a standard Google Translate widget that works fine online under all browsers, displaying a drop down list of all languages available. While testing my modified site locally, everything works fine but I noticed that the drop down menu would not function with Waterfox but it does with Chrome and Safari (it fails with IE too). I have now installed FF14 (and WF14) and it is the same problem. I have created a barebones file with just the Google widget code in it and the same problem occurs (only displays "Select Language" with FF/WF but drop down menu works fine with Chrome and Safari). <br /><br /> <pre><nowiki><!DOCTYPE HTML > <html> <head> </head> <body> <!-- Google Translate Element --> <div id="google_translate_element" style="display:block"></div> <script> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'auto', gaTrack: true }, 'google_translate_element'); }; </script> <script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> </body> </html></nowiki></pre>

Modificato da cor-el il

Tutte le risposte (5)

more options

Sorry, there is a DIV statement prior to that code that didn't show up in my post.... id="google_translate_element" style="display:block"

more options

Is it working if you upload the files to a website?

I think that the Google translate widget needs the Flash player to work properly and this may not work locally.

more options

Thanks

Yes, it works fine when uploaded to the website.

As I said, it also works fine with Chrome and Safari locally.

more options

Maybe add an exception in the Flash settings.

  • Flash > Preferences > Advanced > Developer Tools > Trusted Location Settings
more options

Thanks but it doesn't help.