From 4cbd2cd8bc05232103c448bcc963ec0fb2974a7f Mon Sep 17 00:00:00 2001
From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com>
Date: Thu, 15 Jul 2021 18:18:22 -0500
Subject: [PATCH] Fixed: Add Missing Search Translates
---
frontend/src/Search/Menus/SearchIndexSortMenu.js | 16 ++++++++--------
frontend/src/Search/NoSearchResults.js | 2 +-
frontend/src/Search/SearchFooter.js | 3 ++-
src/NzbDrone.Core/Localization/Core/en.json | 3 ++-
4 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/frontend/src/Search/Menus/SearchIndexSortMenu.js b/frontend/src/Search/Menus/SearchIndexSortMenu.js
index d24d215f8..10af7a813 100644
--- a/frontend/src/Search/Menus/SearchIndexSortMenu.js
+++ b/frontend/src/Search/Menus/SearchIndexSortMenu.js
@@ -26,7 +26,7 @@ function SearchIndexSortMenu(props) {
sortDirection={sortDirection}
onPress={onSortSelect}
>
- Protocol
+ {translate('Protocol')}
- Age
+ {translate('Age')}
- Indexer
+ {translate('Indexer')}
- Size
+ {translate('Size')}
- Files
+ {translate('Files')}
- Grabs
+ {translate('Grabs')}
- Peers
+ {translate('Peers')}
- Category
+ {translate('Category')}
diff --git a/frontend/src/Search/NoSearchResults.js b/frontend/src/Search/NoSearchResults.js
index 51204959d..03fce4be9 100644
--- a/frontend/src/Search/NoSearchResults.js
+++ b/frontend/src/Search/NoSearchResults.js
@@ -19,7 +19,7 @@ function NoSearchResults(props) {
return (
- No search results found, try performing a new search below.
+ {translate('NoSearchResultsFound')}
);
diff --git a/frontend/src/Search/SearchFooter.js b/frontend/src/Search/SearchFooter.js
index c36d8e5d9..3288109b2 100644
--- a/frontend/src/Search/SearchFooter.js
+++ b/frontend/src/Search/SearchFooter.js
@@ -7,6 +7,7 @@ import TextInput from 'Components/Form/TextInput';
import keyboardShortcuts from 'Components/keyboardShortcuts';
import SpinnerButton from 'Components/Link/SpinnerButton';
import PageContentFooter from 'Components/Page/PageContentFooter';
+import translate from 'Utilities/String/translate';
import SearchFooterLabel from './SearchFooterLabel';
import styles from './SearchFooter.css';
@@ -167,7 +168,7 @@ class SearchFooter extends Component {
isDisabled={isFetching || !hasIndexers}
onPress={this.onSearchPress}
>
- Search
+ {translate('Search')}
diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json
index e6bed80b1..f0a9a911c 100644
--- a/src/NzbDrone.Core/Localization/Core/en.json
+++ b/src/NzbDrone.Core/Localization/Core/en.json
@@ -239,6 +239,7 @@
"NoLimitForAnyRuntime": "No limit for any runtime",
"NoLogFiles": "No log files",
"NoMinimumForAnyRuntime": "No minimum for any runtime",
+ "NoSearchResultsFound": "No search results found, try performing a new search below.",
"NoTagsHaveBeenAddedYet": "No tags have been added yet",
"NotificationTriggers": "Notification Triggers",
"NotificationTriggersHelpText": "Select which events should trigger this notification",
@@ -424,4 +425,4 @@
"Wiki": "Wiki",
"YesCancel": "Yes, Cancel",
"Yesterday": "Yesterday"
-}
+}
\ No newline at end of file