Google Translate

Use Google translate for your website to translate many languages and show on website with the same format.
I have done this using javascript. Different techniques can be used to apply google translate for your website.

Languages supported by Google translate

Afrikaans
Albanian
Arabic
Belarusian
Bulgarian
Catalan
Chinese
Croatian
Czech
Danish
Dutch
English
Estonian
Filipino
Finnish
French
Galician
German
Greek
Haitian Creole
Hebrew
Hindi
Hungarian
Icelandic
Indonesian
Irish
Italian
Japanese
Korean
Latvian
Lithuanian
Macedonian
Malay
Maltese
Norwegian
Persian
Polish
Portuguese
Romanian
Russian
Serbian
Slovak
Slovenian
Spanish
Swahili
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Welsh
Yiddish

Steps to use on your site:

Step 1: Add dropdownlist to change to language like below


        English
        Arabic
        French
        Chinese
        

Step 2: Add following javascript code to the footer


Note: You can add languages to dropdown listed above, there may not be accurate translation.

5 thoughts on “Google Translate

  1. I admire what you possess done here. I like the associate oneself with where you allege you are doing this to give without hope but I would suppose by all the comments that this is working conducive to you as well.

  2. Hello sir nice post but here i have two textboxes and one button in textbox1 when i type any text in english and press button i want to translate it to kannada/..so pls let me know how to work with it thanks in advance..

    1. ChangeLanguage function written above need simple manipulation for this. In elements variable put your textbox id, and get ElementById instead of getElementsByTagName in this function. Try

  3. Hi, I have added the piece of code. But it does not work. Am I missing anything? Do I need to include any reference ?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>