change Search to Discover

This commit is contained in:
Mary Kate Fain 2024-05-22 10:52:56 -05:00
parent 49d1ee339c
commit 1fda261032
8 changed files with 13 additions and 13 deletions

View File

@ -373,7 +373,7 @@
"report.placeholder": "Additional comments", "report.placeholder": "Additional comments",
"report.submit": "Submit", "report.submit": "Submit",
"report.target": "Reporting {target}", "report.target": "Reporting {target}",
"search.placeholder": "Search", "search.placeholder": "Discover",
"search_popout.search_format": "Advanced search format", "search_popout.search_format": "Advanced search format",
"search_popout.tips.full_text": "Simple text returns posts you have written, favorited, reposted, or have been mentioned in, as well as matching usernames, display names, and hashtags.", "search_popout.tips.full_text": "Simple text returns posts you have written, favorited, reposted, or have been mentioned in, as well as matching usernames, display names, and hashtags.",
"search_popout.tips.hashtag": "hashtag", "search_popout.tips.hashtag": "hashtag",
@ -448,7 +448,7 @@
"tabs_bar.news": "News", "tabs_bar.news": "News",
"tabs_bar.notifications": "Alerts", "tabs_bar.notifications": "Alerts",
"tabs_bar.post": "Post", "tabs_bar.post": "Post",
"tabs_bar.search": "Search", "tabs_bar.search": "Discover",
"time_remaining.days": "{number, plural, one {# day} other {# days}} left", "time_remaining.days": "{number, plural, one {# day} other {# days}} left",
"time_remaining.hours": "{number, plural, one {# hour} other {# hours}} left", "time_remaining.hours": "{number, plural, one {# hour} other {# hours}} left",
"time_remaining.minutes": "{number, plural, one {# minute} other {# minutes}} left", "time_remaining.minutes": "{number, plural, one {# minute} other {# minutes}} left",
@ -854,7 +854,7 @@
"report.placeholder": "Additional comments", "report.placeholder": "Additional comments",
"report.submit": "Submit", "report.submit": "Submit",
"report.target": "Reporting {target}", "report.target": "Reporting {target}",
"search.placeholder": "Search", "search.placeholder": "Discover",
"search_popout.search_format": "Advanced search format", "search_popout.search_format": "Advanced search format",
"search_popout.tips.full_text": "Simple text returns posts you have written, favorited, reposted, or have been mentioned in, as well as matching usernames, display names, and hashtags.", "search_popout.tips.full_text": "Simple text returns posts you have written, favorited, reposted, or have been mentioned in, as well as matching usernames, display names, and hashtags.",
"search_popout.tips.hashtag": "hashtag", "search_popout.tips.hashtag": "hashtag",
@ -929,7 +929,7 @@
"tabs_bar.news": "News", "tabs_bar.news": "News",
"tabs_bar.notifications": "Alerts", "tabs_bar.notifications": "Alerts",
"tabs_bar.post": "Post", "tabs_bar.post": "Post",
"tabs_bar.search": "Search", "tabs_bar.search": "Discover",
"time_remaining.days": "{number, plural, one {# day} other {# days}} left", "time_remaining.days": "{number, plural, one {# day} other {# days}} left",
"time_remaining.hours": "{number, plural, one {# hour} other {# hours}} left", "time_remaining.hours": "{number, plural, one {# hour} other {# hours}} left",
"time_remaining.minutes": "{number, plural, one {# minute} other {# minutes}} left", "time_remaining.minutes": "{number, plural, one {# minute} other {# minutes}} left",

View File

@ -52,7 +52,7 @@ const clearSearchResults = () => ({
const submitSearch = (filter?: SearchFilter) => const submitSearch = (filter?: SearchFilter) =>
(dispatch: AppDispatch, getState: () => RootState) => { (dispatch: AppDispatch, getState: () => RootState) => {
const value = getState().search.value; const value = getState().search.value;
const type = filter || getState().search.filter || 'accounts'; const type = filter || getState().search.filter || 'statuses';
const accountId = getState().search.accountId; const accountId = getState().search.accountId;
// An empty search doesn't return any results // An empty search doesn't return any results

View File

@ -125,7 +125,7 @@ const SidebarNavigation = () => {
<SidebarNavigationLink <SidebarNavigationLink
to='/search' to='/search'
icon={require('@tabler/icons/outline/search.svg')} icon={require('@tabler/icons/outline/search.svg')}
text={<FormattedMessage id='tabs_bar.search' defaultMessage='Search' />} text={<FormattedMessage id='tabs_bar.search' defaultMessage='Discover' />}
/> />
{account && ( {account && (

View File

@ -9,7 +9,7 @@ import { useAppDispatch, useAppSelector } from 'soapbox/hooks';
const messages = defineMessages({ const messages = defineMessages({
search: { id: 'aliases.search', defaultMessage: 'Search your old account' }, search: { id: 'aliases.search', defaultMessage: 'Search your old account' },
searchTitle: { id: 'tabs_bar.search', defaultMessage: 'Search' }, searchTitle: { id: 'tabs_bar.search', defaultMessage: 'Discover' },
}); });
const Search: React.FC = () => { const Search: React.FC = () => {

View File

@ -10,7 +10,7 @@ import SuggestedGroups from './components/discover/suggested-groups';
import TabBar, { TabItems } from './components/tab-bar'; import TabBar, { TabItems } from './components/tab-bar';
const messages = defineMessages({ const messages = defineMessages({
placeholder: { id: 'groups.discover.search.placeholder', defaultMessage: 'Search' }, placeholder: { id: 'groups.discover.search.placeholder', defaultMessage: 'Discover' },
}); });
const Discover: React.FC = () => { const Discover: React.FC = () => {

View File

@ -9,7 +9,7 @@ import { useAppSelector, useAppDispatch } from 'soapbox/hooks';
const messages = defineMessages({ const messages = defineMessages({
search: { id: 'lists.search', defaultMessage: 'Search among people you follow' }, search: { id: 'lists.search', defaultMessage: 'Search among people you follow' },
searchTitle: { id: 'tabs_bar.search', defaultMessage: 'Search' }, searchTitle: { id: 'tabs_bar.search', defaultMessage: 'Discover' },
}); });
const Search = () => { const Search = () => {

View File

@ -6,7 +6,7 @@ import Search from 'soapbox/features/compose/components/search';
import SearchResults from 'soapbox/features/compose/components/search-results'; import SearchResults from 'soapbox/features/compose/components/search-results';
const messages = defineMessages({ const messages = defineMessages({
heading: { id: 'column.search', defaultMessage: 'Search' }, heading: { id: 'column.search', defaultMessage: 'Discover' },
}); });
const SearchPage = () => { const SearchPage = () => {

View File

@ -431,7 +431,7 @@
"column.reblogs": "Reposts", "column.reblogs": "Reposts",
"column.registration": "Sign Up", "column.registration": "Sign Up",
"column.scheduled_statuses": "Scheduled Posts", "column.scheduled_statuses": "Scheduled Posts",
"column.search": "Search", "column.search": "Discover",
"column.settings_store": "Settings store", "column.settings_store": "Settings store",
"column.soapbox_config": "Soapbox config", "column.soapbox_config": "Soapbox config",
"column.test": "Test timeline", "column.test": "Test timeline",
@ -901,7 +901,7 @@
"groups.discover.search.error.title": "An error occurred", "groups.discover.search.error.title": "An error occurred",
"groups.discover.search.no_results.subtitle": "Try searching for another group.", "groups.discover.search.no_results.subtitle": "Try searching for another group.",
"groups.discover.search.no_results.title": "No matches found", "groups.discover.search.no_results.title": "No matches found",
"groups.discover.search.placeholder": "Search", "groups.discover.search.placeholder": "Discover",
"groups.discover.search.recent_searches.blankslate.subtitle": "Search group names, topics or keywords", "groups.discover.search.recent_searches.blankslate.subtitle": "Search group names, topics or keywords",
"groups.discover.search.recent_searches.blankslate.title": "No recent searches", "groups.discover.search.recent_searches.blankslate.title": "No recent searches",
"groups.discover.search.recent_searches.clear_all": "Clear all", "groups.discover.search.recent_searches.clear_all": "Clear all",
@ -1577,7 +1577,7 @@
"tabs_bar.more": "More", "tabs_bar.more": "More",
"tabs_bar.notifications": "Notifications", "tabs_bar.notifications": "Notifications",
"tabs_bar.profile": "Profile", "tabs_bar.profile": "Profile",
"tabs_bar.search": "Search", "tabs_bar.search": "Discover",
"tabs_bar.settings": "Settings", "tabs_bar.settings": "Settings",
"textarea.counter.label": "{count} characters remaining", "textarea.counter.label": "{count} characters remaining",
"theme_editor.colors.accent": "Accent", "theme_editor.colors.accent": "Accent",