UX: update placeholder for full page search

This commit is contained in:
Arpit Jalan 2018-04-18 13:50:34 +05:30
parent c61ce66411
commit dcf33e74d6
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import { applySearchAutocomplete } from "discourse/lib/search";
export default TextField.extend({
@computed('searchService.searchContextEnabled')
placeholder(searchContextEnabled) {
return searchContextEnabled ? "" : I18n.t('search.title');
return searchContextEnabled ? "" : I18n.t('search.full_page_title');
},
@on("didInsertElement")

View File

@ -1469,6 +1469,7 @@ en:
one: "<span>1 result for</span><span class='term'>{{term}}</span>"
other: "<span>{{count}}{{plus}} results for</span><span class='term'>{{term}}</span>"
title: "search topics, posts, users, or categories"
full_page_title: "search topics or posts"
no_results: "No results found."
no_more_results: "No more results found."
searching: "Searching ..."