Translate shared items search

master
Bob Mottram 2019-09-07 11:17:55 +01:00
parent bd0152344c
commit a0bb15264f
3 changed files with 9 additions and 7 deletions

View File

@ -130,5 +130,6 @@
"Emoji Search": "Emoji Search",
"No results": "No results",
"Skills search": "Skills search",
"Shared Items Search": "Shared Items Search"
"Shared Items Search": "Shared Items Search",
"Contact": "Contact"
}

View File

@ -130,5 +130,6 @@
"Emoji Search": "Emoji recherche",
"No results": "Aucun résultat",
"Skills search": "Recherche de compétences",
"Shared Items Search": "Recherche d'articles partagés"
"Shared Items Search": "Recherche d'articles partagés",
"Contact": "Contact"
}

View File

@ -147,13 +147,13 @@ def htmlSearchSharedItems(translate: {}, \
sharedItemsForm+='<a href="'+sharedItem['imageUrl']+'">'
sharedItemsForm+='<img src="'+sharedItem['imageUrl']+'" alt="Item image"></a>'
sharedItemsForm+='<p>'+sharedItem['summary']+'</p>'
sharedItemsForm+='<p><b>Type:</b> '+sharedItem['itemType']+' '
sharedItemsForm+='<b>Category:</b> '+sharedItem['category']+' '
sharedItemsForm+='<b>Location:</b> '+sharedItem['location']+'</p>'
sharedItemsForm+='<p><b>'+translate['Type']+':</b> '+sharedItem['itemType']+' '
sharedItemsForm+='<b>'+translate['Category']+':</b> '+sharedItem['category']+' '
sharedItemsForm+='<b>'+translate['Location']+':</b> '+sharedItem['location']+'</p>'
contactActor=httpPrefix+'://'+domainFull+'/users/'+contactNickname
sharedItemsForm+='<p><a href="'+actor+'?replydm=sharedesc:'+sharedItem['displayName']+'?mention='+contactActor+'"><button class="button">Contact</button></a>'
sharedItemsForm+='<p><a href="'+actor+'?replydm=sharedesc:'+sharedItem['displayName']+'?mention='+contactActor+'"><button class="button">'+translate['Contact']+'</button></a>'
if actor.endswith('/users/'+contactNickname):
sharedItemsForm+=' <a href="'+actor+'?rmshare='+name+'"><button class="button">Remove</button></a>'
sharedItemsForm+=' <a href="'+actor+'?rmshare='+name+'"><button class="button">'+translate['Remove']+'</button></a>'
sharedItemsForm+='</p></div>'
if not resultsExist and currPage>1:
# previous page link, needs to be a POST