mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-11 17:55:33 +00:00
show "SOURCE" if the subtitle is a source subtitle
This commit is contained in:
parent
3a909eb314
commit
f507cadf01
2 changed files with 6 additions and 1 deletions
|
|
@ -849,6 +849,7 @@
|
|||
"autoSelectChoice": "Auto select",
|
||||
"autoSelectDifferentChoice": "Tap again to auto select different subtitle",
|
||||
"SourceChoice": "Source Subtitles",
|
||||
"source": "SOURCE",
|
||||
"OpenSubtitlesChoice": "External Subtitles",
|
||||
"loadingExternal": "Loading external subtitles...",
|
||||
"transcriptChoice": "Transcript",
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ export function CaptionOption(props: CaptionOptionProps) {
|
|||
{props.subtitleType.toUpperCase()}
|
||||
</span>
|
||||
)}
|
||||
{props.subtitleSource && (
|
||||
{props.subtitleSource ? (
|
||||
<span
|
||||
className={classNames(
|
||||
"ml-2 px-2 py-0.5 rounded text-white text-xs font-semibold overflow-hidden text-ellipsis whitespace-nowrap",
|
||||
|
|
@ -211,6 +211,10 @@ export function CaptionOption(props: CaptionOptionProps) {
|
|||
>
|
||||
{props.subtitleSource.toUpperCase()}
|
||||
</span>
|
||||
) : (
|
||||
<span className="ml-2 px-2 py-0.5 rounded text-white text-xs font-semibold overflow-hidden text-ellipsis whitespace-nowrap bg-grey-500">
|
||||
{t("player.menus.subtitles.source")}
|
||||
</span>
|
||||
)}
|
||||
{props.isHearingImpaired && (
|
||||
<Icon icon={Icons.EAR} className="ml-2" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue