From a8f6478cdb51e01aabf7bf034820124f635bcbd7 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Mon, 10 Sep 2012 21:32:46 +0000 Subject: [PATCH] Translate App name in search result. ref #oc-39 --- lib/search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/search.php b/lib/search.php index 646a02d0..28227119 100644 --- a/lib/search.php +++ b/lib/search.php @@ -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;