跳至主要內容
翻譯員

微軟翻譯器部落格

使用 Microsoft Translator 連結至外語網頁

您是否曾經想要連結到與自己網站語言不同的網頁?

(2015年01月更新)

翻譯器小工具:用於您自己的網頁 (http 和 https)

Microsoft Translator 網頁小工具可讓您以多種語言提供頁面,而不會讓您的使用者離開網站。前往 這裡 來取得 widget 的程式碼片段。帶有 widget 的頁面可以特定語言連結,方法是加入 ?__mstto=<lg> to the URL where <lg> is the language code (like es for Spanish) you want the page to be shown in.

例如,這篇文章的英文版有以下連結: http://blogs.msdn.com/b/translation/archive/2008/11/10/linking-to-a-foreign-language-web-page-with-microsoft-translator.aspx

西班牙語: http://blogs.msdn.com/b/translation/archive/2008/11/10/linking-to-a-foreign-language-web-page-with-microsoft-translator.aspx?__mstto=es

Billingual Viewer:在任何網頁上(僅限 http 協定,無 https)

您可以使用 Microsoft Translator 雙語檢視器連結至 翻譯 網頁。 

範例:

您可以直接在連結中嵌入所有選項。以下是運作方式:

語法 (請參閱上述範例):

http://www.microsofttranslator.com/bv.aspx?

          from=<source language>&

          to=<target language>&

          lo=<layout>&

          a=<target address>

有效的語言代碼:

en, de, fr, it, es, pt, zh-chs, zh-cht, ja, ko, ar, ru, nl, cs, da, he, el, pl, sv, th

有效的佈局代碼:

SS (並排)、TB (上下)、SP (原始與懸停翻譯)、TP (翻譯與懸停原始)