Subtitle Translator
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.
Pre-requisites
mygengo No need to installed as it is installed automatically as dependencies. However, incase of troubles install mygengo manually
Python 2.6.* or above
Obtain/Download
git clone git://kevincobain2000@github.com/kevincobain2000/subtitle_translator.git
Install
python setup.py install
Install Keys
Register at mygengo and installing mygengo 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# Do echo $HOME to find out location of your home directory.
Usage
Script translate_subs is installed and is called directly.
1. translate_subs -i input.srt -f english -t japanese 2. translate_subs -i input.srt -f en -t ja 3. translate_subs -i input.srt -f Eng -t Jap
>>> Output --> Translated file saved to ja-input.srt
Supported Languages
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
Charset
input.srt file must be utf-8 encoded. To convert to utf-8 see man iconv
Help
translate_subs -h
Contact
pulkit[at]jaist.ac.jp
Metadata
Release files for subtitle_translator 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| subtitle_translator-0.1.tar.gz | 43.6 kB | Without provenance | Details for subtitle_translator-0.1.tar.gz |
Release files / subtitle_translator-0.1.tar.gz
| Download URL | subtitle_translator-0.1.tar.gz |
|---|---|
| Size | 43.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6df5abb8aa6b8bfb375987676fcb7d9c9d954d5078a60aa81302a847fa30010f
|
|
BLAKE2b-256 checksum How to use checksums |
f1ab26d3f95d2b6957584c57cf8836351152affd8a7453a851b9f967e43cf883
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for subtitle_translator 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.