Αυτός ο ιστότοπος θα έχει περιορισμένη λειτουργικότητα, όσο εκτελούμε εργασίες συντήρησης για να βελτιώσουμε την εμπειρία σας. Αν ένα άρθρο δεν επιλύει το ζήτημά σας και θέλετε να κάνετε μια ερώτηση, η κοινότητα υποστήριξής μας είναι έτοιμη να σας βοηθήσει στο Twitter (@FirefoxSupport) και στο Reddit (/r/firefox).

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

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.