Translate Widget
Update! Version 2.0 is here: Translate Widget 2.0
So, 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.

Nice job. Added link to your Translate Widget in this Codex article:
http://codex.wordpress.org/Plugins/WordPress_Widgets#Third_Party_Widgets
[…] Trevor Creech did a fine and stylish job creating this widget for translating your blog with Google. […]
[…] Trevor from Trev’s Travels (a smart kid) made a cool Wordpress Translate Widget that you see displayed on the right side of this blog, it uses Google translate and is the first “widget” I have installed today. To get the widget plugin working with custom templates simply follow the provided instruction in the readme.txt This is great. I will have to put Trev’s Translate on my handful of blogs and welcome the world to join in the conversation. Thank you Trevor! Posted by admin Filed in WP Widgets […]
Nice work, Trevor. Widgets are cool. If Google Translate was faster, I’d put your widget on my site. As it is now, the service is slow as molasses! Not your fault, of course, but still a reason to wait.
That’s fantastic, Trev! Wow, really.
…and I love that Chinese is an option…
[…] I’ve just added a clever widget to my sidebar that enables readers to “translate” Davos Newbies into a variety of languages, courtesy of Google’s automated translation algorithms (the widget was devised by Trevor Creech). For the languages I know reasonably well, Italian and French, it does a slightly comical but minimally serviceable job. I don’t expect there will be enormous demand for the service, at least on Davos Newbies, but it’s enjoyable to explore the still-mythical kingdom of machine translation. […]
Very nice.
But - I’m german, and Google solves only translations like de-en or de-fr.
I’ve simplified your code for german users (i hope its ok?).
You can find it here.
Frank
[…] Translate Widget??????????Wordpress Blog???????????Google?????????????????????????????Blog???????????????????????????????????????????????????????????? […]
Wow! Nice.. That’s pretty kewl…
—
Daniel J. Weber - Cahind Linx 13:47
[…] Este translate widget usa el traductor de Google como motor para traducir el blog completo, al igual que tengo montado yo arriba pero usando google en lugar de wordlingo. […]
No fair, your first plugin and it got better press than anything I’ve done!
j/k. Maybe I should look into widgets
Haven’t seen them at all yet cause they didn’t seem all that brilliant… just plugins that generate content meant for the sidebar… maybe FreshTags should be reformulated as a widget?
By the way, did you find it annoying with your new layout or something? FreshTags seems to be bye-bye from your blog just now…
[…] Sitiio oficial de translate widget Sitio Oficial Widgets Wordpress via: aNieto2k En: WordPress — Abril 28, 2006 […]
And I just installed AltaVista’s script lol. This is way better because there is no big box and 9 vs 8 flags; Y!’s translator (big box too) has no flags. Don’t they understand that if you don’t read that language, you can’t understand their drop down list? True, flags aren’t language specific but each country does have a main language… so thx. Hopefully it will be easier for me to implement than another certain WP plugin that I never did get the flags to display for.
I placed in my site but i have this error when activate the widget:
Warning: call_user_func_array(): First argumented is expected to be a valid callback, ‘widget_translate_noframes’ was given in /home/t610yz60/public_html/juanpi/wp-includes/functions.php on line 1279
Any solution please?
Hey Trev,
Looks great. Nice job.
Can I ask you a question? How do I get the flags in a Horizontal position like yours? By defualt, my flags are vertical.
I also didn’t think “widgets” had any value but if people keep making them as useful as Trev’s more people will surely use them. Thank You!
Hi! Nice widget, it works without problems.
I need a little customization, a (Line Break) between “Translate” and the flags. How can I do it?