diff --git a/src/StreamsSelector.jsx b/src/StreamsSelector.jsx index 7d8a9654..97d5c087 100644 --- a/src/StreamsSelector.jsx +++ b/src/StreamsSelector.jsx @@ -214,16 +214,22 @@ const Stream = memo(({ filePath, stream, onToggle, batchSetCopyStreamIds, copySt const duration = !Number.isNaN(streamDuration) ? streamDuration : fileDuration; let Icon; + let codecTypeHuman; if (stream.codec_type === 'audio') { Icon = copyStream ? FaVolumeUp : FaVolumeMute; + codecTypeHuman = t('audio'); } else if (stream.codec_type === 'video') { Icon = copyStream ? FaVideo : FaVideoSlash; + codecTypeHuman = t('video'); } else if (stream.codec_type === 'subtitle') { Icon = copyStream ? MdSubtitles : FaBan; + codecTypeHuman = t('subtitle'); } else if (stream.codec_type === 'attachment') { Icon = copyStream ? FaPaperclip : FaBan; + codecTypeHuman = t('attachment'); } else { Icon = copyStream ? GoFileBinary : FaBan; + codecTypeHuman = stream.codec_type; } const streamFps = getStreamFps(stream); @@ -238,7 +244,7 @@ const Stream = memo(({ filePath, stream, onToggle, batchSetCopyStreamIds, copySt
{stream.index}
- {stream.codec_type} + {codecTypeHuman} {stream.codec_tag !== '0x0000' && stream.codec_tag_string} {stream.codec_name} @@ -263,10 +269,10 @@ const Stream = memo(({ filePath, stream, onToggle, batchSetCopyStreamIds, copySt } intent="success" onClick={() => batchSetCopyStreamIds((s) => s.codec_type === stream.codec_type, true)}> - {t('Keep all {{type}} tracks', { type: stream.codec_type })} + {t('Keep all {{type}} tracks', { type: codecTypeHuman })} } intent="danger" onClick={() => batchSetCopyStreamIds((s) => s.codec_type === stream.codec_type, false)}> - {t('Discard all {{type}} tracks', { type: stream.codec_type })} + {t('Discard all {{type}} tracks', { type: codecTypeHuman })}