Google Translate WordPress Plugin

135 Flares Google+ 1 Twitter 2 Facebook 7 Reddit 0 StumbleUpon 125 LinkedIn 0 135 Flares ×

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!

Article Written by
John P.

John P. is CEO of Livid Lobster and co-host of Geek Beat TV. You can also find him on Twitter, Facebook and Google+.

Comments

  1. 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 says:

    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,

    Ognian

  3. matias says:

    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 says:

    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. I’ve tried many times, but has not been successful and hard at all, what is wrong. why? thanks for the information

  6. 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!

  7. Peter says:

    <img src="/wp-content/plugins/google-translate/images/germany.gif" width="22" height="15"

    Did have to remove the slash in the code ref to the flags of this wp plugin now its works fine

    <img src="wp-content/plugins/google-translate/images/germany.gif" width="22" height="15"

  8. Bode says:

    Hello everyone,
    I have a little problem with translator on my blog and have been receiving numerous comment that they want translator which am finding it a bit diffcuit to get that on my blog since am using http://blog.com if it were to be blogger definitely i wouldnt be having this problem but can anyone help me out how to go about this.

    cheers

    • John P. says:

      Bode,

      Those are not real comments on your blog. I took a look and they are all automated spam comments. You can’t believe anything they ask, and I doubt you really need a translate plugin at all.

      You need to delete anything that doesn’t look like a real discussion of the topic on which it is posted, especially if it doesn’t have a real user name, etc. Otherwise Google will think you just have a spam link farm on your site and will penalize you.

      Good luck,

      John P.

  9. Nikolova says:

    I have installed the aforementioned plug-in, most of the translations seem to be quite decent, but it appears to not be localised well, especially in terms of date format, which is different for different countries and other small details, which require further and manual localisation

  10. Thomas says:

    thank your plugin.
    i have found plugin translate but i dont know which best :(
    i am new bie for word press

  11. Ranjith says:

    Hey,

    First up, thanks for bringing this translator thing to my notice.

    But, doesn’t this work any longer?

    I tried it for my site healthburden.com, but my attempts failed. :(

  12. rionur says:

    Wow.. fantastic,,
    i will place the Plugin in my WP .hehe

  13. BenBen says:

    so wonderful. It is like a bridge between different people using different language.

  14. Kumar says:

    hi, i tried to add translator on my blog, but it does not appear, can u pls suggest how to add,? thanks

  15. Ivan says:

    Hey John! Can you explain to me how to install this on the kubrick theme? I need to add the horizontal layout on the top right side of the theme header. Thanks for your consideration :-)

  16. Dave Metz says:

    This is far supierior to Babelfish, although I thought Bebelfish was pretty good at the time of its release.
    A few more language options would be beneficial. I expect these will gradually be added in due course.
    Many thanks for this great tool.

  17. John P. says:

    Ken,

    As I said in the post, “you will need to edit your templates to include the function”.

    Unfortunately, every single WordPress theme is different. And people will want this in different places on their site. There is no way in the universe for me to tell you how or where specifically to put the code in your theme.

    I suggest asking whomever you got your theme from where you can use this code as they should be able to tell you very quickly.

    John P.

  18. Ken Stone says:

    Don’t you think it may be a good idea to tell us non-coding non-programing types a little more about where to paste your text?

    I note that others have asked this same question, but have failed to see your response.

    Thanks

    Ken

Speak Your Mind

*

135 Flares Google+ 1 Twitter 2 Facebook 7 Reddit 0 StumbleUpon 125 LinkedIn 0 135 Flares ×
We Need Your Help to Keep Producing Quality Content! Support Livid Lobster!