mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Frontend string cleanup
This commit is contained in:
@@ -7,10 +7,11 @@ function ErrorPage(props) {
|
|||||||
const {
|
const {
|
||||||
version,
|
version,
|
||||||
isLocalStorageSupported,
|
isLocalStorageSupported,
|
||||||
moviesError,
|
indexersError,
|
||||||
|
indexerStatusError,
|
||||||
|
indexerCategoriesError,
|
||||||
customFiltersError,
|
customFiltersError,
|
||||||
tagsError,
|
tagsError,
|
||||||
qualityProfilesError,
|
|
||||||
languagesError,
|
languagesError,
|
||||||
uiSettingsError,
|
uiSettingsError,
|
||||||
systemStatusError
|
systemStatusError
|
||||||
@@ -20,14 +21,16 @@ function ErrorPage(props) {
|
|||||||
|
|
||||||
if (!isLocalStorageSupported) {
|
if (!isLocalStorageSupported) {
|
||||||
errorMessage = 'Local Storage is not supported or disabled. A plugin or private browsing may have disabled it.';
|
errorMessage = 'Local Storage is not supported or disabled. A plugin or private browsing may have disabled it.';
|
||||||
} else if (moviesError) {
|
} else if (indexersError) {
|
||||||
errorMessage = getErrorMessage(moviesError, 'Failed to load movie from API');
|
errorMessage = getErrorMessage(indexersError, 'Failed to load indexers from API');
|
||||||
|
} else if (indexerStatusError) {
|
||||||
|
errorMessage = getErrorMessage(indexerStatusError, 'Failed to load indexers from API');
|
||||||
|
} else if (indexersError) {
|
||||||
|
errorMessage = getErrorMessage(indexerCategoriesError, 'Failed to load indexers from API');
|
||||||
} else if (customFiltersError) {
|
} else if (customFiltersError) {
|
||||||
errorMessage = getErrorMessage(customFiltersError, 'Failed to load custom filters from API');
|
errorMessage = getErrorMessage(customFiltersError, 'Failed to load custom filters from API');
|
||||||
} else if (tagsError) {
|
} else if (tagsError) {
|
||||||
errorMessage = getErrorMessage(tagsError, 'Failed to load tags from API');
|
errorMessage = getErrorMessage(tagsError, 'Failed to load tags from API');
|
||||||
} else if (qualityProfilesError) {
|
|
||||||
errorMessage = getErrorMessage(qualityProfilesError, 'Failed to load quality profiles from API');
|
|
||||||
} else if (languagesError) {
|
} else if (languagesError) {
|
||||||
errorMessage = getErrorMessage(languagesError, 'Failed to load languages from API');
|
errorMessage = getErrorMessage(languagesError, 'Failed to load languages from API');
|
||||||
} else if (uiSettingsError) {
|
} else if (uiSettingsError) {
|
||||||
@@ -52,10 +55,11 @@ function ErrorPage(props) {
|
|||||||
ErrorPage.propTypes = {
|
ErrorPage.propTypes = {
|
||||||
version: PropTypes.string.isRequired,
|
version: PropTypes.string.isRequired,
|
||||||
isLocalStorageSupported: PropTypes.bool.isRequired,
|
isLocalStorageSupported: PropTypes.bool.isRequired,
|
||||||
moviesError: PropTypes.object,
|
indexersError: PropTypes.object,
|
||||||
|
indexerStatusError: PropTypes.object,
|
||||||
|
indexerCategoriesError: PropTypes.object,
|
||||||
customFiltersError: PropTypes.object,
|
customFiltersError: PropTypes.object,
|
||||||
tagsError: PropTypes.object,
|
tagsError: PropTypes.object,
|
||||||
qualityProfilesError: PropTypes.object,
|
|
||||||
languagesError: PropTypes.object,
|
languagesError: PropTypes.object,
|
||||||
uiSettingsError: PropTypes.object,
|
uiSettingsError: PropTypes.object,
|
||||||
systemStatusError: PropTypes.object
|
systemStatusError: PropTypes.object
|
||||||
|
@@ -397,7 +397,7 @@ class IndexerIndex extends Component {
|
|||||||
{
|
{
|
||||||
!isFetching && !!error &&
|
!isFetching && !!error &&
|
||||||
<div className={styles.errorMessage}>
|
<div className={styles.errorMessage}>
|
||||||
{getErrorMessage(error, 'Failed to load movie from API')}
|
{getErrorMessage(error, 'Failed to load indexers from API')}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -248,7 +248,7 @@ class SearchIndex extends Component {
|
|||||||
{
|
{
|
||||||
!isFetching && !!error &&
|
!isFetching && !!error &&
|
||||||
<div className={styles.errorMessage}>
|
<div className={styles.errorMessage}>
|
||||||
{getErrorMessage(error, 'Failed to load movie from API')}
|
{getErrorMessage(error, 'Failed to load search results from API')}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
"ApplicationStatusCheckSingleClientMessage": "Applications unavailable due to failures: {0}",
|
"ApplicationStatusCheckSingleClientMessage": "Applications unavailable due to failures: {0}",
|
||||||
"Apply": "Apply",
|
"Apply": "Apply",
|
||||||
"ApplyTags": "Apply Tags",
|
"ApplyTags": "Apply Tags",
|
||||||
"ApplyTagsHelpTexts1": "How to apply tags to the selected movies",
|
"ApplyTagsHelpTexts1": "How to apply tags to the selected indexers",
|
||||||
"ApplyTagsHelpTexts2": "Add: Add the tags the existing list of tags",
|
"ApplyTagsHelpTexts2": "Add: Add the tags the existing list of tags",
|
||||||
"ApplyTagsHelpTexts3": "Remove: Remove the entered tags",
|
"ApplyTagsHelpTexts3": "Remove: Remove the entered tags",
|
||||||
"ApplyTagsHelpTexts4": "Replace: Replace the tags with the entered tags (enter no tags to clear all tags)",
|
"ApplyTagsHelpTexts4": "Replace: Replace the tags with the entered tags (enter no tags to clear all tags)",
|
||||||
|
Reference in New Issue
Block a user