I have been using something like that on Windows for ages, for dictionary. It's called Babylon Translator and is quite cool indeed. I've been using it first to automatic translate words from English to French. You SHIFT-right click on any word in any page or document or whatever, it recognizes it and try to translate.