X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsearchaction.php;h=73c287eef3b62e5b8d24cd77e666468f9a4d55db;hb=1d29ba83150bdd7a23e497ca9a743ac2b6158b6f;hp=0d9f85a8f18a5f623628bfec448b68002ce9390e;hpb=a08c76a4342cfb4b3d772f6880ba0b8f3153b246;p=quix0rs-gnu-social.git diff --git a/lib/searchaction.php b/lib/searchaction.php index 0d9f85a8f1..73c287eef3 100644 --- a/lib/searchaction.php +++ b/lib/searchaction.php @@ -70,8 +70,7 @@ class SearchAction extends Action * @return void * @see SearchGroupNav */ - - function showLocalNav() + function showObjectNav() { $nav = new SearchGroupNav($this, $this->trimmed('q')); $nav->show(); @@ -117,14 +116,18 @@ class SearchAction extends Action 'class' => 'form_settings', 'action' => common_local_url($this->trimmed('action')))); $this->elementStart('fieldset'); + // TRANS: Fieldset legend for the search form. $this->element('legend', null, _('Search site')); $this->elementStart('ul', 'form_data'); $this->elementStart('li'); if (!common_config('site', 'fancy')) { $this->hidden('action', $this->trimmed('action')); } - $this->input('q', 'Keyword(s)', $q); - $this->submit('search', 'Search'); + // TRANS: Used as a field label for the field where one or more keywords + // TRANS: for searching can be entered. + $this->input('q', _('Keyword(s)'), $q); + // TRANS: Button text for searching site. + $this->submit('search', _m('BUTTON','Search')); $this->elementEnd('li'); $this->elementEnd('ul'); $this->elementEnd('fieldset'); @@ -135,16 +138,25 @@ class SearchAction extends Action } function searchSuggestions($q) { - $qe = urlencode($q); - $message = sprintf(_(<<elementStart('dl', array('id' => 'help_search', 'class' => 'help')); - $this->element('dt', null, _('Search help')); - $this->elementStart('dd', 'instructions'); + } + $this->elementStart('div', 'help instructions'); $this->raw(common_markup_to_html($message)); - $this->elementEnd('dd'); + $this->elementEnd('div'); + $this->elementEnd('div'); } } -