Posted on Mar 25, 2007 - 1:45am by John P. in Google Tools, Wordpress

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:
Download Google Translate v.3.24.07
Google Translate should work in all versions of Wordpress 1.5 and newer.
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); ?>
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.
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!
I use the "No Adverts for Friends" plugin by Donncha O Caoimh
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.