Here I'll show you an easy way of having multiple language versions of your website. For this purpose we will use the Google's automatic translation. So let's get started:
1. Create an empty a href tag and put the following url there:
http://translate.google.com/translate?hl=en&langpair=en%7Cde&u=http://www.example.com/"
2. Replace www.example.com with your own webpage.
3. You must replace the value langpair=en%7Cde with en%7Cit for English to Italian or de%7Cen for German to English translation.
Bonus: Create images with flags of the preferred countries that you want to use and put them within the a href tag.


For example for the image tag you can use:
img src="german.gif" alt="Translate to German" border="1" height="12" width="18"
Thus when a user click on the flag google.com will translate the whole web page automatically.
Example: Translate this web page to German!
Congratulations.
By now you'll have your webpage translated into as many languages as you wish!

0 коментара:
Post a Comment