in reply to Java script generation module

You could do something like Google Suggest: do a SOAP/XML-RPC request from the (javascript) client when you want the translation of a word. You'd need a general dictionary service on your server.