1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-08-18 00:09:37 +02:00

tidied up unnecesarry lines and added translation line

This commit is contained in:
Robin Dadswell 2021-01-11 14:43:15 +00:00 committed by Qstick
parent b6e46ad8fd
commit 11b4967629
3 changed files with 1 additions and 21 deletions

View File

@ -297,7 +297,6 @@ class MovieIndexPoster extends Component {
inCinemas={inCinemas}
physicalRelease={physicalRelease}
digitalRelease={digitalRelease}
releaseDate={releaseDate}
{...otherProps}
/>

View File

@ -15,7 +15,6 @@ function MovieIndexPosterInfo(props) {
inCinemas,
digitalRelease,
physicalRelease,
releaseDate,
certification,
path,
sizeOnDisk,
@ -59,24 +58,6 @@ function MovieIndexPosterInfo(props) {
);
}
if (sortKey === 'releaseDate' && !showReleaseDate) {
const relativeReleaseDate = getRelativeDate(
releaseDate,
shortDateFormat,
showRelativeDates,
{
timeFormat,
timeForToday: false
}
);
return (
<div className={styles.info}>
{translate('releaseDate')}: {relativeReleaseDate}
</div>
);
}
if (sortKey === 'inCinemas' && inCinemas && !showReleaseDate) {
const inCinemasDate = getRelativeDate(
inCinemas,
@ -167,7 +148,6 @@ MovieIndexPosterInfo.propTypes = {
certification: PropTypes.string,
digitalRelease: PropTypes.string,
physicalRelease: PropTypes.string,
releaseDate: PropTypes.string.isRequired,
path: PropTypes.string.isRequired,
sizeOnDisk: PropTypes.number,
sortKey: PropTypes.string.isRequired,

View File

@ -736,6 +736,7 @@
"RelativePath": "Relative Path",
"ReleaseBranchCheckOfficialBranchMessage": "Branch {0} is not a valid Radarr release branch, you will not receive updates",
"Released": "Released",
"ReleaseDate": "Release Date",
"ReleaseDates": "Release Dates",
"ReleasedMsg": "Movie is released",
"ReleaseGroup": "Release Group",