diff --git a/README.md b/README.md index f8e5aaa..684c338 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ A simple [mpv](https://mpv.io/) Lua script that uses Google Translate API calls ## Usage 1. **Open** a video with subtitles in mpv. -2. When you see a subtitle on-screen, press **Ctrl+T** (you can change this keybind in the options at the beginning of the script). +2. When you see a subtitle on-screen, press **T** (you can change this keybind in the options at the beginning of the script). 3. The script sends the subtitle text to Google Translate, retrieves the translation, and displays it in the OSD. ## Changing the Target Language diff --git a/SubTranslate.lua b/SubTranslate.lua index e8ca899..65419e3 100644 --- a/SubTranslate.lua +++ b/SubTranslate.lua @@ -3,7 +3,7 @@ local o = { source_lang = 'en', -- Translate from, e.g. 'ru', 'en', 'de', etc. Change to 'auto' to detect the source language destination_lang = 'ru', -- Translate to duration = 10, -- how long will the translation be shown on the OSD screen (in secs.) - key_binding = "ctrl+t" -- Keybind for translating the current sub + key_binding = "t" -- Keybind for translating the current sub } local mp = require 'mp'