{"id":20317292,"url":"https://github.com/botbahlul/translatesrt","last_synced_at":"2025-04-11T17:42:40.084Z","repository":{"id":205960601,"uuid":"715527583","full_name":"botbahlul/translatesrt","owner":"botbahlul","description":"Translate subtitle file to another language","archived":false,"fork":false,"pushed_at":"2024-05-05T17:01:34.000Z","size":32,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T13:45:42.874Z","etag":null,"topics":["captions","google-translate","google-translate-api","json","json-sibtitles","python","srt","srt-subtitles","subtitle-translator","subtitles","translate","translate-subtitles","vtt","vtt-subtitles"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/botbahlul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-07T10:22:25.000Z","updated_at":"2024-12-15T00:09:15.000Z","dependencies_parsed_at":"2024-05-05T18:22:48.986Z","dependency_job_id":"81de8bca-4d61-4099-b779-b5acc552f89d","html_url":"https://github.com/botbahlul/translatesrt","commit_stats":null,"previous_names":["botbahlul/translatesrt"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botbahlul%2Ftranslatesrt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botbahlul%2Ftranslatesrt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botbahlul%2Ftranslatesrt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botbahlul%2Ftranslatesrt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botbahlul","download_url":"https://codeload.github.com/botbahlul/translatesrt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248451662,"owners_count":21105911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["captions","google-translate","google-translate-api","json","json-sibtitles","python","srt","srt-subtitles","subtitle-translator","subtitles","translate","translate-subtitles","vtt","vtt-subtitles"],"created_at":"2024-11-14T18:30:45.550Z","updated_at":"2025-04-11T17:42:40.045Z","avatar_url":"https://github.com/botbahlul.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# translatesrt \u003ca href=\"https://pypi.python.org/pypi/translatesrt\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/translatesrt.svg\"\u003e\u003c/img\u003e\u003c/a\u003e\n\n### Translate subtitle files to another language\ntranslatesrt is a simple command line tool made with python to translate subtitle files to another language.\n\n### Installation\nIf you don't have python on your Windows system you can get compiled version from this git release assets\nhttps://github.com/botbahlul/translatesrt/releases\n\nJust extract that translatesrt.exe into a folder that has been added to PATH ENVIRONTMET for example in C:\\Windows\\system32\n\nIn Linux you have to install this script with python (version minimal 3.8 ) \n\nTo install this translatesrt, just type :\n```\npip install translatesrt\n```\n\nYou can try to compile that translatesrt.py script in win or linux folder to a single executable file with pyinstaller by typing these :\n```\npip install pyinstaller\npyinstaller --onefile translatesrt.py\n```\n\nThe executable compiled file will be placed by pyinstaller into dist subfolder of your current working folder, so you can just rename and put that compiled file into a folder that has been added to your PATH ENVIRONTMENT so you can execute it from anywhere\n\nI was succesfuly compiled it in Windows 10 with pyinstaller-5.1 and Pyhton-3.10.4, and python-3.8.12 in Debian 9\n\nAnother alternative way to install this script with python is by cloning this git (or downloading this git as zip then extract it into a folder), and then just type :\n\n```\npip install wheel\npython setup.py build\npython setup.py bdist_wheel\n```\n\nThen check the name of the whl file created in dist folder. In case the filename is translatesrt-0.0.1-py2.py3-none-any.whl then you can install that whl file with pip :\n```\ncd dist\npip install translatesrt-0.0.1-py2.py3-none-any.whl\n```\n\nYou can also install this script (or any pip package) in ANDROID DEVICES via PYTHON package in TERMUX APP\n\nhttps://github.com/termux/termux-app/releases/tag/v0.118.0\n\nChoose the right apk for your device, install it, then open it\n\nType these commands to get python, pip, this translatesrt, (and any other pip packages) :\n\n```\ntermux-setup-storage\npkg update -y\npkg install -y python\npkg install -y ffmpeg\npip install translatesrt\n```\n\n### Simple usage example \n\n```\ntranslatesrt --help\ntranslatesrt \"Episode 1.srt\" -S en -D id\n```\n\n### Usage\n\n```\nusage: translatesrt.py [-h] [-S SRC_LANGUAGE] [-D DST_LANGUAGE] [-ll] [-F FORMAT] [-lf] [-C CONCURRENCY] [-v]\n                       [subtitle_file_path ...]\n\npositional arguments:\n  subtitle_file_path    Subtitle file path you want to translate (use wildcard for multiple files or separate them with a space\n                        character e.g. \"file 1.srt\" \"file 2.srt\")\n\noptions:\n  -h, --help            show this help message and exit\n  -S SRC_LANGUAGE, --src-language SRC_LANGUAGE\n                        Language code of subtitle file you want to translate\n  -D DST_LANGUAGE, --dst-language DST_LANGUAGE\n                        Desired translation language code for the subtitles\n  -ll, --list-languages\n                        List all supported languages\n  -F FORMAT, --format FORMAT\n                        Desired subtitles file format\n  -lf, --list-formats   List all supported subtitles file formats\n  -C CONCURRENCY, --concurrency CONCURRENCY\n                        Number of concurrent API requests to make\n  -v, --version         show program's version number and exit\n```\n\n### License\n\nMIT\n\nCheck my other SPEECH RECOGNITIION + TRANSLATE PROJECTS in https://botbahlul.github.io\n\nBuy me coffee : https://sociabuzz.com/botbahlul/tribe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotbahlul%2Ftranslatesrt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotbahlul%2Ftranslatesrt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotbahlul%2Ftranslatesrt/lists"}