
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.
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!
Related posts
- 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...
- No Ping Wait Wordpress PluginThe useful No Ping Wait Wordpress plugin was created by by Robert Deaton, but due to an apparent hardware failure...
- 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...
- Laptop Tip – Restore Battery LifeEven though laptops are meant to travel, we all know they spend 95% of their life perched on a desk...
- Blog Rush Brings Your Blog Free Traffic – NOT! EDIT: I removed the widget referenced below because after a few people installed it (including me of course) it...
- 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...
- Free Wordpress Theme: Rapid AccessAs a result of three Digg homepage appearances over a period of a few weeks bringing my blog to it’s...
Pages: « 1 [2] Show All
Great job! Please add latvian language to next release!
nice work thanks
can you add hindi in this
[...] Google Translate WordPress Plugin – Utiliza el sistema de traducción de Google para traducir tu blog hasta a 10 idiomas con un sencillo widget. [...]
Hmmm will this change my existing permalink structure? Because I am much worried about changing the permalink itself.
[...] Google Translate WordPress Plugin – Utiliza el sistema de traducción de Google para traducir tu blog hasta a 10 idiomas con un widget. [...]
I installed and activated the ExecPHP plugin, added the in the sidebar widget and in the functions.php, but it still does not work. What am i doing wrong?
Thanks for your help
Also, I’m getting this error when I activate the translate plugin:
Warning: Cannot modify header information - headers already sent by (output started at /home/indrasuc/public_html/familyofentrepreneurs.com/wp-content/themes/indra/functions.php:30) in /home/indrasuc/public_html/familyofentrepreneurs.com/wp-includes/pluggable.php on line 391Thanks for the explanation, but I’m either too new at this or too dumb to understand your simple instructions about editing “the templates” by adding the following code to include the Google Translate function.
For a horizontal layout add the following:
For a vertical layout add the following:
Where is this added to? On what template? I’ve added the code to the bottom of each of the php template files but nothing appears on any of the pages or within any of the posts.
Appreciate your help. Thanks in advance.
Thankyou im getting a lot of traffic from non english sites this is brilliant.
Thanks
Thanks.
The pulgin is helping each readers
Please add Ukrainian language to next release!
I installed the plugin, and updated the templates to include the code
but my blog is not rendering the function. It is like it’s not finding the function.
any ideas?
Google Translate now support Turkish and more few language.
Please update this plugin and support other languages.
where can i paste this line? in wich archive of my template?
php if(function_exists(’google_translate’)) google_translate(2);
thanks
Thanks for this tidbit, I appreciate you and will be back often….
I found your blog on google and read a few of your other posts. I just added you to my Google News Reader. Keep up the good work. Look forward to reading more from you in the future.
Yes this is going to help improve my blogs seo as well as worldwide visitors.
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
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.
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.
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 :-)
hi, i tried to add translator on my blog, but it does not appear, can u pls suggest how to add,? thanks
so wonderful. It is like a bridge between different people using different language.