class NoticesearchAction extends SearchAction {
function get_instructions() {
- return _t('Search for notices on %%site.name%% by their contents. ' .
+ return _('Search for notices on %%site.name%% by their contents. ' .
'Separate search terms by spaces; they must be 3 characters or more.');
}
function get_title() {
- return _t('Text search');
+ return _('Text search');
}
function show_results($q, $page) {
}
common_element_end('ul');
} else {
- common_element('p', 'error', _t('No results'));
+ common_element('p', 'error', _('No results'));
}
common_pagination($page > 1, $cnt > NOTICES_PER_PAGE,
'href' => common_local_url('noticesearchrss',
array('q' => $q)),
'type' => 'application/rss+xml',
- 'title' => _t('Search Stream Feed')));
+ 'title' => _('Search Stream Feed')));
}
}
common_text(' (');
common_element('a', array('class' => 'inreplyto',
'href' => $replyurl),
- _t('in reply to...'));
+ _('in reply to...'));
common_text(')');
}
common_element_start('a',
array('href' => common_local_url('newnotice',
array('replyto' => $profile->nickname)),
'onclick' => 'doreply("'.$profile->nickname.'"); return false',
- 'title' => _t('reply'),
+ 'title' => _('reply'),
'class' => 'replybutton'));
common_raw('→');
common_element_end('a');
global $config;
$q = $this->trimmed('q');
$c = array('url' => common_local_url('noticesearchrss', array('q' => $q)),
- 'title' => $config['site']['name'] . _t(' Search Stream for "' . $q . '"'),
+ 'title' => $config['site']['name'] . sprintf(_(' Search Stream for "%s"'), $q),
'link' => common_local_url('noticesearch', array('q' => $q)),
- 'description' => _t('All updates matching search term "') . $q . '"');
+ 'description' => sprintf(_('All updates matching search term "%s"'), $q));
return $c;
}
class PeoplesearchAction extends SearchAction {
function get_instructions() {
- return _t('Search for people on %%site.name%% by their name, location, or interests. ' .
+ return _('Search for people on %%site.name%% by their name, location, or interests. ' .
'Separate the terms by spaces; they must be 3 characters or more.');
}
function get_title() {
- return _t('People search');
+ return _('People search');
}
function show_results($q, $page) {
}
common_element_end('ul');
} else {
- common_element('p', 'error', _t('No results'));
+ common_element('p', 'error', _('No results'));
}
common_pagination($page > 1, $cnt > PROFILES_PER_PAGE,
common_element_start('ul', array('id' => 'nav_views'));
foreach ($menu as $menuaction => $menudesc) {
common_menu_item(common_local_url($menuaction),
- _t($menudesc[0]),
- _t($menudesc[1]),
+ _($menudesc[0]),
+ _($menudesc[1]),
$action == $menuaction);
}
common_element_end('ul');