X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsearchaction.php;h=cc8966eeaed91800b83f2122e69532709e690a92;hb=14fe22e4307044f2eb08264a7b83f9c2de245dba;hp=0d9f85a8f18a5f623628bfec448b68002ce9390e;hpb=5d09b6b3f0595540c66b703ae085f0af904fe30f;p=quix0rs-gnu-social.git diff --git a/lib/searchaction.php b/lib/searchaction.php index 0d9f85a8f1..cc8966eeae 100644 --- a/lib/searchaction.php +++ b/lib/searchaction.php @@ -62,21 +62,6 @@ class SearchAction extends Action $this->showPage(); } - /** - * Show tabset for this page - * - * Uses the SearchGroupNav widget - * - * @return void - * @see SearchGroupNav - */ - - function showLocalNav() - { - $nav = new SearchGroupNav($this, $this->trimmed('q')); - $nav->show(); - } - function showTop($arr=null) { $error = null; @@ -117,14 +102,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,29 +124,30 @@ 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'); +* [Collecta](http://collecta.com/#q=%s)"), $qe, $qe, $qe, $qe, $qe); + $message .= "\n"; + } + $this->elementStart('div', 'help instructions'); $this->raw(common_markup_to_html($message)); - $this->elementEnd('dd'); $this->elementEnd('div'); } } -