websource.heliohost.org

Tutorials, Guides, Articles...and more

rss feed contact with us about me




aaaaaa
aaaaaa
aaaaaa
aaaaaa

Monday, 16 April 2012 01:10

Translate Your Website To Any Language Using Google Translate

Written by 
Rate this item
(1 Vote)

Required Knowledge: HTML

A website has information about something. The information is written in the native language of the writer or in English. But there are people who can't use this article behalf of the language. So the need to search more and spend more time for finding something that they found but they couldn't read.

There is solution and it's called google translate. We may use google api for translation and translate our website in any language. At this tutorial we will describe two methods and their differences.

METHOD 1 - BY URL

It's possible by using just only one url, to translate the whole website to any other language (suppored by google). We need the following url

html code
1
http://www.google.com/translate?sl=XX&tl=YY&u=http://www.trial.com

We have to define three parts, the original language of website, the language that we want to translate and the url of the website:

  • sl - original language
  • tl - translation language
  • u - url of webpage

At sl and tl you need to put the language code. You may find these codes here at Languages enum.

By clicking next link you will see this website translated in greek Translate in Greek

For this we used the following link

html code
1
http://www.google.com/translate?sl=XX&tl=YY&u=http://www.trial.com

IMPORTANT: If you continue navigate to the website you will see the content translated

With this method it isn't possible to translate a part of the webpage.

METHOD 2 - BY GOOGLE TOOLS

This method is static. You copy a code, generated by a google tool, in your website and the content of all website or a part of it translated to an other language.

You will find it by visiting this site http://translate.google.com/translate_tools

CONCLUSION

Google has many apis that help as to make very good services to our website for our visitors. One of them is the translate api. With this one you have our website in many languages and help us to increase our audience.

Read 264 times