Google Translate WordPress Plugin

Google Translate Vertical
The Google Translator plugin allows WordPress to add a number of alternate languages to your blog.

This plugin is derived from Scott Hough’s WP Translate, but makes a number of changes:

  • The Google Translate service is used, which does a much better job of maintaining page layout then Babelfish.
  • Height and width attributes are included for all images.
  • ‘rel=nofollow’ has been added to all links to prevent search engines from following them.
  • Alternate text for all images have been improved.
  • The plugin fully validates under XHTML.


Download Google Translate v.3.24.07


Google Translate should work in all versions of WordPress 1.5 and newer.

  • To install the plugin simply unzip then upload the entire google-translate directory to your plugins folder (/wp-content/plugins/)
  • Activate the plugin within the WordPress Administration Plugins area.


To add Google Translate to your web page you will need to edit your templates to include the function.

Google Translate

For a horizontal layout add the following:

<?php if(function_exists(‘google_translate’)) google_translate(2); ?>

For a vertical layout add the following:

<?php if(function_exists(‘google_translate’)) google_translate(1); ?>

Use As a Sidebar Widget

If you would rather include the translation in a Widget sidebar you will first need to add a plugin which allows you to execute PHP within the sidebar. I recommend the ExecPHP plugin.

After installation and activation of ExecPHP you can include the Google Translate function within the sidebar Widget area.

License / Warranty

This plugin is distributed freely, just like the original. Feel free to use it, change it to meet your needs, etc. If however you re-distribute it you must include links and reference to Scott Hough and John Pozadzides.

If you find this little widget helps you out and you’d like to return the favor, please provide a link back to One Man’s Blog. Or at least drop me a comment below to let me know it helped out.


There are 71 comments

Add yours
  1. Kundan Raj Bhattarai

    Thanks for sharing the article. Previously I used to go to Google translate and then translate it. Now we have the option at the blog itself which makes it easier. But I found it, that it translates fantastic for some languages but for some languages it is not accurate. Anyway it is better to have something than nothing.

    Thanks and Regards.

  2. Ogi

    Hello John,
    Please, tell me how to change the translation to default “Bulgarian” to X language. When I click for example the German flag it translates from English to German. I am sure in England or US the people can’t understand the origin language of my website.
    It will be of great assistance for me. Thank you in advance,


  3. matias

    I was wondering, what if I wanted to translate from another language that is not english.

    And what could be the reason Im not seeing the flags, but the language names instead

  4. Dorian Jasik

    It’s in point of fact a great and useful piece of info. I’m happy that you shared this useful information with us. Please stay us up to date like this. Thanks for sharing.

  5. Ismael Lovato

    Thanks a lot for sharing this with all people you actually understand what you’re talking approximately! Bookmarked. Please additionally talk over with my website =). We can have a hyperlink exchange contract among us!

Post a new comment