Save translated subtitles next to the video #8

Closed
opened 2026-11-13 20:42:18 +07:00 by tri · 0 comments
Owner

Translations are written to ~/.cache/.../translations/<name>.<hash>.<lang>.srt (translationservice.cpp:59). mpv's sub-auto=fuzzy only scans the video's folder, so reopening the video does not load the translation.

  • Write the result as <video basename>.<lang>.srt next to the video, so mpv and other players pick it up.
  • If the folder is not writable (or the file is remote), fall back to the cache and load it from there when the video opens.
  • Do not overwrite an existing user subtitle with the same name without asking (or use a distinct suffix).
  • Keep the prompt/config hash so a changed preset can still re-translate.
Translations are written to `~/.cache/.../translations/<name>.<hash>.<lang>.srt` (`translationservice.cpp:59`). mpv's `sub-auto=fuzzy` only scans the video's folder, so reopening the video does not load the translation. - Write the result as `<video basename>.<lang>.srt` next to the video, so mpv and other players pick it up. - If the folder is not writable (or the file is remote), fall back to the cache and load it from there when the video opens. - Do not overwrite an existing user subtitle with the same name without asking (or use a distinct suffix). - Keep the prompt/config hash so a changed preset can still re-translate.
tri added the enhancement label 2026-11-13 20:42:18 +07:00
tri closed this issue 2026-11-13 22:49:56 +07:00
Sign in to join this conversation.