Google AJAX Translation WordPress Plugin
UPDATE:
Nick Marshall is the lead developer on this plugin now. He has done an awesome job to bring it to a new level! And he moderates the plugin forum actively! Please feel free to post your questions or comments there as well.
UPDATE:
Thanks Michael Klein for his great work on this plugin. We’ve updated to Version 0.3.1 now.
Some changes:
- Encapsulate the plugin in a class. No global vars needed anymore, faster code! (Michael Klein)
- Better support of capabilities-model (WP 2.6)
- Fixed some html-bugs (missing alt-Tags, etc.)
And, please make sure go to your WordPress Settings->Google Translation admin page to reconfig all the preferences after the updating. Thanks!
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.
Couple of days ago, I’ve got an email from Michael Klein from alquanto.de. In his email, he attached a updated version of my plugin and show me how it works on his blog: http://groovengine.de
Mr. Michael Klein has finished a big task on my todo list: Switch between flag icon and text for all these languages.

It’s amazing! This is the beauty of Open Source! We need a new update version now!
Say hello to Google AJAX Translation WordPress Plugin 0.2.0!
What’s new?
- Switch between flag icon and text for all these languages. Thanks Mr. Michael Klein!
- Admin configuration page

- Enable/Disable Posts Translation
- Select which languages you want to support
- More Languages Support, it has 23 languages in total:

* Arabic
* Bulgarian New!
* Chinese (Simplified and Traditional)
* Croatian New!
* Czech New!
* Danish New!
* Dutch
* English
* Finnish New!
* French
* German
* Greek
* Hindi New!
* Italian
* Japanese
* Korean
* Norwegian New!
* Polish New!
* Portuguese
* Romanian New!
* Russian
* Spanish
* Swedish New!
How to update?
- Download the newest version from WordPress
- Unzip it and you will have everything in the “google-ajax-translation” folder
- Overwrite the exist “google-ajax-translation” folder on your server, it should be in “wp-content/plugins/” directory
- Active it from your admin page
- Do some changes on Google Ajax Translation admin page
Enjoy!
Please feel free to comment here if you have any questions, or you still can check if is was already answered on the old post.
And it is on GitHub too!

hi all guys,
I think this plugin is very cool and that you have made an eccellent work!
But i have an issue i can’t resolve. I’ve installed the plugin on my web site http://www.borlos.info but when i open the “translator” button i got a strange javacript error. can you help me to resolve this?
Great,
Thank you.
How can I make it translate automatically when it detects the source language without clicking anywhere?
Hi, you have got bad flag of Czech. See it in wiki http://en.wikipedia.org/wiki/File:Flag_of_the_Czech_Republic.svg
So can I just display the flags instead of the “[Translate]” text?
yes, it’s a nice plugin, but I feel it lacks one major feature as a translation plugin; and that is the horrible and useless text link “Translate”.
This is an awful feature on it’s pwn and needs to be accompanied by a graphic of some kind, such as a small image of global flags, or something of that kind, because the “Translate” hyperlink is simply lost on the page amongst all the other text, and makes the assumption that everyone who visits a page a) notices the horrible little link, and b)knows what “Translate” means.
If I knew anything about programming or coding i’d do something about it myself.
However, since I don’t, then I recommend those who do to make this vital change.
Thanks anyway for putting it together in the first place, but your work is simply lost on the page, and so goes un-noticed, and un-appreciated.
Why don´t have portuguese in translator?
Since most comments on plugin pages are to tell the creator what is wrong with their work. I just want to say thank you for all of your hard work. Not everyone is criticizing your work, there are many who the plugin works great for, and they simply, are just not saying anything.
Once again thank you for your hard work, and don’t let these comments bring you down.
Firstly, to the author(s) of this marvelous plugin – A BIG THANK YOU!
Next, for whatever it is worth, I would like to share a small tweak that I did with the Google AJAX Translation WordPress Plugin at my Blog.
After having installed the Plugin and having it configured to display the Translate link at the Post footer, Page footer and at Comments, I noticed that the word link, “Translate” was a tad too inconspicuous. Well, I could enlarge the font size or tweak the CSS to have it appear with a loud colour.
However, I chose to give it a different oomph. I did a simple html inclusion at the template. It would display the Translation icon. I also changed the word from “Translate” to “Language Translation”. After having done that, it did give the word link a remarkable change. It is now more easily noticeable.
As it is a standard feature at my Blog, I have an animated arrow displayed before a link. Hence I added an animated arrow before the Translation icon. And that wrapped it up.
The Google AJAX Translation plugin hasn’t yet been developed with a sidebar widget. For my Blog, it would help to create a simple sidebar widget to explain where the Translation link is and how to use it in two simple sentences. Now it’s completely done just as how I would like to be navigated if I were a non English reader at a Blog.
You may see all of the above at:
http://dfoolonthehill.com/post/ideal-language-translator-for-wordpress-blogs
Firstly, I must appreciate the efforts of Google AJAX Translation plugin authors for doing a really nice job.
With respect to the latest version 0.4.6 launched just recently (1-2 days before), I may add three small issues:
(1) When you click on the link “Powered by Google” it goes to the Google translation with the error message that English to English translation cannot be done. So, it appears that on an English-language site, this particular command won’t perhaps work correctly. The reason is that you the moment you try to change target language, it actually translates into that language; and the moment you click on “Powered by Google” it tries to directly translate into English which results into error. If my observation is wrong, I may please be corrected.
(2) In the earlier version, the flag and language name option resulted into a dialog box with left-aligned flags and language names. However, in the latest version (0.4.6), they are center-aligned which looks slightly rough and odd in view of the fact that they are in three columns making them appear to be not aligned at all. Perhaps the earlier left-aligned option was better. I don’t know whether other people have also got the same problem.
(3) Third problem appears to be specific to my site itself (I doubt whether other sites would be facing similar problem). It relates to horizontal line appearing on top of [Translate] word when I select the option to show [Translate] at the top of the post, etc. As I already have one horizontal line at the top, it looks slightly odd. On the other hand, if I select the other option, i.e., to show [Translate] at the bottom of the post, the plugin correctly puts the horizontal line under it, which looks alright. I reiterate that this third problem appears to be specific to my site because I have a horizontal line in my theme. Perhaps, I’ll have to experiment a bit with the correct placement of horizontal line.
Due to these reasons, I have shifted back to the old version 0.4.5 for the time being.
My suggestion is to include a feature to allow placement of [Translate] word manually at the desired place by the site owner, so that he or she can place it at the appropriate place wherever it fits the best.
Once again, congrats and thanks for a nice plugin.
hello, first of all I’ll like to say that I appreciate your work and google’s work, its a very good thing.
I have this proble with the translation from romanian to english, some words are not correctly or not translated to english, i’ve try to cntribute to goolge, but still doesn’t work, and onother thing: i don’t have that flag plugin, do i have to downloaded or ? thank you. Best regardes
1. I just tried this plugin on a blog experiment. This plugin is not a problem when I use mozilla FF 2.+ or opera, but this plugin problems when I use mozilla FF 3.+ (especially with mozilla FF 3.5.2 or new version). popup window can’t opens when i click “Translate”. if there are problems when using that browser ??
2. my themes used 2 file,
ie: home.php and index.php, sentence “Translate” appears on the post at home file. how so it does not happen?? (for more details, please visit and look at my link)
**sorry for my english, i from indonesia
hi,
the plug-in is a great idea but it doesn’t work on my blog. Could it be the Theme, Box set? I have the browsers Safari 1 and S 2, Firefox 3 and FF 2. Mac OS 10.5.8 and 10.3.9. WordPress 2.8.4. Since I have Mac Explorer doesn’t work.
Problems:
1. The Translate-button only translates the headings, no text below them.
2. The option Flag does not work at all, only the text “Translate”
3. A line appears below “Translate”, could that cause the text to remain untranslated?
best regards
I do agree a function to put in the template would be more easy to manage in a template. The [Translate] text is showing if I use the “more” tag and it’s not very pretty…
hi, very nice plugin. in the new version it doesn’t show anymore in static pages but only in the blog pages. the older version was doing both. could you send me an old version please. best regards from berlin
Great plugin but I want it to work on pages and blog posts, will this be a feature in the next version? Maenwhile I have to look for a translate plugin that works on pages and posts.
awesome plugin
just what we were looking for
Hi, I worked out it is the theme I am using that is the issue, the plugin works great in other themes. Thanks
I loved it <3 thank u so so much
my question is there any custome hooks for it ?!
something like
I badly need it
sorry wordpress didn’t allow it but something like
oh my god lol this code can’t be wrote here !
But it can’t work in Eos(theme)
I would so sincerely appreciate it if someone with working knowledge of the Google Ajax Translation plug in would look at my Wordpress site at http://ancienthomelands.com and tell me why the Ajax control is not working and perhaps give suggestions as to what I could do to fix it. Thank you all.
All about Bulgaria and Bulgarian Language
@Tom
Got it working.
Hello,
please add “Belarussian” to translations list
thanks
posting from facebook account – what about Belarus?
This translation improved recently, please add it to the list of available languages.
hi
thank for this plugin
but i have a little problem
my language is Persian (right to left) but when i use this plugin my “WordPress Administration Panel” change to left to right
how can i use it……………need code? 3Q(think you)…please tell me ..
It works great.
Hi Libin, thank you for the amazing job!
Now http://madmac.com.br can be viewed in many many languages!
Thanks a lot!
The translator box (text or with flags) not shown on my site
Coul you help it, please?
i hav tried this plugin….but i want it on the top of the main page and in horizontal shape…how can i do this?
cool ext!!! respect Libin!
Hi, this plugin is very nice and usefull. Thank you.
I love the Google Translate plugin with only one issue. If showing exerpts on the homepage, it say “[TRANSLATE]” but is unclickable. other than that, it is GREAT!
I had installed new WordPress 2.9.1 site (cs_CZ language). I turn on logging and debug. In the log file I see this errors:
“PHP Parse error: syntax error, unexpected T_SWITCH in /var/www/html/wordpress/wp-content/plugins/google-ajax-translation/ajaxtranslation.php on line 635″
Google AJAX Translation version: 0.5.1
@Ashok
Did you ever solve the placement of the [Translate]? I am looking to change the placement for this as well.
amazing plug in! thanks for sharing! but…
is it possible to show the ['Translate'] link only in the (single) post (single.php inmy theme)!?
i don’t want the link on my article overview (frontpage/page.php in my theme).
thanks for some tips!
greetings
Something like this did the trick for me, but you have to hardcode it into the plugin itself:
$value = str_replace(‘[Translate]‘,”,$content);
I forget which file and what the variables were, i haven’t used the plugin for a while because nobody used it on my site, mostly US traffic.
Can some clever person please fix so this plugin can be placed on the top of the blog, resulting in a translation of the whole page? Would be great to have navigation links and left/right columns translated! Otherwise, GREAT plugin. Thanks.