Translate Widget 2.0: A great Free WP Translation plug-in
I’ve been looking for good Translation Plug-in for quite sometimes now. I’ve ben tinkering with the Global translator plug-in but unfortunately, I had to disabled my Permalink plug-in in order to get it to work, as they go wonker when used together.
Unfortunately, I need to use the Permalink plug-in to get my blog to work, so disabling it is out of the question. I’ve been trying to find ways to get over this limitation, but all that I’m getting is a big head-ache instead.
I then stumbled upon Trevor Creech’s Translate Widget 2.0. Initially, I too had trouble getting this one to work. Fortunately, there’s no conflict with the other installed plug-ins. Judging from the comments on Trev’s blog, the problems seems to affect those WP users thats using ver. 2.2 above.
Anyway, after tinkering with the php code for a while, I finally got the plug-in to work perfectly. It’s already installed in the sidebar, so just give it a spin, ya.
Download Translate Widget 2.0 here.
If you’re using ver 2.2, then You’ll probably be having the problem of double URl inserted by the plug-in, resulting in users getting the 404 error. In case Trev hadn’t updated or rectify the problem yet, use these following hacks:
1. open the translate.php file
2. on line 16, change:
$url = get_option(’siteurl’) . $_SERVER[”REQUEST_URI”];
to
$url = get_option(’http://www.yourblog.com/’) . $_SERVER[”REQUEST_URI”];
3. on Line 22 & 33 change:
$full_url=‘http://www.google.com/translate?hl=’.$orig_lang.’&ie=UTF8&langpair=
’.$orig_lang.’%7C’.$langcode.’&u=’.$url;
to
$full_url=‘http://www.google.com/translate?hl=’.$orig_lang.’&ie=UTF8&langpair=
’.$orig_lang.’%7C’.$langcode.’&u=http://www.yourblog.com/’;
This quick hack rectifies the double url, but then, when user click on the flag, user will be brought back to the main page. Other than that, the plug-in works great.
Also, if you’re like me and hate to use the WP auto widget option, to manually position the plugin anywhere into the wp template, use this code:
< ?php trc_translate(); ?>
Give it a try. ![]()
update: Trevor had updated the plugin. The new version now works perfectly without a hitch.
If you like this post, why not read these other stories as well. They 're randomly generated though :)
- now it’s v2.2.2… (aka how I use a plugin to auto defeat those pesky upgrade)
- Driveway, free online file sharing
- Masterseek® Business Search Engine
- Hotel Reservations
- IBackup - Online Storage
- Make money with Bloggerwave
Bookmark this post to:
del.icio.us Digg Furl Reddit Ask BlinkList blogmarks Blogg-Buzz Google Ma.gnolia muti Netscape ppnow Rojo Shadows Simpy Socializer Spurl StumbleUpon Tailrank Technorati Windows Live Wists Yahoo! Help





Hey there we have recently added google translate to our new blogger site. But sadly enough there was no Russian support which we would like. Is this widget compatable with blogger?
http://www.askTheAdmin.com
Hi Joezul,
I actually just updated the plugin this morning, so that problem should be fixed. I haven’t written a post about it yet, but you can get the newest version from the same download link:
http://trevorcreech.com/download/translate.zip
cool, thanks trevor. thanks to joe too for the heads up
@Trevor Thanks. I’ve downloaded it and now it’s working perfectly.
@Kucau Cool stufff eh! And Trevor is only 18 years old. Amazing
@AskThe Admin I think Trevor new update might answer your problem.
Trevor had email me this morning answering on the question left by AskTheAdmin above.
He says:
” Sorry, at this time the widget is not compatible with blogger.
-Trevor ”
Thanks Trevor for that clarification.