Skip to content
1.0http://trevorcreech.com/blog/2007/02/17/translate-widget-20/

Translate Widget 2.0

Translate WidgetI have just finished a major update to my Translate Widget. This widget plops into you sidebar, using the Wordpress Widgets plugin. To quote my younger self:

it adds little flags to your sidebar, which will take you to a translation of the current blog page. It uses Google Translate, but removes the frame, so it looks quite nice! Once you’re in one language, you can browse around the blog, and everything stays translated. You can just click on the English flag to get back to the original language. You should see it on my sidebar now, and you can give it a trial run.

Here’s the download: Translate Widget 2.0

The zip includes a /flags/ folder, and a translate.php file. Both need to be placed in the /wordpress/wp-content/plugins/widgets/ folder.

Donations

If you appreciate my plugins, and feel compelled to spread some love, I would certainly appreciate it. No obligation though, of course.


Improvements in Version 2.0:

  1. Multiple starting languages are now supported. So, if your blog is in a foreign language, this widget will now translate it to English and any other supported languages. This is a big deal, since it opens the widget up to the international community. One guy got this working for French, but now all supported (by Google) languages are available.
  2. Russian is added to the list of languages
  3. A control interface was added:
    Translate Widget 2.0 Control Interface

People using the Plugin

I’ve just started to compile a list of those who use this plugin on their websites. You can view the list here.

You can buy online dvd rental but its good to read reviews before you purchase. Products like car cd mp3 players and laptop computers are very much in demand and you can easily find reviews related to these products as well as others i.e. desktop computer or LCD computers.

67 Comments

  1. I just found your great Translate Widget version. I would like for this to be able to show a brazilian flag instead of the portugal flag if possible. How do I make that change. I love the idea. It is a great addition. Thanks.

    Saturday, February 24, 2007 at 14:18 | Permalink
  2. Alpesh wrote:

    Thank you so much for this widget, my simple small site now translates into more languages :)

    Friday, March 9, 2007 at 6:14 | Permalink
  3. I was happy to find your simple tool and liked to install it on my German WordPress 2.1.2.

    Unfortunately, Iditn’t found the controll interface and the layout of your Widget was not simular your example. I would like the same layout. (The flags in a line order.) After my integration of the widget all flags was in a table with two flags in one line with a lot space.

    Please contact me, if you have a solution.

    Thanks

    Thomas

    Tuesday, March 20, 2007 at 7:27 | Permalink
  4. Chris wrote:

    Very nice! It works great!

    Tuesday, March 27, 2007 at 11:09 | Permalink
  5. Great work! Even though Google’s translation is not perfect, it goes a long way in making the world a little smaller. Thanks for making my blog international!

    Thursday, March 29, 2007 at 18:46 | Permalink
  6. Nathan wrote:

    Is there a way to make the flags horizontal instead of vertical? Thanks in advance. This is a great tool.

    Saturday, March 31, 2007 at 18:25 | Permalink
  7. Zechary wrote:

    I have installed on my blog. It works fine. But the translation is not so good, it is not about the widget, but google. Hope google will improve the translation soon. Thanks again, Trev

    Tuesday, April 3, 2007 at 3:25 | Permalink
  8. Simple, effective. Love it. Many thanks, Trevor!

    Matt Jeppsen
    http://www.freshdv.com

    Friday, April 6, 2007 at 19:03 | Permalink
  9. Hi Thomas.
    I had the same problems you had, from a french website.

    My workaround:
    Line 74 of plugin file translate: I force the call.
    // translate($options['orig-lang'],$options['en-flag']);
    translate (‘fr’,'uk’);

    Otherwise, I confirm that I can’t see any control interface

    Thursday, April 26, 2007 at 10:08 | Permalink
  10. Again: I don’ know what happened, after previous operation, something just unblocked. The control interface appeared. I selected the radio buttons and then put back the call to translate($options[’orig-lang’],$options[’en-flag’]);

    works fine now (My wordpress is 2.1.3)

    Thursday, April 26, 2007 at 10:14 | Permalink
  11. MysterHK wrote:

    Trev,

    I just want to say what a fantastic feature you designed. You are obviously a very talented and unique individual and it shows!

    Many thanks for your wonderful translation widget! :D

    Saturday, April 28, 2007 at 11:57 | Permalink
  12. Pat wrote:

    hi trev,

    i installed your files in wp-content/plugins/widgets/ and have activated the plugin in my Plugin Management screen but i don’t see the flags in my posts. maybe you can help?

    thanks!

    Friday, May 4, 2007 at 3:50 | Permalink
  13. “Whether the weather be hot, or wheather the whether be cold, we will wheather the wheather, whatever the wheather, whether we like it or not.” Try that one, and see whether anything interesting crops up? Enjoy. & Thanks a Bundle.

    Sunday, May 6, 2007 at 9:29 | Permalink
  14. mike wrote:

    FYI Trevor, the widget is broken in wordpress 2.2

    Wednesday, May 23, 2007 at 11:49 | Permalink
  15. Trevor wrote:

    Thanks Mike,
    The widget should now work in Wordpress 2.2. Just download it again from the same place.

    Thursday, May 24, 2007 at 15:56 | Permalink
  16. MysterHK wrote:

    Hi Trev,

    I’ve just completed an upgrade to wordpress 2.2 as well. I was able to get the translator plugin up and running, but for some odd reason, it’s adding an extra unknown url path as it goes through google. I’m looking at my end to see what I can do to alleviate this problem, but if you have any suggestions, I will gladly implement them and disseminate the information to fix it.

    Thanks again! :smile:

    Monday, June 18, 2007 at 8:58 | Permalink
  17. MysterHK wrote:

    Trev,

    I just went to w3c’s validator service and I believe I know what’s causing the problem. I think it has something to do with the php code in my theme template that’s causing it. I’ll keep you posted. :smile:

    Monday, June 18, 2007 at 9:53 | Permalink
  18. The address for the translation go wrong because it writes two times wordpress.

    its for a french site and as you see my blog adress is http://catastrophy.b.free.fr/wordpress/
    and not http://catastrophy.b.free.fr/wordpress/wordpress...

    what i must change ?

    regards

    Tuesday, July 3, 2007 at 11:30 | Permalink
  19. I’m having the same problem as MysterHK and catastrophy…any suggestions? Tks and nice work, Trev.

    Thursday, July 5, 2007 at 13:02 | Permalink
  20. Trevor wrote:

    To everyone experiencing problems with the plugin:
    I am currently working on the next version of the plugin, which will fix that issue.
    Give me about 3 days, and it should be done.

    Thursday, July 5, 2007 at 18:37 | Permalink
  21. drizad wrote:

    Yes, Trevor…

    I think there is some bug with your widget. Although I installed on my WP 2.1.3, it seems that the widget add another /blog/ on the translation link. So, the translated page end up on 404.

    Hope it can be fix soon.

    Thanks, bro!

    Friday, July 6, 2007 at 8:18 | Permalink
  22. Trev is workin on we have to wait…
    not easy to do I gess…

    Saturday, July 7, 2007 at 4:00 | Permalink
  23. lephio wrote:

    this wonderful plugin has to become SEO optimized! you should do something to let the spider read the translated pages too!

    Sunday, July 8, 2007 at 20:53 | Permalink
  24. we are still waiting for the correction…

    regards

    Wednesday, July 18, 2007 at 1:16 | Permalink
  25. wendy wrote:

    Hello,

    I have installed your widget into WP 2.0.4 — and it is activated in my plugins. But, I find no panel or interface to allow me to adjust the widget at all. Could you please help me?

    Regards!

    Wednesday, July 18, 2007 at 9:30 | Permalink
  26. Vijay wrote:

    Nice one. thanks for the widget. It works flawlessly.

    Saturday, August 4, 2007 at 2:16 | Permalink
  27. Trevor wrote:

    Hola,
    I have updated the plugin. I fixed the double url bug, and it should work fine. Get it from the same download location. I’ll be writing a post announcing the new version soon.

    Saturday, August 4, 2007 at 16:09 | Permalink
  28. Thanks a lot, Trev,

    best regards

    Sunday, August 5, 2007 at 13:36 | Permalink
  29. Big Fella wrote:

    Hi Trevor-

    Just found your Translate widget and I downloaded the zip, but your instructions state that a /flags folder is included. All I see in the unzipped package is the Translate PHP, a flags.png and a blank.gif.

    When I activated your widget (in WP 2.0.2) I do get a sub-title of “Translate” in the sidebar, but the flags do not display as on your blog, all in a row, they display in a small square box and clicking on the box does not link to any language.

    Sunday, August 5, 2007 at 16:57 | Permalink
  30. Put in the widget folder the 3 files ( without the translate folder) and it will works.

    regards,

    Monday, August 6, 2007 at 3:03 | Permalink
  31. Big Fella wrote:

    Thanks, Trevor, your new code works perfectly. A little PayPal love is on your way, use it wisely (like getting something to quench your thirst…)

    Monday, August 6, 2007 at 10:32 | Permalink
  32. A little Paypal too..; ;-)

    Wednesday, August 8, 2007 at 6:36 | Permalink
  33. Uloons wrote:

    Please i need translation all international´s laguages

    Thank you sir

    Tuesday, August 28, 2007 at 3:00 | Permalink
  34. Joyangel123 wrote:

    Hey Trev,
    Exactly what I need for my travel blog.
    I will give will give it a try.

    Thanks

    Wednesday, September 12, 2007 at 8:41 | Permalink
  35. iobject wrote:

    ive uploaded the latest translate (2.5) to my wordpress site (2.2.2) and i have the widget showing on the homepage with the Translate title but it’s blank underneath. I tried it in /plugins/translate and in /plugins/widgets/translate and i also tried just uploading the files into those two folders without the translate folder. ive also tried changing themes to see if that was the problem. any suggestions?

    incidentally this was a new wordpress install and i didnt have a widgets folder.

    Thursday, September 13, 2007 at 18:59 | Permalink
  36. iobject wrote:

    looks like it may be a theme related issue. it doesn’t work with the Talian 1.0 theme or Ad Clerum 1.5 and it behaves strangely with Redie 3.0 but works fine with one of the default themes.

    Thursday, September 13, 2007 at 19:44 | Permalink
  37. super wrote:

    thanks i used it on http://www.supercom.org and it fit very well! very nice job!

    Wednesday, September 19, 2007 at 22:41 | Permalink
  38. Please help! i used it on and i can´t see the flags!

    Thursday, October 11, 2007 at 12:11 | Permalink
  39. Hello Trevor -

    Thanks for coming out with your plugin. We have installed it, but have a question/concern.

    See it in use at: http://www.webhelpermagazine.com (on right sidebar of all post pages)

    Here’s the problem with it at this point: On our site, after it finishes the translation (does show the intermediate step of “translating” at the Google site), it then looses all the flags at top right. This makes it difficult to either return to English (our original site language), or to go to another language. Is there a way to correct this? Thanks.

    - Scott

    Friday, November 9, 2007 at 12:43 | Permalink
  40. Denise wrote:

    Hi, Thank you for the excellent widget. One question. How would I add a label to each flag so that I don’t need to hover the mouse over the flag to see the language? I was wondering if it was possible, then I noticed http://kltransit.com/ has done it that way.

    TIA.
    -Denise

    Thursday, December 13, 2007 at 9:17 | Permalink
  41. Gyam wrote:

    Hi! Same as Pat, no flag pics, and I haven’t found any /flags folder in the zip…

    Thursday, December 20, 2007 at 6:21 | Permalink
  42. Liverpool is Great wrote:

    Brilliant plug in, works well for me. I just uploaded it to the plug ins directory and activated it and all was well.

    The xhtml validates perfect.

    I’ve just redesigned a theme to be widget ready and am testing a variety of plug ins, many of which I’ll not use, but each to their own.

    This plug in is invaluable.

    My only real wish is that we could configure it to include more languages.

    Monday, January 7, 2008 at 12:44 | Permalink
  43. luc wrote:

    Works great in WP 2.3.2. Thanks Trevor!
    I’d like to second “Liverpool is Great”s wish for more languages to include, preferably a way to choose the set of destination languages.

    Monday, January 14, 2008 at 3:20 | Permalink
  44. Andrew wrote:

    Dear Trevor,

    I came to your site by chance and I am keen to find out more about your nifty tool to open wordpress to the translation capacities of Google.

    At present, I am running 2.3.2 in a testing mode and checking another plugin – wp-members. If this plugin runs properly it should provide a way to block posts to members only (and undoing it for special posts) and block/unblock pages as well.

    When testing your plugin I experienced the following:

    Logged in as admin, I am “registered” so that I can read all posts and pages without this restriction of wp-members. For the original english settings this is the case.

    If I switch – within a post – to one of the languages provided by your plugin translator, it seems, that wordpress does not “remember” that I am already registered. The registration form opens – translated – and requires registration.

    I pass this on to you, as it might be of interest to you and others to know. Please do not bother yourself too much with it, as there may be other problems more urgent than this one.

    Monday, January 28, 2008 at 9:47 | Permalink
  45. gyam wrote:

    Hi, I don’t have /flags/ folder in your zip file. I made one but I’ve no flags pics and only three languages. If I put the files directly in /widgets/ , only translate title appears… What’s wrong? I test old and new version.

    Thursday, January 31, 2008 at 4:21 | Permalink
  46. If I want to place the translator outside of the sidebar, for example in my header.php, footer.php etc, is there a function i can call to get the output of this widget ?

    Thursday, February 14, 2008 at 8:12 | Permalink
  47. Jessi wrote:

    This is HANDS DOWN the best translator I’ve ever used. Clear, concise, simple. Perfect. Thank you so much!

    Friday, February 29, 2008 at 20:45 | Permalink
  48. qkrch wrote:

    Thanks for the tool, tested on last WP version 2.3.3 and works fantastic.

    Keep up the good work

    (widget is installed on this website, i’ll use it now and in future blogs)

    Friday, March 28, 2008 at 11:51 | Permalink
  49. qkrch wrote:

    Update the url :P

    Friday, March 28, 2008 at 11:52 | Permalink
  50. paul wrote:

    well done,

    I put it on a french website and it works wonderfully !
    Congratulations.

    Paul Saultier

    Saturday, March 29, 2008 at 13:59 | Permalink
  51. i try to setup similar widget. but it’s more general. you can use it anywhere including (but not limited to) wordpress.
    please try and comment.

    http://www.widgetbox.com/search?q=dennyhalim+translate&m=50

    tia.

    Thursday, May 15, 2008 at 9:23 | Permalink
  52. David wrote:

    I’m have the same problem as gyam NO FLAG FOLDER and only a flag.png file. only translate title appears… What’s wrong?

    Sunday, May 25, 2008 at 16:27 | Permalink
  53. Parijs wrote:

    Will Dutch be added to the list? Would be great if it can be

    Wednesday, May 28, 2008 at 21:00 | Permalink
  54. Very nice indeeed!!

    Wednesday, June 11, 2008 at 14:16 | Permalink
  55. Hi!
    Thank you for the plugin. But how to set origin language without widget?

    Tuesday, July 8, 2008 at 16:54 | Permalink
  56. Thanks a ton for this cool plugin

    Wednesday, July 9, 2008 at 4:38 | Permalink
  57. Very nice widget, but i can see only 3 Flags, i use wp 2.5, is this an error?

    Thanks a lot!

    Thursday, July 24, 2008 at 20:42 | Permalink
  58. Alex wrote:

    thank you for this amazing plug-in .. !

    Tuesday, September 2, 2008 at 14:00 | Permalink
  59. Jack Maton wrote:

    Is there a way to put the code into the sidebar without using a wiget? I have a special template.
    Thanks

    Friday, November 21, 2008 at 14:11 | Permalink
  60. Trevor wrote:

    Jack:
    You can call the main function, trc_translate() directly. So, just put < ?php trc_translate(); ?> somewhere in your template.

    Friday, November 21, 2008 at 14:42 | Permalink
  61. Me wrote:

    Trevor, since Google is offering more languages support, will you add them to your widget?

    Wednesday, December 3, 2008 at 2:46 | Permalink
  62. Trevor wrote:

    Hi “Me”,
    I haven’t worked on this plugin for quite a while. It’s possible that I may give it an update, but no guarantees.

    Saturday, December 6, 2008 at 23:25 | Permalink
  63. Joni Solis wrote:

    Does this work on WordPress 2.7 verson?

    Thursday, January 8, 2009 at 17:21 | Permalink
  64. I just upgraded to WP 2.7 and had no problems with this great plugin. I’ve also had friends comment that the Google translations are surprisingly decent. I’d definitely recommend it.

    Monday, January 12, 2009 at 18:34 | Permalink
  65. Thanks for this great widget – free2step.com

    Friday, May 1, 2009 at 21:45 | Permalink
  66. Hi Im newbie in this wordpress an I appreciate your effort to share your knowledge with people like me without your level of systems education, by the way Im from Peru, I could download it but I dont know where to find /wordpress/wp-content/plugins/widgets/ folder.
    How do I have to do, I only to know open the deck and go to widgets category where I have to paste the codes

    Tuesday, May 19, 2009 at 12:16 | Permalink
  67. Hi Im newbie in this wordpress an I appreciate your effort to share your knowledge with people like me without your level of systems education, by the way Im from Peru, I could download it but I dont know where to find /wordpress/wp-content/plugins/widgets/ folder.
    How do I have to do, I only to know open the deck and go to widgets category where I have to paste the codes, please help!!!!

    Tuesday, May 19, 2009 at 12:18 | Permalink

21 Trackbacks/Pingbacks

  1. [...] Translate is a wordpress widget plugin written by 18 yr old Trevor Creech of Canada.  Canada, eh? [...]

  2. Translate Widget 2.0 « Wordpress Workshop on Tuesday, February 20, 2007 at 10:32

    [...] Download: Translate Widget Version 2.0 [...]

  3. 【WordPress】翻訳ウィジェット追加 » Telmina on Wednesday, April 4, 2007 at 23:20

    [...] Translate Widget 2.0 @ Trev’s Travels [...]

  4. [...]  以前、一時期「Telmina」に「Translate Widget 2.0」なるウィジェットを適用していたのですが、それとよく似た挙動です。 [...]

  5. Around the world | Internet Business Opportunities on Saturday, January 26, 2008 at 11:26

    [...] Notice the new widget I installed called Translate. [...]

  6. WP Translate widget - Translate blog post into many languages on Thursday, February 28, 2008 at 11:02

    [...] The zip file includes a ‘flags’ folder and a translate.php file. Place both [upload] in the /wordpress/wp-content/plugins/widgets/ folder. Homepage [...]

  7. Trev’s Travels › Translate Widget on Monday, July 28, 2008 at 8:29

    [...] Update! Version 2.0 is here: Translate Widget 2.0 [...]

  8. How to: Create a Multi-Language Blog on Monday, October 6, 2008 at 3:01

    [...] Translate Widget [...]

  9. Maneras De Traducir Tu Blog | Corbec Soluciones on Monday, October 13, 2008 at 10:00

    [...] Translate Widget – Sencillo widget de traducción que ofrece tu blog en 12 idiomas [...]

  10. [...] Translate Widget – Sencillo widget de traducción que ofrece tu blog en 12 idiomas [...]

  11. [...] Translate Widget – Sencillo widget de traducción que ofrece tu blog en 12 idiomas [...]

  12. [...] Translate Widget (Trev) Sencillo widget de traducción que ofrece tu blog en 12 idiomas [...]

  13. 给博客增加多种语言支持 on Friday, December 12, 2008 at 12:00

    [...] 第一个找到是WordPress Language Translator Plugin。上传、激活,在widget界面添加到侧边栏后,发现默认只提供翻译为英文的按钮,而作者的页面明明有多种语言支持。WordPress Language Translator Plugin直接添加widget的方式没能调试出演示的效果,不能满足我贪婪的要求,我也不想去研究插件代码,毕竟这是一个非IT人类的博客。后来发现,这是个修改版,原作者在trevorcreech.com。 [...]

  14. [...] Translate – allow visitors to translate your blog [...]

  15. [...] Translate – allow visitors to translate your blog [...]

  16. [...] Translate 2.5 [...]

  17. [...] Homepage [...]

  18. WordPress Widget List | DAWG FILE on Wednesday, May 13, 2009 at 17:34

    [...] Translate – allow visitors to translate your blog [...]

  19. DAFTAR WIDGET UNTUK WORDPRESS « Ilhensa’s Blog on Tuesday, June 2, 2009 at 1:29

    [...] Translate – allow visitors to translate your blog [...]

  20. Wordpress multi-idioma on Thursday, June 11, 2009 at 2:00

    [...] Translate WordPress Widget [...]

  21. [...] Translate – allow visitors to translate your blog [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*