Bouxsaej neix caengz miz youq ndaw vah mwngz, ndigah yienh youq ndaw vah Yinghgoz.
Translate One Subtitle File Into Several Languages Without Mixing Up Tracks
Turn one source SRT into separate language tracks: freeze the source, name each file so players read its language, and check every file against the source.

To deliver one video in five languages, you need five separate subtitle files made from one source file. Each file needs the same base name as the video plus a language code, and each one needs to match the source cue for cue before it ships. Translating is the easy part. The mistakes happen around it: a typo fixed in the Spanish file but not the source, a Japanese track named .jp, a free preview uploaded as if it were the full file, or five tracks in one MKV that all say "Unknown".
This guide walks through that delivery job for a course creator or video editor who owns the source subtitle. It uses a small, published sample set: a six-cue English lesson and five translated files, plus a second set with five planted faults. It also uses a free script that catches those faults. If you need two languages on screen at once, that is a different job, covered in how to make bilingual subtitles. If the video lives on YouTube, the upload steps are in how to translate YouTube subtitles.
The four rules that prevent most mix-ups
- One source, frozen before translation. Every language inherits the source's timing and its mistakes. Fix both once, in the source.
- One file per language. Do not stack languages into one file unless you deliberately want a bilingual track.
- Same base name, then a language code.
lesson-01.mp4getslesson-01.es.srt,lesson-01.fr.srt, and so on. The code names a language, not a country. - Check every file against the source. Same cue count, same start and end times, valid UTF-8, no empty cues. A file that looks fine in a text editor can still fail all four.
Step 1: Freeze the source before anyone translates it
If you correct a cue's timing in the French file, the Spanish, German, Japanese, and Arabic files are now out of step with it. Treat the source file as the master. Make every timing fix, line split, and typo correction there, then translate from that version only.
Before you freeze it, confirm that the source opens as UTF-8 and plays in sync with the final cut of the video. Encoding damage in the source spreads to every language. If you see characters like é where é belongs, fix that first with the steps in how to fix subtitle encoding. Keep a copy of the frozen source next to the translations. The check in Step 4 compares every translated file against it.
Step 2: Translate once per target language
BookTranslator's subtitle translator accepts SRT, VTT, ASS, and SSA files and keeps each cue's timing attached to its translated text. Each task has exactly one target language. For five languages, upload the same frozen source five times, choosing a different target each time. Each task gives you two downloads: a target-only file and a bilingual file with the original line above the translation. For separate language tracks, you want the target-only file.
The downloaded file is not named for a media player. It takes the uploaded file's name plus a credit in the target language, so the source lesson-01.srt comes back as:
| Target | Download name | Rename to |
|---|---|---|
| Spanish | lesson-01 (traducido por booktranslator.app).srt | lesson-01.es.srt |
| French | lesson-01 (traduit par booktranslator.app).srt | lesson-01.fr.srt |
| German | lesson-01 (übersetzt von booktranslator.app).srt | lesson-01.de.srt |
| Japanese | lesson-01 (booktranslator.app による翻訳).srt | lesson-01.ja.srt |
| Arabic | lesson-01 (مترجم بواسطة booktranslator.app).srt | lesson-01.ar.srt |
Rename each file as soon as it downloads, while you still know which language it is. Five files with the same base name and a credit in five scripts are easy to confuse later.
Two more details come from the product's code and matter for this job:
- A free preview is not the full file. A preview translates the opening cues, then adds one closing cue that says the preview has ended. Its file name also carries a marker such as "(free preview)" or "(vista previa gratuita)". If you rename it as a finished track, the check in Step 4 reports the wrong cue count.
- Right-to-left targets come back wrapped. For Arabic, Hebrew, Persian, and Urdu, each translated SRT line is wrapped in Unicode isolate marks (U+2067 and U+2069) so that players order mixed text correctly. Leave them in. They are invisible, and removing them can scramble punctuation and numbers.
Step 3: Name each file for where it will play
Players match an external subtitle to its video by the base name, then read the language from the next part of the name. Jellyfin's naming guide shows the pattern and the flags it understands:
Film.mkv
Film.default.srt
Film.default.en.forced.ass
Film.en.sdh.srt
The same page notes a trap that catches multi-language sets: hi is also the code for Hindi. A file named Film.hi.srt is read as a Hindi track. To mark English subtitles for viewers who are deaf or hard of hearing, use Film.en.sdh.srt, or Film.en.hi.srt, where a language code comes first.
Language codes cause the other common mistake. Country codes look similar but name a place, not a language:
| You want | Use | Not |
|---|---|---|
| Japanese | ja | jp (Japan) |
| Chinese | zh, or zh-Hans / zh-Hant for script | cn (China) |
| Greek | el | gr (Greece) |
| Danish | da | dk (Denmark) |
| Ukrainian | uk | ua (Ukraine) |
| Czech | cs | cz (Czechia) |
| Brazilian Portuguese | pt-BR | br (Breton) |
For subtitles on your own web page, the HTML <track> element takes the language in srclang. MDN's reference says it must be a valid BCP 47 language tag. It also says only one track per video may carry default, and its documentation covers WebVTT files, so use VTT here rather than SRT:
<video controls src="lesson-01.mp4">
<track kind="subtitles" src="lesson-01.en.vtt" srclang="en" label="English" default>
<track kind="subtitles" src="lesson-01.es.vtt" srclang="es" label="Español">
<track kind="subtitles" src="lesson-01.pt-BR.vtt" srclang="pt-BR" label="Português (Brasil)">
</video>
Write each label in its own language. A viewer looking for Japanese scans for 日本語, not "Japanese".
Step 4: Check every file against the source
Open the files side by side and they look fine. The faults that break playback are in the structure. check_subtitle_set.py compares each translated file with the source. It uses only the Python standard library and reads SRT and VTT. For each file it checks:
- that the file decodes as UTF-8;
- that it has the same number of cues as the source;
- that every cue has the source's start and end time, to the millisecond;
- that no cue is empty;
- whether the file starts with a UTF-8 byte order mark, which it reports as a note to check;
- that the base name matches the source, and the language part is a language code, used only once.
Run it against the clean sample set (source, Spanish, French, German, Japanese, Arabic). The translations are short lines we wrote by hand for this sample, not output from any translation tool:
$ python3 check_subtitle_set.py good/lesson-01.en.srt good/lesson-01.{es,fr,de,ja,ar}.srt
source lesson-01.en.srt: 6 cues
OK lesson-01.es.srt
OK lesson-01.fr.srt
OK lesson-01.de.srt
OK lesson-01.ja.srt
OK lesson-01.ar.srt
The second set has one planted fault per translated file, each a mistake that happens in real deliveries: a preview delivered as the full file (Spanish), one cue retimed by hand in a single language (French), a file re-saved as Windows-1252 (German), a country code in the name (Japanese), and English SDH labelled with hi alone (lesson-01.hi.srt):
$ python3 check_subtitle_set.py broken/lesson-01.en.srt broken/lesson-01.{es,fr,de,jp,hi}.srt
source lesson-01.en.srt: 6 cues
CHECK lesson-01.es.srt
- 4 cues, source has 6
- cue 4 timing 8900-13900 ms, source 9100-11800 ms
CHECK lesson-01.fr.srt
- cue 4 timing 9600-11800 ms, source 9100-11800 ms
CHECK lesson-01.de.srt
- not valid UTF-8 (byte 167); re-save the file as UTF-8
CHECK lesson-01.jp.srt
- 'jp' is a country code, not a language code; use 'ja'
CHECK lesson-01.hi.srt
- 'hi' alone means Hindi; for hearing-impaired subtitles use '<lang>.sdh'
The script exits with status 1 when any file needs a check, so you can run it in a build or export step. It checks structure, not meaning. A file can pass every check and still contain a wrong translation, so have a reader of each language watch at least the first few minutes with the video.
The French case shows why the timing check exists. A cue that starts half a second late looks harmless in a text editor, but it means one language no longer matches the master. If the retiming was a real fix, make it in the source and re-translate. If it was an accident, restore the source timing.
Step 5 (optional): Put every language into one MKV
Separate files suit a media server, a web page, or YouTube. When you hand someone a single video file, Matroska (MKV) can carry every language as its own subtitle track. We muxed five of the clean sample files with FFmpeg 9.0.1 on macOS:
ffmpeg -i lesson-01.mp4 \
-i lesson-01.en.srt -i lesson-01.es.srt -i lesson-01.fr.srt -i lesson-01.ja.srt -i lesson-01.ar.srt \
-map 0:v -map 0:a -map 1 -map 2 -map 3 -map 4 -map 5 -c copy -c:s srt \
-metadata:s:s:0 language=eng -metadata:s:s:0 title=English \
-metadata:s:s:1 language=spa -metadata:s:s:1 title=Español \
-metadata:s:s:2 language=fre -metadata:s:s:2 title=Français \
-metadata:s:s:3 language=jpn -metadata:s:s:3 title=日本語 \
-metadata:s:s:4 language=ara -metadata:s:s:4 title=العربية \
-disposition:s:0 default -disposition:s:1 0 -disposition:s:2 0 -disposition:s:3 0 -disposition:s:4 0 \
lesson-01.multi.mkv
ffprobe then lists five subtitle tracks with their language, title, and only the English track marked default:
$ ffprobe -v error -select_streams s -show_entries stream=index,codec_name:stream_tags=language,title:stream_disposition=default,forced -of compact lesson-01.multi.mkv
stream|index=2|codec_name=subrip|disposition:default=1|disposition:forced=0|tag:language=eng|tag:title=English
stream|index=3|codec_name=subrip|disposition:default=0|disposition:forced=0|tag:language=spa|tag:title=Español
stream|index=4|codec_name=subrip|disposition:default=0|disposition:forced=0|tag:language=fre|tag:title=Français
stream|index=5|codec_name=subrip|disposition:default=0|disposition:forced=0|tag:language=jpn|tag:title=日本語
stream|index=6|codec_name=subrip|disposition:default=0|disposition:forced=0|tag:language=ara|tag:title=العربية
Note the three-letter codes. The Matroska notes on language codes describe two fields. The older Language field holds a three-letter bibliographic ISO 639-2 code such as fre. The newer LanguageBCP47 field holds a tag such as pt-BR and takes precedence when both are present. When we passed es and pt-BR to this FFmpeg build, it wrote those strings into the older three-letter field and wrote no LanguageBCP47 element. We confirmed this by reading the element bytes in the output file. ffprobe still displays the value you passed, so it will not warn you. Pass three-letter codes (spa, fre, ger, jpn, ara, por) and put regional detail in the track title, for example Português (Brasil). If you need a true BCP 47 tag in the file, check that your muxer writes that field before relying on it.
Extracting each track back out of the MKV with ffmpeg -i lesson-01.multi.mkv -map 0:s:4 out.srt and running the check script again gave the same six cues and timing as the source for every language. The Arabic track kept its isolate marks.
Before you send the set
- The source is frozen, and every translation was made from that version.
- Each language is its own file, translated from the full source, not a preview.
- Every file has the video's base name, a language code (not a country code), and the right extension for where it will play.
check_subtitle_set.pyreportsOKfor every file.- Only one track is marked default, and labels are written in their own language.
- A reader of each language has watched part of the video with their track on.
If the set is going to a video rather than a player, the next steps are uploading each language to YouTube or burning one language into the picture. If your source is WebVTT with positioning, read what survives when you translate a VTT file before you start: cue settings need their own check.
Okuthunyelwe Okuhlobene





