Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tutorial on youtube please! #3

Open
preciouskkura opened this issue Mar 27, 2024 · 1 comment
Open

tutorial on youtube please! #3

preciouskkura opened this issue Mar 27, 2024 · 1 comment

Comments

@preciouskkura
Copy link

Hi, i'm new to this code stuff so i'm a little bit lost on how to translate the Korean srt files I have. Can you please make an easier tutorial?

@karim23657
Copy link
Owner

Hello @preciouskkura , These are steps to translate a Korean srt file to English :

  1. First you need to hava "python" program on your system
    if you have already installed it go to next step.
  2. Open cmd or terminal on your system and paste or type this code and press Enter : pip install git+https://github.com/karim23657/Subtr
  3. Create a .py file with any python ide like this and save it :
from subtr import SubTr
translator = SubTr()
# Here you should replace 'Your_Korean_File.srt' with full path of your own srt file like : 'C:/Users/Admin/Downloads/Korean.srt'
translator.srt('Your_Korean_File.srt')
# Here you should replace 'Translated_File.srt' with full path of where you want to save it
# Two letter language code dest_lang="en"  (language which srt file translated to) , src_lang="ko" (language of srt file ) 
translator.translate(dest_lang="en" , src_lang="ko",save_path='Translated_File.srt')

List of language codes : https://gist.github.com/JT5D/a2fdfefa80124a06f5a9

4.Run python file 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants