1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-01-19 15:52:10 +01:00

Translate App name in search result. ref #oc-39

This commit is contained in:
Brice Maron 2012-09-10 21:32:46 +00:00
parent 8382652a5c
commit a8f6478cdb

View File

@ -22,6 +22,7 @@
class OC_Search_Provider_Bookmarks extends OC_Search_Provider{
function search($query) {
$l=OC_L10N::get('bookmarks');
$results=array();
$offset = 0;
@ -39,7 +40,7 @@ class OC_Search_Provider_Bookmarks extends OC_Search_Provider{
// OCP\Util::writeLog('bookmarks', 'found ' .count($bookmarks) ,OCP\Util::DEBUG);
//$l = new OC_l10n('bookmarks'); //resulttype can't be localized, javascript relies on that type
foreach($bookmarks as $bookmark) {
$results[]=new OC_Search_Result($bookmark['title'],'', $bookmark['url'],'Bookm.');
$results[]=new OC_Search_Result($bookmark['title'],'', $bookmark['url'],(string) $l->t('Bookm.'));
}
return $results;