mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-02-18 15:54:28 +01:00
Translate more message in bookmarks ref oc-894
This commit is contained in:
parent
f88a1a1673
commit
acf688685a
@ -36,7 +36,7 @@ function curl_exec_follow(/*resource*/ $ch, /*int*/ &$maxredirect = null) {
|
||||
curl_close($rch);
|
||||
if (!$mr) {
|
||||
if ($maxredirect === null) {
|
||||
trigger_error('Too many redirects. When following redirects, libcurl hit the maximum amount.', E_USER_WARNING);
|
||||
OCP\Util::writeLog('bookmark', 'Too many redirects. When following redirects, libcurl hit the maximum amount on bookmark', OCP\Util::ERROR);
|
||||
} else {
|
||||
$maxredirect = 0;
|
||||
}
|
||||
|
@ -31,12 +31,10 @@ class OC_Search_Provider_Bookmarks extends OC_Search_Provider{
|
||||
$search_words = $query;
|
||||
}
|
||||
|
||||
// OCP\Util::writeLog('bookmarks', 'search ' .$query ,OCP\Util::DEBUG);
|
||||
$bookmarks = OC_Bookmarks_Bookmarks::searchBookmarks($search_words);
|
||||
// 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){
|
||||
$results[]=new OC_Search_Result($bookmark['title'],'', $bookmark['url'],'Bookm.');
|
||||
$results[]=new OC_Search_Result($bookmark['title'],'', $bookmark['url'],$l->t('Bookm.'));
|
||||
}
|
||||
|
||||
return $results;
|
||||
|
@ -62,10 +62,10 @@
|
||||
<div class="bookmark_single" data-id="<%= id %>">
|
||||
<p class="bookmark_actions">
|
||||
<span class="bookmark_edit">
|
||||
<img class="svg" src="<?php echo OCP\image_path("", "actions/rename.svg");?>" title="Edit">
|
||||
<img class="svg" src="<?php echo OCP\image_path("", "actions/rename.svg");?>" title="<?php echo $l->t('Edit');?>">
|
||||
</span>
|
||||
<span class="bookmark_delete">
|
||||
<img class="svg" src="<?php echo OCP\image_path("", "actions/delete.svg");?>" title="Delete">
|
||||
<img class="svg" src="<?php echo OCP\image_path("", "actions/delete.svg");?>" title="<?php echo $l->t('Delete');?>">
|
||||
</span>
|
||||
</p>
|
||||
<p class="bookmark_title">
|
||||
|
Loading…
x
Reference in New Issue
Block a user