Introduction¶
Description¶
Small library to translate text for free using Google translate.
Note
google_translate is not a replacement of the official Google translate API.
You should use the official API for large projects.
Features¶
- Translate text
- Retrieve additional translations
- Retrieve info dictionary
- Detect the source language
- Detect typos
- Text romanization [1]
- Proxy support
- Multiple user-agents support
- Python logging support
- Caching
Requirements¶
- python 2.7.*
- twodict
- mock (to run the tests)
Installation¶
From Source¶
- Download & extract source from here
- Change directory into google-translate-0.2.4/
- Run python setup.py install
From Pypi¶
- Just run pip install doodle-translate
Quick start¶
Use GoogleTranslator to translate a word:
from google_translate import GoogleTranslator translator = GoogleTranslator() print translator.translate("hello world", "french")
Footnotes
[1] | Romanization <https://en.wikipedia.org/wiki/Romanization> |