-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Google Translate api doesn't support free translations now. So, this subtitle translator uses mygengo and able to translate subtitles using terminal and a mygengo free account to translate subtitles in various supported Langauges. Supported file format is srt
in UTF-8
Format. This application is written in Python and script translate_subs is installed in your main shell.
-
mygengo <http://pypi.python.org/pypi/mygengo/1.3.1>
_
No need to installed as it is installed automatically as dependencies. However, incase of troubles install mygengo manually
-
Python 2.6.* or above
-
mygengo api registration <http://mygengo.com>
_
::
git clone git://[email protected]/kevincobain2000/subtitle_translator.git
python setup.py install
- Register at
mygengo
and installingmygengo python api
. - Generate public_key and private_key.
- Make a dir in your home directory like this
mkdir ~/mygengo_keys
- Copy and Paste and save in the files
~/mygengo_keys/public_key.txt
and~/mygengo_keys/private_key.txt
, respectively. - Save the above text files in home directory.
Note#
Doecho $HOME
to find out location of your home directory.
Script translate_subs
is installed and is called directly.
::
- translate_subs -i input.srt -f english -t japanese
- translate_subs -i input.srt -f en -t ja
- translate_subs -i input.srt -f Eng -t Jap
Output --> Translated file saved to ja-input.srt
::
sv Swedish id Indonesian pt Portuguese (Europe) es-la Spanish (Latin America) ko Korean ar Arabic fr-ca French (Canada) nl Dutch en English ja Japanese es Spanish (Spain) zh Chinese (Simplified) de German fr French ru Russian it Italian pt-br Portuguese (Brazil)
Note#
Supported Languages are from English to Target language and vice versa
input.srt
file must be utf-8
encoded. To convert to utf-8
see man iconv
translate_subs -h
-
Home <http://www.jaist.ac.jp/~s1010205/>
_ -
Contact Form <http://www.jaist.ac.jp/~s1010205/styled-2/index.html>
_ -
github <https://github.com/kevincobain2000/subtitle_translator>
_ -
pulkit[at]jaist.ac.jp