This bookmarklet allows you to select a piece of text that isn't in your language, and it will try to convert it automatically for you via the Google Language API.
It pops the translation up into the Prototype UI window.
This project contains the bookmarklet, the JavaScript, CSS, and other resources that the bookmarklet downloads, and a copy of John Grubbers script to bookmarklet convertor.
By default it assumes English (en), so you have to change the value to a different one that exists in the documentation.
The contents
bookmarklet/ # the main directory translate-bookmarklet.js # the compressed bookmarklet form that you can drag over translate.js # the readable source code pre-compressed bin/makebookmarklet # John Grubber's script to bookmarklet convertor server/* # A stripped down Prototype UI Dialog object