Simple tool for automatically translating "srt" subtitles for your movies using the google translate service.
This is a command line tool written in Python 3 to translate your subtitles for your series or movies.
Download the latest version from here.
This tool uses goslate (http://pythonhosted.org/goslate/) so you will need to install it in order to run the tool.
Installing goslate is really easy, just run this:
python -m pip install goslate
Just open your terminal and type:
python main.py [sub.srt] [desired sub lang] [original sub lang]
or for auto detecting the sub language:
python main.py [sub.srt] [desired sub lang]
Finally the tool will create for you a file with an upper case Prefix for your desired language. e.g:
python main.py Test1.srt es
will output: ES_Test1.srt
Note: Make sure your srt subtitle files have an UTF8 encoding, else you will have errors. Checkout here to how to set the encoding in case you have a different encoding than UTF8
pt : Portuguese | de : German | kn : Kannada | be : Belarusian |
hi : Hindi | iw : Hebrew | ny : Chichewa | lo : Lao |
mk : Macedonian | ta : Tamil | tr : Turkish | pl : Polish |
hr : Croatian | zu : Zulu | ga : Irish | pa : Punjabi |
ca : Catalan | te : Telugu | mr : Marathi | es : Spanish |
ur : Urdu | uk : Ukrainian | ka : Georgian | km : Khmer |
no : Norwegian | tg : Tajik | my : Myanmar (Burmese) | ar : Arabic |
ig : Igbo | ml : Malayalam | it : Italian | mt : Maltese |
gu : Gujarati | sv : Swedish | so : Somali | bg : Bulgarian |
az : Azerbaijani | ko : Korean | gl : Galician | tl : Filipino |
kk : Kazakh | sk : Slovak | ne : Nepali | la : Latin |
fi : Finnish | vi : Vietnamese | sw : Swahili | nl : Dutch |
af : Afrikaans | id : Indonesian | cs : Czech | ha : Hausa |
fr : French | si : Sinhala | su : Sundanese | hy : Armenian |
ja : Japanese | lt : Lithuanian | ht : Haitian Creole | lv : Latvian |
fa : Persian | en : English | sr : Serbian | mg : Malagasy |
zh : Chinese | bn : Bengali | th : Thai | el : Greek |
eo : Esperanto | st : Sesotho | mn : Mongolian | yi : Yiddish |
da : Danish | ms : Malay | ru : Russian | cy : Welsh |
sl : Slovenian | mi : Maori | yo : Yoruba | ro : Romanian |
bs : Bosnian | sq : Albanian | zh-CN: Chinese (Simplified) | jw : Javanese |
et : Estonian | eu : Basque | is : Icelandic | hmn : Hmong |
zh-TW: Chinese (Traditional) | ceb : Cebuano | uz : Uzbek | hu : Hungarian |
As mentioned above, in order to run SubTranslate you need to run the tool with Python 3.x
This tool was written by and is maintained by Juan Sebastian Muñoz aka "naruse". www.pencilsquaregames.com
Please do not hesitate to contact me with comments, bug reports or enhancements you would like to have through GitHub: https://github.com/naruse/SubTranslate/issues
TLDR; https://tldrlegal.com/license/mit-license
SubTranslate is released under the MIT License.