Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

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.