Microsoft Translator Widget-强制目标语言 [英] Microsoft Translator Widget - Force Destination Language
本文介绍了Microsoft Translator Widget-强制目标语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何强制Microsoft Translator小部件使用特定的目标语言而不依赖于浏览器发送的语言?
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/
推荐答案
我也遇到了同样的问题,因此以为我会发布解决方法.
I also had the same problem so thought I'd post how I fixed it.
我发现您可以将语言字母代码简单地插入到小部件的ajax URL中.例如,在窗口小部件代码中搜索以下内容:
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"
然后,例如,如果您要翻译成德语,则只需插入& to = de".例如:
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"
那样简单!
这篇关于Microsoft Translator Widget-强制目标语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文