From 703c251b5cc15c35aaa53c3bbf76ac4b07b4e653 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 12 Sep 2023 17:25:52 +0300 Subject: [PATCH] Fix some translations --- .../Index/ProgressBar/MovieIndexProgressBar.tsx | 15 ++++++++------- .../DownloadClients/DownloadClients.js | 2 +- .../Settings/Profiles/Release/ReleaseProfiles.js | 4 ++-- src/NzbDrone.Core/Localization/Core/en.json | 2 ++ 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/frontend/src/Movie/Index/ProgressBar/MovieIndexProgressBar.tsx b/frontend/src/Movie/Index/ProgressBar/MovieIndexProgressBar.tsx index 78514ef17c..d22ed8ed0b 100644 --- a/frontend/src/Movie/Index/ProgressBar/MovieIndexProgressBar.tsx +++ b/frontend/src/Movie/Index/ProgressBar/MovieIndexProgressBar.tsx @@ -42,21 +42,22 @@ function MovieIndexProgressBar(props: MovieIndexProgressBarProps) { ); const progress = 100; - const queueStatusText = queueDetails.count > 0 ? 'Downloading' : null; + const queueStatusText = + queueDetails.count > 0 ? translate('Downloading') : null; let movieStatus = status === 'released' && hasFile ? 'downloaded' : status; if (movieStatus === 'deleted') { - movieStatus = 'Missing'; + movieStatus = translate('Missing'); if (hasFile) { - movieStatus = movieFile?.quality?.quality.name ?? 'Downloaded'; + movieStatus = movieFile?.quality?.quality.name ?? translate('Downloaded'); } } else if (hasFile) { - movieStatus = movieFile?.quality?.quality.name ?? 'Downloaded'; + movieStatus = movieFile?.quality?.quality.name ?? translate('Downloaded'); } else if (isAvailable && !hasFile) { - movieStatus = 'Missing'; + movieStatus = translate('Missing'); } else { - movieStatus = 'NotAvailable'; + movieStatus = translate('NotAvailable'); } const attachedClassName = bottomRadius @@ -80,7 +81,7 @@ function MovieIndexProgressBar(props: MovieIndexProgressBarProps) { size={detailedProgressBar ? sizes.MEDIUM : sizes.SMALL} showText={detailedProgressBar} width={width} - text={queueStatusText ? queueStatusText : translate(movieStatus)} + text={queueStatusText ? queueStatusText : movieStatus} /> ); } diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClients.js b/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClients.js index a547ab4b10..5104065ead 100644 --- a/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClients.js +++ b/frontend/src/Settings/DownloadClients/DownloadClients/DownloadClients.js @@ -62,7 +62,7 @@ class DownloadClients extends Component { return (
diff --git a/frontend/src/Settings/Profiles/Release/ReleaseProfiles.js b/frontend/src/Settings/Profiles/Release/ReleaseProfiles.js index 00dedf6236..51aa57b736 100644 --- a/frontend/src/Settings/Profiles/Release/ReleaseProfiles.js +++ b/frontend/src/Settings/Profiles/Release/ReleaseProfiles.js @@ -47,9 +47,9 @@ class ReleaseProfiles extends Component { } = this.props; return ( -
+
diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index 6bade32f74..ba74e49d4f 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -895,6 +895,8 @@ "ReleaseDates": "Release Dates", "ReleaseGroup": "Release Group", "ReleaseHash": "Release Hash", + "ReleaseProfiles": "Release Profiles", + "ReleaseProfilesLoadError": "Unable to load Release Profiles", "ReleaseRejected": "Release Rejected", "ReleaseStatus": "Release Status", "ReleaseTitle": "Release Title",