Introducing the Google AJAX Translation WordPress Plugin
Author: Libin Pan
21
Mar
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:
- Download the plugin archive and expand it
- Put the ‘ajaxtranslate.php’ file into your wp-content/plugins/ directory, or put the ‘ajaxtranslation’ folder into your wp-content/plugins/ directory.
- Go to the Plugins page in your WordPress Administration area and click ‘Activate’ for Google AJAX Translation.
- Have fun with your blog readers.
- Please see my blog as an example
Couple things still need to know:
- Google Ajax Translate only allow 500 characters right now (March 2008)
- So this plugin only supports translating the first 500 characters of your blog comments
- In the current version(0.1), I only enable comment translation by default. There are two reasons for this:
- Most of your posts are more than 500 characters, but most of your blog comments aren’t
- Google will translate characters inside of html tags, which will mess your blog for sure
- If you still want to use it with your post too, please comment out line 79 in ajatranslation.php
- This is just an initial release, lots of feature will be added in. Please stay tuned.
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?
22 Responses for "Introducing the Google AJAX Translation WordPress Plugin"
Welcome!
View this Comment in: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
Please click the links below to try it. Enjoy!
View this Comment in: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
[…] 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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
插件不错,但是想要全文翻译的话应该如何设置呢?
View this Comment in: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
[…] google-ajax-translation-wordpress-plugin […]
View this Comment in: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
Its Fun, Entertain For Visitor To Leave Comment
View this Comment in: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
[…] 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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
Nice job!
But how can I remove some of the languages which I don’t want to be translated?
View this Comment in: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
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: English Chinese(S) Chinese(T) French Arabic Dutch German Greek Italian Japanese Korean Portuguese Russian Spanish
Leave a reply