A few days back, Dorota asked me to share the trick of those flags under this blog title. So here you are the WordPress plugin.

This plugin initially developed by Scott Hough. The original translation service used was Google Translate. But I was disappointed by the frequent errors thrown by Google Translate. Another bug was, you cannot translate more than once. To translate into other language, you need to go back to the original page and click different flag.


  1. Your blog must be written in English. This is because only this language can be translated into many languages by Babel Fish.
  2. You are using WordPress 1.5 and above. It’s tested in WordPress 2.1 (this blog (^_^)v )
  3. You have access to install the plugin

Installation and Usage Guide:

  1. Extract the zip file, upload the wp-translate directory to your plugins folder, usually wp-content/plugins/
  2. Activate the plugin on the plugin screen.
  3. Add <?php translate(n); ?> to your template where you want the flags to be displayed. n can be either 1 or 2. 1 is for a vertical display. 2 makes it horizontal.

For non WordPress user, you can still use this plugin provided your Web Server supports PHP. To do so, please follow this steps:

  1. Extract the zip file
  2. Edit wp-translate.php which is located in wp-translate directory
  3. At line 103, replace $img_loc = get_settings(’siteurl’) . ‘/wp-content/plugins/wp-translate’; with $img_loc = ‘/wp-translate’;
  4. Save the file
  5. Upload the wp-translate directory to your root folder.
  6. In the page you want the flags to be displayed, put <?php include_once(realpath($_SERVER[‘DOCUMENT_ROOT’]).’/wp-translate/wp-translate.php’); ?> in the first line of the file.
  7. Add <?php wptranslate(n); ?> anywhere you want the flags to be displayed. n can be either 1 or 2. 1 is for a vertical display. 2 makes it horizontal.

If you like this plugin, please link-back to this post, or add me to your blog-roll. Would be greatly appreciated. Thank you.

Having problem with installing the plugin? You have ideas for the plugin? Post a comment and I will try my best to help you.

Sodeve’s WP-Translate 2.1

Update: 19 May 2007

Users of this plugin:

  1. Myself (^_^)v
  2. Founders Cafe
  3. Your Blog?
GD Star Rating
How To Translate Your Blog Into Multiple Languages, 2.0 out of 5 based on 1 rating
Dorota asked me to share the tric" data-image="">

Incoming Search Term

Taking online dvd rental is a very easy task these days. Just surf over the internet to find out some classy dvd and flat panel tv stores that sell goods online. Not just home dvd players, but you can also buy car cd mp3 players online. Though, nowadays, latest branded cars have built-in computers besides sub-woofers and CD players.

2 Trackbacks


21 comments so far

Add Your Comment
  1. Thanks for the plugin!

  2. OH and I also added you to my blogroll. Thanks for the info 😀

  3. cheers (^_^)/

  4. Hi!

    first of all, Thank you for your work

    you told us here about an automatic translation. I have checked the spanish version but it is unsatisfactory.I am looking for a tool that allow me transalate a blog.

    I think this technique is good for informal blogs. In my case I will be looking for something more accurate since I need a News blog in three different languages.

    if it is helpful, drupal with the modules Localizer and Blog, allows translation of blogs in different language (but not automatic as your variation)

  5. Hi Cesar.

    Actually there are other kinds of manual translation (you need to write your posts in two or more languages).

    If you know other free translation service which provide better translation compared to Google Translate/Altavista BabelFish, please share it with us. I will incorporate it here.

  6. Hi! glad u enjoyed the video and at the same time be the first person from mybloglog to appear at the recent readers widget which I have just added to my blog.

  7. This is a very cool plugin. But I’m not very tech-oriented. Does it work on Blogger?

  8. online translators are not perfect. theyre good at getting the gist of a story. but it fails to catch the nuances of the culture and sometimes even the obvious. i use google to double check my practice blog entries and that too contains many mistakes.

  9. I downloaded wp-translate and when i activated this plugin, iam getting error message “Plugin could not be activated because it triggered a fatal error” can you help me how to resolve this

  10. Hi Anuradha,

    It’s strange that you experience such error. As myself and Jimmy able to install it without any issues.

    May I know which hosting company are you using? Which WordPress version are you using?

  11. I found out that it’s broken for WordPress 2.2. Expect the patch soon.

  12. Thanks a ton for the plugin! I was loosing traffic without wp-translate after my upgrade. I do have a question, though. How would I append a text link behind each flag? It was simple with the original wp-translate plugin, but I’m not enough of a programmer to alter the javascript in your new version.

  13. Hey man thanks for the plug-in im going to check it out but i noticed a typo in the wordpress walk thru. is what it says that gives me an error but in your read me file it has and that works for me thought i would let you know

  14. Cheers Vash… I believe the problem caused by the version of WordPress you are using. There is one variable/function that overwritten by the plugin, thus causing error. (Frankly I forgot which one..haha.. should document it properly next time)

  15. @PipeDreamerGrey: I think you should open the .php source code. Change the parameter of the tag. I’ve discussed about this exact parameter of IMG in http://sodeve.net/internet-explorer-is-the-blue-pill-firefox-is-the-red-pill/

  16. Nice work, but is it work on WP 2.61?

  17. @John,

    I don’t know John, it should be. Because it’s just a simple PHP and Javascript. My host never upgrade their WordPress 😀

    Any volunteer?

  18. Занимаюсь дизайном и хочу попросить автора sodeve.net отправить шаьлончик на мой мыил) Готов заплатить…