Get text wrappers around strings so they can be in the native language of the site and use fancy urls if appropriate

darcs-hash:20080721090110-edabd-aea47e1cbcc2527fdb0274cb29638d2abc108a35.gz
This commit is contained in:
mikec 2008-07-21 05:01:10 -04:00
parent ed37d83fa3
commit fbf2a58ac3

View File

@ -30,9 +30,9 @@ class OpensearchAction extends Action {
$short_name = '';
if ($type == 'people') {
$type = 'peoplesearch';
$short_name = 'People Search';
$short_name = _('People Search');
} else {
$short_name = 'Notice Search';
$short_name = _('Notice Search');
$type = 'noticesearch';
}
@ -45,7 +45,7 @@ class OpensearchAction extends Action {
common_element('ShortName', NULL, $short_name);
common_element('Contact', NULL, common_config('site', 'email'));
common_element('Url', array('type' => 'text/html', 'method' => 'get',
'template' => common_path('index.php?action='.$type.'&q={searchTerms}')));
'template' => str_replace('---', '{searchTerms}', common_local_url($type, array('q' => '---')))));
common_element('Image', array('height' => 16, 'width' => 16, 'type' => 'image/vnd.microsoft.icon'), common_path('favicon.ico'));
common_element('Image', array('height' => 50, 'width' => 50, 'type' => 'image/png'), theme_path('logo.png'));
common_element('AdultContent', NULL, 'false');