If by real time you mean: sends english words to webserver (translate.google.com) -> webserver translates -> sends english words back to server -> server prints message out. Players would exploit this to lag the network connection of your server.
Don't get me wrong it's a good idea. just wouldn't be in real time, and would need to have some kind of socket open or something to read the page of google.translate
https://cloud.google.com/translate/v2/using_rest
Says you would need an api key and need to pay for the services for using REST. which most likely isn't cheap.
EDIT: you might be able to get away with doing it with Bing.
http://msdn.microsoft.com/en-us/library/ff512387.aspx