Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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

  • 5 件の返信
  • 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.