How to add Google Translate to your forum with Custom Theme

2 minute read

August 2, 2010

How to add Google Translate to your forum with Custom Theme

*The Custom Theme feature is available to Plus and Premium Plan members only!

What is Google Translate?

Google Translate is a free statistically-based machine translation service provided by Google Inc. to translate a section of text, document or webpage, into another language.

Currently Google Translate offers the following languages when adding their service to your site(vanilla forum): English, German, Spanish, French, Italian, Portuguese, Japanese, Korean and Chinese (Simplified).

Understanding the Google code

All you need to do is pass Google your forum url and specify what language to translate the content into.

http://google.com/translate?langpair=XX%7CYY&u=(your URL here)

A closer look at the code above:  XX is the code for the original language and YY is the code for the language which you want to translate into.

So for example, if you wanted to translate your forum into French you would change the XX to en and the YY to fr.

<a href="http://google.com/translate?langpair=en%7Cfr&u=http://yourforumname.vanillaforums.com">
French
</a>

Adding Google Translate to your Vanilla forum

Let’s begin!

*You may want to also read the tutorial on using Custom Theme

  1. Go to Custom Theme – located on the left Menu Panel under Appearance.
  2. Once inside of Custom Theme the ‘Edit Html’ tab will be active by default – this is where we will add the Google Translate code.

We will start by adding a link in the main menu to translate Vanilla into French. In ‘Edit Html’ look for <ul id “Menu”>. After the last link, {signinout_link}, add the following code:

<a href="http://google.com/translate?langpair=en%7Cfr&u=http://yourforumname.vanillaforums.com">
French
</a>

Here is the result:

Now click on the ‘French” link and watch the magic happen!

Before

After

Now get translating! ☺

Here is the result:

product

Share Your Thoughts

Your email address will not be published.

Admin

Written by Admin

Have an Article for Vanilla's Blog?

Send us an email to [email protected] with your topic idea and we'll circle back with our publishing guidelines.

subscribe-1
Subscribe to the Community Corner Newsletter and get expert insight and analysis on how to get the most out of your online community every Friday.

    Request a Demo

    Schedule a product demo now.

    Contact Us