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:
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:
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.