An open source (GPL) Python script making used of Google's translation API to translate text from the commandline.
Get it from its Github page.