Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bing translator widget without original text popup

I have implemented Bing Translator Widget in my website. It works great. However I could not find any way to disable annoying popups attached to hover event on translated texts that shows original text.

Is there any way I can disable it. Thanks in advance.

Following are links to Official pages about how to use the widget:

http://msdn.microsoft.com/en-us/library/dn341983.aspx

http://www.bing.com/widget/translator/

http://www.microsoft.com/web/solutions/mstranslator.aspx

like image 435
Jamol Avatar asked Sep 30 '13 11:09

Jamol


People also ask

Is Bing Translator Free?

Translator for Bing Powered by Microsoft Translator, the site provides free translation to and from any of the supported text translation languages.

How do I translate a page on Bing?

Open an English language article, and then right-click anywhere in the text of the article. Click Translate with Bing or Translate with Live Search. You receive a page that resembles the following in the Bing Translator. You may select another language by clicking Translate on the Language menu.


2 Answers

Got the same problem here, and after some explorations, you can do this in javascript :

Microsoft.Translator.Widget.domTranslator.showHighlight = false;
Microsoft.Translator.Widget.domTranslator.showTooltips = false;

But this must be done after translation, in my case I use Web Widget Customization API, so i can hide tooltips in the onComplete callback of Translate function.

Beware, it's not documented, so I don't know how long this will work. But it's the only way I found.

like image 85
kadmelia Avatar answered Sep 29 '22 04:09

kadmelia


Use this line of code after loading your javascript.

window['_mstConfig'].floaterStylePath = '';

This will remove the styling of the popup.

like image 43
Ankit Tanna Avatar answered Sep 29 '22 06:09

Ankit Tanna