Plugin Directory

Google AJAX Translation

  • This plugin uses the Google AJAX Language API and the jquery-translate plugin.
  • Google Ajax Translation automatically detects your source language. If your source text changes to more than one language it can get confused.
  • If your theme doesn't have a unique id for each post the plugin will fall back to translating just the content of the post but not the title, date, author, tags, etc. Try the plugin with the default theme (Kubrick) to see how it should work. If you need help modifying your theme just ask in the forums.
  • To exclude certain pages from displaying the "Translate" button put the page ID numbers into the field marked "Exclude pages", for example 4, 5, 21. If you use permalinks you may not know your page ID's. The page ID is the number at the end of the URL when editing a page.
  • The CSS background-color of the popup can be specified in the format #5AF or #55AAFF or it can be copied from the body of the page.
  • Most formatting, font, color, etc. changes can be made in google-ajax-translation.css or you can override them with your own CSS file
  • The included ajax throbber is black on a white background. You can make your own at http://www.ajaxload.info/. 16 by 16 pixels works best.
  • The "[" and "]" characters in the "Translate" button can be changed in the variables $before_translate and $after_translate
  • The google-ajax-translation.js file is included for reference. It is minified and appended to the file jquery.translate-1.4.1.min.js
  • Deleting the plugin from the Administration Panel (Plugins > Installed) also deletes the options from the wp_options table in the database.
  • This plugin automatically uses the jQuery library supplied by your WordPress installation (version 1.3.2 as of October 2009). If your theme or another plugin has another copy of jQuery hard coded into it this plugin may not work.
  • Clicking the "powered by Google" link will take you to a full-page Google translation in your browser's preferred language. (This service will refuse to translate a page into the same language though, e.g. English to English.)

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus (3 reporting)

100%
100,1,1 100,1,1 100,3,3

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(18 ratings)