Google Translate Doesnโ€™t work in any IE, but works in Firefox and GoogleChrome

I tested this page in IE, Firefox and Google Chrome. It works in all but IE. Can someone please tell me how to fix this, I tried everything I could in the last two days.

TRY THIS TEST PAGE

<html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> Hello <div id="google_translate_element"></div> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element'); } </script> <script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> </body> </html> 

When you select a language, it displays the selected selection, but never completes the translation. But it works in FireFox and Google Chrome. IE just sits at 0% and just holds on. Does anyone else have the same problem?

The error it causes in the console when switching languages:

 XMLHttpRequest: Network Error 0x2f1c, Could not complete the operation due to error 00002f1c. 

enter image description here

enter image description here

enter image description here

I have tried many things, even if something like this:

 <div id="google_translate_element"></div> <script type="text/javascript"> $.ajax({ url:"http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit", type:"POST", data:"google_translate_element", contentType:"application/json; charset=utf-8", dataType:"json", success: function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element'); } }) </script> 

Please any help would be greatly appreciated!

+7
javascript html internet-explorer google-translator-toolkit
source share
8 answers

I finally found a problem !! A new security update has broken the translator. If you uninstall KB3058515, this will fix the problem. But now we need to figure out how to make it work with the update, since users will not remove updates for the security system.

+1
source share

The code has a link to google translation file

//translate.google.com ...

When I put the full address in my browser, it automatically downloads a text file. I converted the .txt file to a .js file and then replaced the website link with the js file link and worked fine. Hope this helps.

+1
source share

I would comment if I had enough reputation.

I have the same problem, it works fine in Chrome and Firefox, but it just fails in IE.

An alternative is the Microsoft Bing translator http://www.microsoft.com/translator/getstarted.aspx .

If someone can help us, that will be appreciated.

0
source share

I have the same problem, I think this is more likely the case when MS does not comply with the same rules as Mozilla and Google in order to achieve the same results. This is really an IE problem that they have to solve. They are one of three that try to protect users from the method by which http can disable https protection. One example was given when a user logs into his bank using http, which then redirects to https, giving someone access to redirect the user to a false bank account in order to collect his data. I still laugh at the very idea that the bank will still use http transport. Banks should use secure connections for everything. But this does not solve our problem. I advised my clients to use Firefox or Chrome until it is allowed, which is beyond my scope.

0
source share

I had the same issue and found some other discussions. This is due to the introduction of support for the HTTP Strict Transport Security (HSTS) standard in IE11, which is included in security update KB 3058515.

It looks like your options are:

  • force users to remove or disable KB 3058515
  • get Google to add your sites to the Microsoft HSTS preload list
  • force Google to enable HSTS using the Strict-Transport-Security HTTP header
  • (possibly) add your site to the Microsoft HSTS preload list

More discussions here: http://answers.microsoft.com/en-us/ie/forum/ie11-windows_7/google-translate-widget-not-working-in-internet/55f835e2-6460-46f3-8e71-9dbf3c3f5e49

Microsoft KB article: https://support.microsoft.com/en-us/kb/3071338

0
source share

This issue is related to the Internet Explorer update in June 2015. By downloading the July 2015 release: version 11.0.9600.17914, update version 11.0.21 (KB3065822) - the problem seems to have been fixed. Microsoft is aware of this issue as indicated on their forums. I believe that they turned to him with a correction in the July issue.

The recommended fix for the user may be to update their browsers if automatic updating is not enabled.

0
source share

I recently hit this issue on a website. The translator displayed normally in Firefox, Chrome, and in mobile browsers, but nothing in IE 8-11. Our solution was a fairly simple solution (which I think will no longer be a concern). We literally just flipped the link to the script and the script function.

 <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <script> function googleTranslateElementInit() { new google.translate.TranslateElement( {pageLanguage: 'en'}, 'google_translate' ); jQuery('.goog-logo-link').css('display', 'none'); jQuery('.goog-te-gadget').css('font-size', '0'); } </script> 

became:

 <script> function googleTranslateElementInit() { new google.translate.TranslateElement( {pageLanguage: 'en'}, 'google_translate' ); jQuery('.goog-logo-link').css('display', 'none'); jQuery('.goog-te-gadget').css('font-size', '0'); } </script> <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> 

This fixed the lack of display issue in IE, but also did not damage Chrome or Firefox.

0
source share

I will also comment if I had enough reputation.

I have a problem too. For me, it started after updating IE to version 11.0.9600.17843 (update version 11.0.20). The Google Translate widget worked in IE before.

-one
source share

All Articles