gettext strings and pass the query string between tabs http://laconi.ca/PITS/00231
darcs-hash:20080720105659-533db-35a71fab668a7ea692f7b51557b4f84addb796bb.gz
This commit is contained in:
parent
3c56b10036
commit
97bc06d2ee
|
@ -84,9 +84,9 @@ class Action { // lawsuit
|
||||||
$action = $this->trimmed('action');
|
$action = $this->trimmed('action');
|
||||||
common_element_start('ul', array('id' => 'nav_views'));
|
common_element_start('ul', array('id' => 'nav_views'));
|
||||||
foreach ($menu as $menuaction => $menudesc) {
|
foreach ($menu as $menuaction => $menudesc) {
|
||||||
common_menu_item(common_local_url($menuaction),
|
common_menu_item(common_local_url($menuaction, isset($menudesc[2]) ? $menudesc[2] : NULL),
|
||||||
_($menudesc[0]),
|
$menudesc[0],
|
||||||
_($menudesc[1]),
|
$menudesc[1],
|
||||||
$action == $menuaction);
|
$action == $menuaction);
|
||||||
}
|
}
|
||||||
common_element_end('ul');
|
common_element_end('ul');
|
||||||
|
|
|
@ -92,14 +92,19 @@ class SearchAction extends Action {
|
||||||
}
|
}
|
||||||
|
|
||||||
function search_menu() {
|
function search_menu() {
|
||||||
# action => array('prompt', 'title')
|
# action => array('prompt', 'title', $args)
|
||||||
static $menu =
|
$action = $this->trimmed('action');
|
||||||
array('peoplesearch' =>
|
$menu =
|
||||||
array('People',
|
array('peoplesearch' =>
|
||||||
'Find people on this site'),
|
array(
|
||||||
'noticesearch' =>
|
_('People'),
|
||||||
array('Text',
|
_('Find people on this site'),
|
||||||
'Find content of notices'));
|
($action != 'peoplesearch' && $this->trimmed('q')) ? array('q' => $this->trimmed('q')) : NULL),
|
||||||
|
'noticesearch' =>
|
||||||
|
array( _('Text'),
|
||||||
|
_('Find content of notices'),
|
||||||
|
($action != 'noticesearch' && $this->trimmed('q')) ? array('q' => $this->trimmed('q')) : NULL)
|
||||||
|
);
|
||||||
$this->nav_menu($menu);
|
$this->nav_menu($menu);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user