How to add the Google website language selection tool in your website

To add the Google website language selection tool in your website, just add the code shown bellow.

<table width=”100%” border=”0″>

<tr>

<td align=”center”>

<div id=”google_translate_element”>

</div>

<script>

function googleTranslateElementInit() {

new google.translate.TranslateElement({

pageLanguage: ‘uk’,

layout: google.translate.TranslateElement.InlineLayout.SIMPLE

}, ‘google_translate_element’);

}

</script>

<script src=”http://translate.google.com/translate_a/element.js?cb= googleTranslateElementInit”>

</script>

</td>

</tr>

</table>

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s