InsideMicrosoft

part of the Blog News Channel

Windows Live Translator For Your Website

Windows Live’s excellent Translator service has now released a single line of code that you can add to any website to give visitors the option of translating your website into their language of choice. Just head to translator.live.com/AddIn.aspx, select the language your website uses, and it’ll give you the code. If your site is in English, this will be the code:

< script type="text/javascript" src="http://translator.live.com/TranslatePageLink.aspx?pl=en" >< /script >

Just dump that anywhere in your template (hopefully somewhere people will notice) and your visitors will see a drop-down menu, where they can select usually from up to eleven languages to read the page in (non-English languages will have fewer options).

If you’d like to display flags of different countries as a means of showing translated versions, you can hack the code to link the flags to the proper translation. You’ll need to link the flags to URLs like this one:

http://www.windowslivetranslator.com:80/BV.aspx?lp=en_nl&a=WEBSITEADDRESS

The “WEBSITEADDRESS” has to be replaced with the actual web address, or a function that inserts the web address, and “en_nl” has to be replaced with the codes for the original language (“en” for English) and the language being translated into (“nl” for Dutch). To see this page in Dutch, click here.

November 14th, 2007 Posted by | Live, Windows | one comment



Hosting sponsored by GoDaddy

1 Comment »

  1. On my blog I have the Applied Language tool which I think is much more reliable. You can download thier code here http://www.appliedlanguage.com/trans/free_quick.aspx

    Comment by Richard Michie | November 20, 2007

Leave a comment