NLP : Machine Translation project - How do you use the translator?

The code is successful, with no errors. But, how do you get the code to translate text from one language to the other?