Home > English, WordPress > Google AJAX Translation WordPress Plugin

Google AJAX Translation WordPress Plugin

August 4th, 2008

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?

  1. Download the newest version from WordPress
  2. Unzip it and you will have everything in the “google-ajax-translation” folder
  3. Overwrite the exist “google-ajax-translation” folder on your server, it should be in “wp-content/plugins/” directory
  4. Active it from your admin page
  5. 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!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • StumbleUpon
  • TwitThis

English, WordPress , , , , , , , ,

  1. August 3rd, 2009 at 04:50 | #1

    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?

  2. Wendell
    August 3rd, 2009 at 08:49 | #2

    Great,
    Thank you.

    How can I make it translate automatically when it detects the source language without clicking anywhere?

  3. maoric
    August 5th, 2009 at 15:09 | #3

    Hi, you have got bad flag of Czech. See it in wiki http://en.wikipedia.org/wiki/File:Flag_of_the_Czech_Republic.svg

  4. August 7th, 2009 at 12:38 | #4

    So can I just display the flags instead of the “[Translate]” text?

  5. August 9th, 2009 at 08:48 | #5

    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.

  6. Cleiton Souza
    August 15th, 2009 at 17:24 | #6

    Why don´t have portuguese in translator?

  7. August 17th, 2009 at 19:41 | #7

    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.

  8. August 28th, 2009 at 23:27 | #8

    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

  9. August 31st, 2009 at 11:36 | #9

    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.

  10. September 1st, 2009 at 08:33 | #10

    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

  11. September 4th, 2009 at 10:12 | #11

    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 :)

  12. Petra
    September 10th, 2009 at 15:08 | #12

    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

  13. Li-An
    September 16th, 2009 at 04:32 | #13

    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…

  14. September 22nd, 2009 at 01:08 | #14

    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

  15. wackonerd
    September 22nd, 2009 at 03:34 | #15

    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.

  16. September 22nd, 2009 at 09:24 | #16

    awesome plugin :D just what we were looking for :)

  17. wackonerd
    September 22nd, 2009 at 19:00 | #17

    Hi, I worked out it is the theme I am using that is the issue, the plugin works great in other themes. Thanks

  18. Nora
    September 28th, 2009 at 03:25 | #18

    I loved it <3 thank u so so much
    my question is there any custome hooks for it ?!
    something like
    I badly need it :-)

  19. Nora
    September 28th, 2009 at 03:26 | #19

    sorry wordpress didn’t allow it but something like

  20. Nora
    September 28th, 2009 at 03:28 | #20

    oh my god lol this code can’t be wrote here !

  21. October 4th, 2009 at 20:55 | #21

    But it can’t work in Eos(theme)

  22. October 5th, 2009 at 17:52 | #22

    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.

  23. October 10th, 2009 at 04:24 | #23

    All about Bulgaria and Bulgarian Language

  24. October 13th, 2009 at 16:35 | #24

    @Tom
    Got it working.

  25. October 16th, 2009 at 03:34 | #25

    Hello,

    please add “Belarussian” to translations list

    thanks :)

  26. October 16th, 2009 at 03:36 | #26

    posting from facebook account – what about Belarus?
    This translation improved recently, please add it to the list of available languages.

  27. November 2nd, 2009 at 13:21 | #27

    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

  28. November 5th, 2009 at 01:21 | #28

    how can i use it……………need code? 3Q(think you)…please tell me ..

  29. November 19th, 2009 at 07:05 | #29

    It works great.

  30. November 23rd, 2009 at 10:43 | #30

    Hi Libin, thank you for the amazing job!
    Now http://madmac.com.br can be viewed in many many languages!
    Thanks a lot!

  31. November 24th, 2009 at 13:57 | #31

    The translator box (text or with flags) not shown on my site

    Coul you help it, please?

  32. December 2nd, 2009 at 17:44 | #32

    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?

  33. dr
    December 13th, 2009 at 00:56 | #33

    cool ext!!! respect Libin!

  34. December 22nd, 2009 at 08:13 | #34

    Hi, this plugin is very nice and usefull. Thank you. :)

  35. January 12th, 2010 at 13:40 | #35

    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!

  36. Lx
    January 15th, 2010 at 02:36 | #36

    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

  37. January 17th, 2010 at 17:22 | #37

    @Ashok

    Did you ever solve the placement of the [Translate]? I am looking to change the placement for this as well.

  38. February 4th, 2010 at 13:07 | #38

    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

  39. February 17th, 2010 at 20:12 | #39

    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.

  40. Fredric
    February 24th, 2010 at 09:06 | #40

    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.

Comment pages
  1. August 4th, 2008 at 00:28 | #1
  2. August 28th, 2008 at 04:20 | #2
  3. September 6th, 2008 at 13:13 | #3
  4. September 7th, 2008 at 07:58 | #4
  5. November 29th, 2008 at 20:05 | #5
  6. January 22nd, 2009 at 05:43 | #6
  7. April 5th, 2009 at 15:42 | #7
  8. May 15th, 2009 at 10:37 | #8
  9. June 10th, 2009 at 22:31 | #9
  10. July 22nd, 2009 at 12:33 | #10
  11. August 10th, 2009 at 15:22 | #11
  12. November 18th, 2009 at 04:34 | #12