Although translators are far from perfect there has been huge advances on the science behind them here's an interesting article that show how it is done
How Google Converted Language Translation Into a Problem of Vector Space Mathematics | MIT Technology Review