Translate Widget

Update! Version 2.0 is here: Translate Widget 2.0

Translate WidgetSo, I’ve completed my first bona-fide Wordpress Plugin :)
It’s one of those newfandangled widgets, and 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. Then, if satisfied, download it here:
Translate Widget
The zip includes a /flags/ folder, and a translate.php file. Both need to be placed in the /wordpress/wp-content/plugins/widgets/ folder. If you want to change the English language flag from the default American to either the British or Canadian (as I have!) flags, they are included, just rename flag_ca.gif, or flag_uk.gif to flag_en.gif. Now you can just go to the widget’s options.

Donations

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


Comments, tips, or problems are welcome, just leave a comment here, or send me an email (Address is in the sidebar.)

Do enjoy!

Update on June 14, 2006: The plugin now supports Arabic, since Google has added that to their list of supported translations. This brings the total to 9 languages.
To those not familiar with Wordpress Widgets, you need to have the Widgets plugin installed before you can use my widget.

197 Comments

Pages: « 1 2 3 4 [5] 6 7 » Show All

  1. […] 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: […]

  2. Thank you for a splendid work.
    I write Japanese news in blog.
    This plug in translates a Japanese sentence into English.
    And I send information to the world.
    Thank you once again

  3. […] Creech explains you how to use a nice looking translate widget for your blog. January 12th 2007 Posted to Blogging Business, How […]

  4. Thank you Trevor :) Its brilliant!

  5. Hi Trevor

    Thanks for the translate widget. I discovered that about a quarter of the hits on Vorpal.us were from outside the US, and figured that I should have a translation on the site.

    Nice Job!

    Ted Schober (aka marcus)

  6. […] Translate: […]

  7. marc

    Hi Trevor, Thanks for the cool widget.
    On my blog (new install of 2.1) for some reason, your widget puts each flag on its own line in the sidebar. I’d like to have them grouped like on your site. Is this possible? Also, there is a think black border around each flag, I don’t know what is causing this.

    FYI: I am trying to use the 3 column Vertigo Electried theme
    http://www.briangardner.com/themes/vertigo-electrified-wordpress-theme.htm

    I notice that this theme also has trouble displaying the del.iou.us plugin (nothing appears). A few other quarky things happen such as links appear automatically on seperate lines if I just type in a <a href rel=”nofollow”>type of code in a widget text box. Is it the theme that has problems with your code? Any ideas?

    Thanks again for your time and effort. - marc

  8. Hi Trevor,
    Do you know if is possible to add portuguese language to the plugin list?
    Your plugin looks great…
    Thanks for you effort!
    Thanks for sharing!

  9. Hi Mirella,
    Portuguese is already in the list.

  10. Do you reckon we can get this for wordpress.com? It would be a great widget i think!

  11. Hi Christos,
    You’d have to take that up with the developers of wordpress.com.

  12. […] Traducir Widget 2.0 : Es tracta d’un plugin per a Wordpress que jo no he provat perquè no és això el que pretenc en aquest bloc, però l’he vist en altres blocs i sembla que va prou bé. La mala notícia és que no he vist que inclogui el català. […]

  13. Hey there, i’ve never used a widget or word press before however i do want to install this to a website that is not a blog, or worpress thing. just a standard html webiste. will I be able to?

    please let me know asap as i’d love to use this.

  14. […] be taken to a Google translation of my blog. Cool or wot?! This translation widget is courtesy of Trev’s Travels, a blog of a talented 18 year old. I love that instead of asking you to insert the webpage address […]

  15. […] This translation widget is courtesy of Trev’s Travels. […]

  16. Thanks Trev,

    I am going to have a look at how I can integrate this into my travel site. Should be just what I have been looking for.

    Cheers!

  17. […] Translate 1.0 By Trevor Creech. Adds a sidebar widget to display languages into which you can translate your […]

  18. Max

    Its installed and quite nice to have translation for my readers. The only problem is that each flag is surrounded by a colored border (red linking color) and I was wondering if there way I could fix this and have it look normal. Great plugin, appreciate your good work.

  19. Max

    Never mind Trev - I moved the widget down a bit and the red borders vamoosed - thanks again for the solid work!

  20. This is what I am looking for. Thanks Trev. I will give it a try.

  21. […] El Hack original es de Trevorcreech […]

  22. […] Translate: This Wordpress plugin widget allows users to read this site in multiple languages by using Google’s software translation tool. […]

  23. Hi,

    I would like to know if I can put it on Blogger.com ??

    Thanks

  24. […] For Different Languages I have gone ahead and installed Translate Widget created by the talented Trevor Creech. Readers can now select a different language to read this […]

  25. Ben

    I installed the Widget, and when I hover over a flag, it lists the URL of the site as: http://googletranslateinfo=http://sitename/blogurl/blogurl

    instead of: http://googletranslateinfo=http://sitename/blogurl

    It double posts the blogurl and that obviously returns an invalid URL. Thanks in advance!

  26. Ben

    I changed lines 22 and 33 for my specific site from:

    $full_url = ‘http://www.google.com/translate?hl=’.$orig_lang.’&ie=UTF8&langpair=’.$orig_lang.’%7C’.$langcode.’&u=’.$url;

    and replaced the “‘&u=’.$url;” with “‘&u=http://nameofmyblogsite.com/’.$url;”

    It’s a hack and slash, but it works for the moment. Thanks for the cool translation tool.

  27. Hi Trev,

    This is an awsome plug, and makes my site look great! Thanks for creating and sharing this!…

    I was wondering ,is there a line of code I can use to call the translation manually as opposed to the widget? only I would like to put the flags underneath my search box in the header, so I would need to put the code in the header, I just dont know how to call the function or what code to use?

    Many Thanks

    Martin

  28. Wordpress 2.2 breaks your plugin and widget.

  29. Great.
    I’ll look into it.
    Thanks for letting me know :)

  30. about the widget not working with wordpress2.2: my problem seems to be that Sidebar Widgets 1.2.1.20070210b causes a fatal error. therefore i can’t use your awesome widget. i hope the answer is easy … i love your widget!

Pages: « 1 2 3 4 [5] 6 7 » Show All

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>