title: translate language of text locally
body: <p>Does anyone know of anyway to translate text in a given language to another language at a linux/unix command line?  At the moment I'm most interested in western languages.</p>
  
  <p>I'd prefer not to send anything external to a service such as google translate or babelfish due to volume and firewall constraints.  </p>
  
  <p>For me tools close at hand are <code>python</code>, <code>nltk</code>, <code>java/jvm</code> stack, <code>wordpress</code>, (locally), pretty much anything <code>hadoop</code> or <code>open source</code>.</p>
  
  <p>Although I'd hate to attempt to write something to do this, I'm considering maybe just mapping two dictionaries together and then using that to look up tokens singularly.  This obviously wouldn't be the best "translation" but might give me some data I could work with in the desired language... the caveats being words that don't exist verbatim in the desired language, etc. </p>