mirror of https://github.com/Radarr/Radarr
Fix translation usage for IMDbId and TMDBId
This commit is contained in:
parent
99441dfa67
commit
07b69e665d
|
@ -39,12 +39,12 @@ const columns = [
|
|||
},
|
||||
{
|
||||
name: 'imdbId',
|
||||
label: () => translate('ImdbId'),
|
||||
label: () => translate('IMDbId'),
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
name: 'tmdbId',
|
||||
label: () => translate('TmdbId'),
|
||||
label: () => translate('TMDBId'),
|
||||
isVisible: true,
|
||||
},
|
||||
];
|
||||
|
|
|
@ -28,7 +28,11 @@ class SelectMovieRow extends Component {
|
|||
</VirtualTableRowCell>
|
||||
|
||||
<VirtualTableRowCell className={styles.imdbId}>
|
||||
<Label>{this.props.imdbId}</Label>
|
||||
{
|
||||
this.props.imdbId ?
|
||||
<Label>{this.props.imdbId}</Label> :
|
||||
null
|
||||
}
|
||||
</VirtualTableRowCell>
|
||||
|
||||
<VirtualTableRowCell className={styles.tmdbId}>
|
||||
|
@ -43,7 +47,7 @@ SelectMovieRow.propTypes = {
|
|||
id: PropTypes.number.isRequired,
|
||||
title: PropTypes.string.isRequired,
|
||||
tmdbId: PropTypes.number.isRequired,
|
||||
imdbId: PropTypes.string.isRequired,
|
||||
imdbId: PropTypes.string,
|
||||
year: PropTypes.number.isRequired,
|
||||
onMovieSelect: PropTypes.func.isRequired
|
||||
};
|
||||
|
|
|
@ -72,11 +72,11 @@ function ParseResult(props: ParseResultProps) {
|
|||
/>
|
||||
|
||||
{tmdbId ? (
|
||||
<ParseResultItem title={translate('TmdbId')} data={tmdbId} />
|
||||
<ParseResultItem title={translate('TMDBId')} data={tmdbId} />
|
||||
) : null}
|
||||
|
||||
{imdbId ? (
|
||||
<ParseResultItem title={translate('ImdbId')} data={imdbId} />
|
||||
<ParseResultItem title={translate('IMDbId')} data={imdbId} />
|
||||
) : null}
|
||||
</FieldSet>
|
||||
|
||||
|
|
|
@ -441,6 +441,7 @@
|
|||
"ICalFeed": "iCal Feed",
|
||||
"ICalHttpUrlHelpText": "Copy this URL to your client(s) or click to subscribe if your browser supports webcal",
|
||||
"IMDb": "IMDb",
|
||||
"IMDbId": "IMDb Id",
|
||||
"IconForCutoffUnmet": "Icon for Cutoff Unmet",
|
||||
"IgnoreDeletedMovies": "Unmonitor Deleted Movies",
|
||||
"Ignored": "Ignored",
|
||||
|
|
Loading…
Reference in New Issue