One post at a time
21 Mar
UPDATE:
Please see this page for the new version: Google AJAX Translation 0.2.0
Google just released a new API yesterday: Google AJAX Language API.

AJAX Language API is built on top of Google Translate, it current supports 13 languages and 29 translation pairs. It is new but it is already very powerful. If you want to know more about how to use it on your website, please see Google AJAX Language API Document for more details.
We in Savvica want to use this cool technology in our awesome website: LearnHub.com. In the middle of doing this today, I was thinking about to enable this feature on my blog too.
So, here we go, the Google AJAX Translation WordPress Plugin is arrived.
Please download from here:
http://wordpress.org/extend/plugins/google-ajax-translation/
Installation is very simple:
Couple things still need to know:
If you want to do some changes and glad to share with all of us, please feel free to comment here or send me email @ libin.pan at gmail dot com.
I hope you will like it.
Want to know more?
39 Responses for "Introducing the Google AJAX Translation WordPress Plugin"
Welcome!
View this Comment in:

Please click the links below to try it. Enjoy!
View this Comment in:

[…] Introducing the Google AJAX Translation WordPress Plugin | Libin Pan Google AJAX Translation plugin enables Google AJAX Language API on your blog, so your blog readers can easily translate your blog comments into other languages. It provides a quick, simple and light way to add internationalization feature onto your blog. (tags: Google AJAX Language wordpress translate translation) […]
View this Comment in:

Awesome of you to get this out so quickly! I will be working on a Drupal module soon. I posted about the first few hours I spent messing around with the API, and like you I made my comments translatable ;]
View this Comment in:

Thanks, Dave!
I just take a look on your blog. Your implementation looks great!
I really like your idea about Facebook and twitter. 500 characters limit sound perfect for these shout wall posts or status.
I was thinking use uOGT in another day, but found my website will be soon rejected by Google Translate Service. This AJAX one really helps!
View this Comment in:

Request for adding into WordPress Plugins List has been approved today. So please download from
http://wordpress.org/extend/plugins/google-ajax-translation/
And all the new changes will go there too.
Thx!
View this Comment in:

插件不错,但是想要全文翻译的话应该如何设置呢?
View this Comment in:

Thanks Phoenix!
To enable fulltext translation, mine may not be a perfect solution at this moment. As Google limits 500 characters for every request.
But you still can give a try:
Uncomment line 79 in ajaxtranslation.php
If you want to have a more professional one, please give a try on:
http://wordpress.org/extend/plugins/global-translator/#post-2877
This is the best one I’ve found so far. But too bad it is not free.
View this Comment in:

This is a great idea!
However, the first paragraph of my comments are being bolded since I activated this plug-in. Has this happened to anyone else?
View this Comment in:

Thanks Sean!
The problem has been fixed. Please download from wordpress for the new version and overwrite your exist one.
Please feel free to let me know if it works for you.
View this Comment in:

[…] google-ajax-translation-wordpress-plugin […]
View this Comment in:

Its Fun, Entertain For Visitor To Leave Comment
View this Comment in:

is this only for Wordpress? i need to find language translation API , but it not online, it should work on my localhost!
View this Comment in:

Yeah, the plugin is only for WordPress. But the AjAX Language API is not.
I am not really sure about how you want to make it wok on localhost.
The AJAX Language API is a AJAX wrapper for Google Translate Services. If you want to use it, you need the access to the Google servers, which means you need to be online.
As long as you have internet access, it doesn’t matter you call it from your hosted server or your local machine. It should work.
View this Comment in:

actually i wnt to develop a chat program, which run only in internal network(most probably no internet facility available), so i need to store tht translation api in my local server!, is there any way to do this?
thanks for u reply!
View this Comment in:

Thanks Libin, it works great. I am translating my posts too, but problem is that my post images do not display when after user clicks alternate language. Any ideas? Please see http://dave.jp.
View this Comment in:

Hi Rama,
Your idea sounds very interesting! Put internationalization into chatting is absolutely a great feature. But I am afraid that you may need a translate services inside your internal network if you want to make it work without internet access.
Some professional translation companies have this kind of software. But I believe the price will be way more higher than what we expect.
View this Comment in:

Hi David,
Your blog looks very beautiful!
Let me tell you what plugin does for translation. When the user click “View Post/Comment in ??? Language”, plugin will get the innerHTML of the current post/comment, then filter out all the html tags, such as
< p >, < a href=..>,
then send the pure text to google and wait for the translated result.
The reason for filtering html tags out is: if you send them within your text, google will translate the words inside of tags and return it back. Which will mess up the whole page.
I am trying to find a better solution for this, but no lucky yet.
View this Comment in:

[…] into other languages.The Google AJAX Translation WordPress Plugin provides a quick, simple and lhttp://blog.libinpan.com/2008/03/21/introducing-the-google-ajax-translation-wordpress-plugin/CodeToad - Javascript - Enable and Disable form elements.Apr 8, 2008 … javascript - enable and […]
View this Comment in:

Google now added more languages to their API.
The problem is that it’s too many.
is there any way for the language select to be in a dropdown menu (some thing like the google translate mypage tool
P.s
Great plug in I love it!!!
View this Comment in:

Nice job!
But how can I remove some of the languages which I don’t want to be translated?
View this Comment in:

Thanks Clementtang!
I am working on the next version now, which will have the options for choosing languages, but for now, you could just edit wp-content/plugins/ajaxtranslation/ajaxtranslation.php.
From line 46 to 58, remove anyone you don’t want and it should work.
Let me know if you have problem.
View this Comment in:

WOW thanks… I was looking for this plugin… and now will wait for a new one..
View this Comment in:

Hi Libin, thx for ur work^^
I’d like to ask if this plugin supports Linux/Mac OS, it is not working on my iMac(Leopard + Safari + Firefox), thx.
View this Comment in:

Thanks so much, loewez!
The problem is in the theme what I am using now. It was missing one line which is very important:
< ?php wp_footer(); ?>
I’ve added it back. So the translation plugin should be working again.
View this Comment in:

Yeah it works now, thank u for ur speedy reply^^
View this Comment in:

You are more than welcome!
You may notice this already, the translation plugin does work on Admin/Comments list too.
View this Comment in:

Hello Libin,
unfortunately it does not work on my blog! No idea why..
have a look here
http://www.tecnopolis.eu/blog/2008/05/alla-ricerca-del-gadget-che-c%c2%b4e-nokia-n95/#comment-31
I am running WP 2.5 + several plugins (among them Get Recent Comments).
Thank you in advance for any help!
cheers, Alex
View this Comment in:

ops.. yes I reactivated it. Still not working
View this Comment in:

Looks like it is the same problem as I had. Could you please let me know what theme you are using, or you can just open :
…/wp-content/themes/your current theme/footer.php
Try to find if it has
< ?php wp_footer(); ?>If not, please just add it in before
< / body >Hope this will fix the problem. Let me know if it still doesn’t work.
View this Comment in:

HI Libin,
I tried your tip, yes it hadn’t the wp_footer linecode. Put it, but still nothing.
My theme is a modified Effercio Blue theme
http://cdharrison.com/2007/09/01/effercio-blue/
I can provide you any file by email.
thanks, A.
View this Comment in:

OK. It’s my fault.
Please remove the space between < and ?.
The line of code is:
< ?php wp_footer(); ?>The space here was added by wp, so it could be displayed.
Please give it a try again.
View this Comment in:

yeah.. it works finally!
Many thanks, great plugin
cheers, Alex
View this Comment in:

You are more than welcome! Glad to hear this thing is useful.
View this Comment in:

[…] Google AJAX Translation is my the first WordPress Plugin, it has been downloaded more than 1700 times until today. And because it is so simple, I haven’t done any major update after the first release. […]
View this Comment in:

Thanks Michael Klein for implementation of flag links!
Say Hello to Google AJAX Translation V0.2.0!
View this Comment in:

Hi there! I always love to google for Wordpress Plugins as I always find nice site like yours. Everyday there are new plugins and themes for wordpress and so you can pimp up your installation from time to time.
Btw: Your article cing the Google AJAX Translation WordPress Plugin | Libin Pan was the best I found today! Regards! Jens
View this Comment in:

Great i love this
View this Comment in:
