Претражи подршку

Избегните преваре подршке. Никада од вас нећемо тражити да зовете или шаљете поруке на број или да делите личне податке. Пријавите сумњиве радње преко „Пријавите злоупотребу” опције.

Learn More

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

  • 5 одговорa
  • 6 има овај проблем
  • 13 прегледа
  • Последњи одговор послао 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>

Измењено од стране cor-el

Сви одговори (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.