I am trying to translate large number of text files from English to other several languages. And we use Python in our project, we try to use Google translation service to translate them first then we will correct the mistakes manually.
I have come up with two ways to translate:
Use Python Google translation API. Here: goslate 1.1.2: Python Package
Try to program with the google translation page, that is, feed in the text that we want to translate, simulate the HTTP request and process the response. Google Translation
Is anyone have a better offer?
Click on Settings. Type in Translate in the Search Field. Expand the Language option by clicking on the arrow. Turn off "Offer to translate pages that aren't in a language you read"
You can also translate text documents via Google Translate API. All you have to do is to read the text file in Python using the open method, read the text and pass it to the translate() method. You can also check whether or not the file is in "read" mode using the mode property: if f.
Googletrans is a free and unlimited python library that implemented Google Translate API. This uses the Google Translate Ajax API to make calls to such methods as detect and translate.
Tap the microphone icon at the top of the screen and speak your word or phrase into the app. Google Translate then translates your words in the target language. Tap the Speaker icon to hear the translation. Another option is to tap the Transcribe icon and then start speaking.
I made my own google translate function for python ;) try it https://github.com/mouuff/Google-Translate-API
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With