From d3e6d7cd05ad8cfe6d9fc8d5ac3dccf513fb189e Mon Sep 17 00:00:00 2001
From: Bakerboy448 <55419169+bakerboy448@users.noreply.github.com>
Date: Sat, 29 Apr 2023 14:58:27 -0500
Subject: [PATCH] Fixed: Missing Translates
---
frontend/src/Components/Modal/ModalError.js | 2 +-
frontend/src/Components/Page/PageContentError.js | 3 ++-
frontend/src/Movie/Details/MovieDetailsPageConnector.js | 2 +-
src/NzbDrone.Core/Localization/Core/en.json | 3 +++
4 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/frontend/src/Components/Modal/ModalError.js b/frontend/src/Components/Modal/ModalError.js
index 2c982519c..974bb6e08 100644
--- a/frontend/src/Components/Modal/ModalError.js
+++ b/frontend/src/Components/Modal/ModalError.js
@@ -26,7 +26,7 @@ function ModalError(props) {
messageClassName={styles.message}
detailsClassName={styles.details}
{...otherProps}
- message='There was an error loading this item'
+ message={translate('ThereWasAnErrorLoadingThisItem')}
/>
diff --git a/frontend/src/Components/Page/PageContentError.js b/frontend/src/Components/Page/PageContentError.js
index 9a76f2ee3..8085cc92c 100644
--- a/frontend/src/Components/Page/PageContentError.js
+++ b/frontend/src/Components/Page/PageContentError.js
@@ -1,5 +1,6 @@
import React from 'react';
import ErrorBoundaryError from 'Components/Error/ErrorBoundaryError';
+import translate from 'Utilities/String/translate';
import PageContentBody from './PageContentBody';
import styles from './PageContentError.css';
@@ -9,7 +10,7 @@ function PageContentError(props) {
diff --git a/frontend/src/Movie/Details/MovieDetailsPageConnector.js b/frontend/src/Movie/Details/MovieDetailsPageConnector.js
index 2ba58a03b..e32403187 100644
--- a/frontend/src/Movie/Details/MovieDetailsPageConnector.js
+++ b/frontend/src/Movie/Details/MovieDetailsPageConnector.js
@@ -80,7 +80,7 @@ class MovieDetailsPageConnector extends Component {
if (isFetching && !isPopulated) {
return (
-
+
diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json
index 66f83dcfb..aa20b5149 100644
--- a/src/NzbDrone.Core/Localization/Core/en.json
+++ b/src/NzbDrone.Core/Localization/Core/en.json
@@ -489,6 +489,7 @@
"ListSyncLevelHelpTextWarning": "Movie files will be permanently deleted, this can result in wiping your library if your lists are empty",
"ListTagsHelpText": "Tags list items will be added with",
"ListUpdateInterval": "List Update Interval",
+ "Loading": "Loading",
"LoadingMovieCreditsFailed": "Loading movie credits failed",
"LoadingMovieExtraFilesFailed": "Loading movie extra files failed",
"LoadingMovieFilesFailed": "Loading movie files failed",
@@ -1025,6 +1026,8 @@
"TestAllIndexers": "Test All Indexers",
"TestAllLists": "Test All Lists",
"TheLogLevelDefault": "The log level defaults to 'Info' and can be changed in",
+ "ThereWasAnErrorLoadingThisItem": "There was an error loading this item",
+ "ThereWasAnErrorLoadingThisPage": "There was an error loading this page",
"ThisCannotBeCancelled": "This cannot be cancelled once started without disabling all of your indexers.",
"ThisConditionMatchesUsingRegularExpressions": "This condition matches using Regular Expressions. Note that the characters {0} have special meanings and need escaping with a {1}",
"Time": "Time",