Fixed: Add Missing Search Translates

pull/360/head
bakerboy448 4 years ago committed by Qstick
parent e81d0f3e97
commit 4cbd2cd8bc

@ -26,7 +26,7 @@ function SearchIndexSortMenu(props) {
sortDirection={sortDirection} sortDirection={sortDirection}
onPress={onSortSelect} onPress={onSortSelect}
> >
Protocol {translate('Protocol')}
</SortMenuItem> </SortMenuItem>
<SortMenuItem <SortMenuItem
@ -35,7 +35,7 @@ function SearchIndexSortMenu(props) {
sortDirection={sortDirection} sortDirection={sortDirection}
onPress={onSortSelect} onPress={onSortSelect}
> >
Age {translate('Age')}
</SortMenuItem> </SortMenuItem>
<SortMenuItem <SortMenuItem
@ -53,7 +53,7 @@ function SearchIndexSortMenu(props) {
sortDirection={sortDirection} sortDirection={sortDirection}
onPress={onSortSelect} onPress={onSortSelect}
> >
Indexer {translate('Indexer')}
</SortMenuItem> </SortMenuItem>
<SortMenuItem <SortMenuItem
@ -62,7 +62,7 @@ function SearchIndexSortMenu(props) {
sortDirection={sortDirection} sortDirection={sortDirection}
onPress={onSortSelect} onPress={onSortSelect}
> >
Size {translate('Size')}
</SortMenuItem> </SortMenuItem>
<SortMenuItem <SortMenuItem
@ -71,7 +71,7 @@ function SearchIndexSortMenu(props) {
sortDirection={sortDirection} sortDirection={sortDirection}
onPress={onSortSelect} onPress={onSortSelect}
> >
Files {translate('Files')}
</SortMenuItem> </SortMenuItem>
<SortMenuItem <SortMenuItem
@ -80,7 +80,7 @@ function SearchIndexSortMenu(props) {
sortDirection={sortDirection} sortDirection={sortDirection}
onPress={onSortSelect} onPress={onSortSelect}
> >
Grabs {translate('Grabs')}
</SortMenuItem> </SortMenuItem>
<SortMenuItem <SortMenuItem
@ -89,7 +89,7 @@ function SearchIndexSortMenu(props) {
sortDirection={sortDirection} sortDirection={sortDirection}
onPress={onSortSelect} onPress={onSortSelect}
> >
Peers {translate('Peers')}
</SortMenuItem> </SortMenuItem>
<SortMenuItem <SortMenuItem
@ -98,7 +98,7 @@ function SearchIndexSortMenu(props) {
sortDirection={sortDirection} sortDirection={sortDirection}
onPress={onSortSelect} onPress={onSortSelect}
> >
Category {translate('Category')}
</SortMenuItem> </SortMenuItem>
</MenuContent> </MenuContent>
</SortMenu> </SortMenu>

@ -19,7 +19,7 @@ function NoSearchResults(props) {
return ( return (
<div> <div>
<div className={styles.message}> <div className={styles.message}>
No search results found, try performing a new search below. {translate('NoSearchResultsFound')}
</div> </div>
</div> </div>
); );

@ -7,6 +7,7 @@ import TextInput from 'Components/Form/TextInput';
import keyboardShortcuts from 'Components/keyboardShortcuts'; import keyboardShortcuts from 'Components/keyboardShortcuts';
import SpinnerButton from 'Components/Link/SpinnerButton'; import SpinnerButton from 'Components/Link/SpinnerButton';
import PageContentFooter from 'Components/Page/PageContentFooter'; import PageContentFooter from 'Components/Page/PageContentFooter';
import translate from 'Utilities/String/translate';
import SearchFooterLabel from './SearchFooterLabel'; import SearchFooterLabel from './SearchFooterLabel';
import styles from './SearchFooter.css'; import styles from './SearchFooter.css';
@ -167,7 +168,7 @@ class SearchFooter extends Component {
isDisabled={isFetching || !hasIndexers} isDisabled={isFetching || !hasIndexers}
onPress={this.onSearchPress} onPress={this.onSearchPress}
> >
Search {translate('Search')}
</SpinnerButton> </SpinnerButton>
</div> </div>
</div> </div>

@ -239,6 +239,7 @@
"NoLimitForAnyRuntime": "No limit for any runtime", "NoLimitForAnyRuntime": "No limit for any runtime",
"NoLogFiles": "No log files", "NoLogFiles": "No log files",
"NoMinimumForAnyRuntime": "No minimum for any runtime", "NoMinimumForAnyRuntime": "No minimum for any runtime",
"NoSearchResultsFound": "No search results found, try performing a new search below.",
"NoTagsHaveBeenAddedYet": "No tags have been added yet", "NoTagsHaveBeenAddedYet": "No tags have been added yet",
"NotificationTriggers": "Notification Triggers", "NotificationTriggers": "Notification Triggers",
"NotificationTriggersHelpText": "Select which events should trigger this notification", "NotificationTriggersHelpText": "Select which events should trigger this notification",

Loading…
Cancel
Save