Recently there were some changes in the work of Google Maps. Google no longer supports keyless access - http://googlegeodevelopers.blogspot.ru/2016/06/building-for-scale-updates-to-google.html
Machine translation is used after "Translate" button is clicked
After this button is clicked, script sends a request to Google Translate with cUrl, and thwn the translated line returns. High quality of this translation is not guaranteed.
Recently this functionlaity stopped working.