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:
parent
8382652a5c
commit
a8f6478cdb
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
class OC_Search_Provider_Bookmarks extends OC_Search_Provider{
|
class OC_Search_Provider_Bookmarks extends OC_Search_Provider{
|
||||||
function search($query) {
|
function search($query) {
|
||||||
|
$l=OC_L10N::get('bookmarks');
|
||||||
$results=array();
|
$results=array();
|
||||||
|
|
||||||
$offset = 0;
|
$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);
|
// 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
|
//$l = new OC_l10n('bookmarks'); //resulttype can't be localized, javascript relies on that type
|
||||||
foreach($bookmarks as $bookmark) {
|
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;
|
return $results;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user