diff --git a/frontend/src/InteractiveSearch/InteractiveSearch.js b/frontend/src/InteractiveSearch/InteractiveSearch.js index e324bc000..f5b678a1a 100644 --- a/frontend/src/InteractiveSearch/InteractiveSearch.js +++ b/frontend/src/InteractiveSearch/InteractiveSearch.js @@ -1,10 +1,11 @@ import PropTypes from 'prop-types'; import React from 'react'; +import Alert from 'Components/Alert'; import Icon from 'Components/Icon'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import Table from 'Components/Table/Table'; import TableBody from 'Components/Table/TableBody'; -import { icons, sortDirections } from 'Helpers/Props'; +import { icons, kinds, sortDirections } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; import InteractiveSearchRow from './InteractiveSearchRow'; import styles from './InteractiveSearch.css'; @@ -112,17 +113,17 @@ function InteractiveSearch(props) { { !isFetching && isPopulated && !totalReleasesCount ? -
- No results found -
: + + {translate('NoResultsFound')} + : null } { !!totalReleasesCount && isPopulated && !items.length ? -
- All results are hidden by the applied filter -
: + + {translate('AllResultsAreHiddenByTheAppliedFilter')} + : null } @@ -157,7 +158,7 @@ function InteractiveSearch(props) { { totalReleasesCount !== items.length && !!items.length ?
- Some results are hidden by the applied filter + {translate('SomeResultsAreHiddenByTheAppliedFilter')}
: null } diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index 4b18c2a9c..ef5ffc76c 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -21,6 +21,7 @@ "AllBooks": "All Books", "AllExpandedCollapseAll": "Collapse All", "AllExpandedExpandAll": "Expand All", + "AllResultsAreHiddenByTheAppliedFilter": "All results are hidden by the applied filter", "AllowAuthorChangeClickToChangeAuthor": "Click to change author", "AllowFingerprinting": "Allow Fingerprinting", "AllowFingerprintingHelpText": "Use fingerprinting to improve accuracy of book matching", @@ -571,6 +572,7 @@ "NoMinimumForAnyRuntime": "No minimum for any runtime", "NoMissingItems": "No missing items", "NoName": "Do not show name", + "NoResultsFound": "No results found", "NoTagsHaveBeenAddedYet": "No tags have been added yet. Add tags to link authors with delay profiles, restrictions, or notifications. Click {0} to find out more about tags in Readarr.", "NoUpdatesAreAvailable": "No updates are available", "None": "None", @@ -846,6 +848,7 @@ "SkipSecondarySeriesBooks": "Skip secondary series books", "Small": "Small", "SmartReplace": "Smart Replace", + "SomeResultsAreHiddenByTheAppliedFilter": "Some results are hidden by the applied filter", "SorryThatAuthorCannotBeFound": "Sorry, that author cannot be found.", "SorryThatBookCannotBeFound": "Sorry, that book cannot be found.", "Source": "Source",