Embed Google Translate Page in Your Website

Posted on 8:06 AM by Unknown

Embed Google Translate
Any website / blog master certain issue and said "the triple question mark," when viewing some web / blog owned by friends or other people have the application for translating web / blog to another language with the help of google.

Then they try to find how, and find it in one of the website application provides. Finally, they use the application. But, once they use it, they began to sicken because of the application can not be displayed in accordance with the desire. Start from a language that is too much, so it does not match the pages and some links that are too light and disrupt.

Some of them decided not to wear again, and still others use. And few of them try to find the secret behind the application. Detrain items inside the links and try to solve how. And last, about 1% of those who seek to find the secret "search engine" on this website.

May be that you experienced. Don't worry, I also experienced. : D. ... So I will share with you a little secret, and please develop.

Basically you have to write:
<a href="http://translate.google.com/translate_p?hl=
"language code&sl=auto&tl=language code&u=your address that translated">
<img src="address where you saved the flag image"/></a>

For the language code can be seen "here"

For "flag image" you should set up a folder for saving it in your hosting. If you use blogspot you can upload the flag image in your posting page, and see the "sorce code" from "edit html"

"address that translated" to be made in such a way, so that you do not need to change the address of each put in a new page. therefore create a page of javascript to do so. like this one :
function translate()
{
window.open("http://translate.google.com/translate_p?hl=
"language code&sl=auto&tl=language code&u=" + window.location.href)
}


Save your javascript page in somename.js and load your script,like this one :
<script type:text/javascript src="somefolder/somename.js">
</script>

Then change the "href" value into : href="javascript:translate()". So the script look like :

<a href="javascript:translate()"> <img src="
address where you saved the flag image"/></a>

And Your Google Translate Page Ready to Use

Related Post



No Response to "Embed Google Translate Page in Your Website"

Leave A Reply