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

Download Google Translate v.3.24.07

Installation

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.

Usage

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.

Enjoy!

Twitter Comments

Christmas_Angel RT @johnpoz: Google Translate Wordpress Plugin http://onemansblog.com/azi
Re-Tweet | Reply | View Tweet
Tags: , , ,

Related posts

  1. Wordpress Plugin: WP Admin Bar ReloadedNOTE: This plugin has been abandonded in favor of Viper’s better WordPress Admin Bar. Go get it!!! WP Admin Bar...
  2. No Ping Wait Wordpress PluginThe useful No Ping Wait Wordpress plugin was created by by Robert Deaton, but due to an apparent hardware failure...
  3. Complete List of OMB WordPress PluginsI recently completed the upgrade to WordPress 2.3 and thought it was about time I gave some credit where credit...
  4. Laptop Tip – Restore Battery LifeEven though laptops are meant to travel, we all know they spend 95% of their life perched on a desk...
  5. Clean Up Your WordPress 2.3+ Database after Ultimate Tag WarriorThis post is for a very select group of people. Namely, bloggers who have been using WordPress since before version...
  6. WP Super Cache Speeds Up WordPress BlogsDonncha O’Caoimh, one of WordPress’ lead developers spent the last few weeks working on a brand new plugin called WP...
  7. WordPress Custom Database Error PagesIf you’re running WordPress 2.3.2 or later, there is a new feature that allows you to to specify an error...