Fixed: WordPress Language Translator Plugin

This language translator plugin and widget for WordPress is based solely on Trevors old translator widget plugin. His WordPress Translate plugin worked fine for me up to the latest WordPress version release. Starting with WordPress 2.2, there was a complication that caused his great plugin to break. The main problem was that one of the functions in WP 2.2 was named translate which caused an error when the plugin was activated.

I simply changed or fixed the function name, making this "WordPress Translator Plugin" work with WordPress version 2.5 and beyond. I am providing the fixed version for others in hopes that I might help those who are having trouble with the original WordPress Translate Widget plugin on newer WordPress versions.

WordPress Language Translator Screenshot:

WordPress 2.2.2 Language Translator plugin

How to install the WordPress Language Translator Widget:

NOTE: This Translator is no longer available. Please use something like the GTRANS instead.

  1. Download the Language Translator Plugin.
  2. Unzip the plugin and upload the (translate folder and it's contents) to your /wp-content/plugins/ directory.
  3. Log in to your WordPress Admin Panel, navigate to the plugins section and activate the Language Translator Plugin.
  4. From the Admin Panel, navigate to Presentation -> Widgets and drag and drop the ltranslate widget into the position where you would like it to appear in your sidebar.
  5. Save the changes and go view your site :)

If you would like to place the translator outside of the sidebar, for example in your header.php, footer.php etc, simply add the code <?php ltranslate(); ?> where ever you would like to call in the plugin.

The Reason for this plugin:

Errors a person might encounter with the old translate plugin when upgrading:

Fatal error: Cannot redeclare translate() (previously declared in /wp-includes/l10n.php:20) in /wp-content/plugins/translate/translate.php on line 13
Warning: Missing argument 1 for translate() in /wp-includes/l10n.php on line 20
Warning: Missing argument 2 for translate() in /wp-includes/l10n.php on line 20