Microsoft Translator Widget - Force Destination Language

这一生的挚爱 提交于 2019-12-12 03:38:37

问题


How do I force the Microsoft Translator widget to use a specific destination language without depending on the language sent by the browser?

http://www.microsofttranslator.com/widget/


回答1:


I also had the same problem so thought I'd post how I fixed it.

I found that you can simply insert the language letter code into the widget's ajax URL. For example, search the widget code for this:

"/ajax/v2/widget.aspx?mode=auto&from=en&layout=ts"

Then you can just insert "&to=de" for example, if you want to translate to German. E.g.:

"/ajax/v2/widget.aspx?mode=auto&from=en&to=de&layout=ts"

As easy as that!



来源:https://stackoverflow.com/questions/13403506/microsoft-translator-widget-force-destination-language

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!