Discovered, you need to use this javascript code to translate the webpage:
<script src="http://www.microsoftTranslator.com/ajax/v3/WidgetV3.ashx?siteData=ueOIGRSKkd965FeEGM5JtQ**" type="text/javascript"></script>
<script type="text/javascript">
function translate(content) {
if (document.readyState == 'complete') {
Microsoft.Translator.Widget.Translate('en', content, onComplete);
}
}
function onComplete() {
Microsoft.Translator.Widget.domTranslator.showTooltips = false;
Microsoft.Translator.Widget.domTranslator.showHighlight = false;
Microsoft.Translator.Widget.domTranslator.showmessagebox = false;
Microsoft.Translator.Widget.showTooltips = false;
}
//You can use Microsoft.Translator.Widget.GetLanguagesForTranslate to map the language code with the language name
Simply send the language code in any onclick event, for example:
<a href="#" id="a1" style="list-style-image: url('images/flags/ac.png');" lang="en" class="selected">English</a>
We hope you find this information helpful.