forked from indymedia/epicyon
Translate skills search
parent
c1388f7fb9
commit
0076870cf7
|
@ -2801,7 +2801,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
# skill search
|
||||
searchStr=searchStr.replace('*','').strip()
|
||||
skillStr= \
|
||||
htmlSkillsSearch(self.server.baseDir,searchStr, \
|
||||
htmlSkillsSearch(self.server.translate, \
|
||||
self.server.baseDir,searchStr, \
|
||||
self.server.instanceOnlySkillsSearch, \
|
||||
64)
|
||||
if skillStr:
|
||||
|
|
|
@ -128,5 +128,6 @@
|
|||
"Skill": "Skill",
|
||||
"Copy the text then paste it into your post": "Copy the text then paste it into your post",
|
||||
"Emoji Search": "Emoji Search",
|
||||
"No results": "No results"
|
||||
"No results": "No results",
|
||||
"Skills search": "Skills search"
|
||||
}
|
||||
|
|
|
@ -128,5 +128,6 @@
|
|||
"Skill": "Compétence",
|
||||
"Copy the text then paste it into your post": "Copiez le texte puis collez-le dans votre message",
|
||||
"Emoji Search": "Emoji recherche",
|
||||
"No results": "Aucun résultat"
|
||||
"No results": "Aucun résultat",
|
||||
"Skills search": "Recherche de compétences"
|
||||
}
|
||||
|
|
|
@ -287,7 +287,9 @@ def htmlHashtagSearch(translate: {}, \
|
|||
hashtagSearchForm+=htmlFooter()
|
||||
return hashtagSearchForm
|
||||
|
||||
def htmlSkillsSearch(baseDir: str,skillsearch: str,instanceOnly: bool,postsPerPage: int) -> str:
|
||||
def htmlSkillsSearch(translate: {},baseDir: str, \
|
||||
skillsearch: str,instanceOnly: bool, \
|
||||
postsPerPage: int) -> str:
|
||||
"""Show a page containing search results for a skill
|
||||
"""
|
||||
if skillsearch.startswith('*'):
|
||||
|
@ -362,10 +364,10 @@ def htmlSkillsSearch(baseDir: str,skillsearch: str,instanceOnly: bool,postsPerPa
|
|||
skillSearchCSS = cssFile.read()
|
||||
|
||||
skillSearchForm=htmlHeader(skillSearchCSS)
|
||||
skillSearchForm+='<center><h1>Skills search: '+skillsearch+'</h1></center>'
|
||||
skillSearchForm+='<center><h1>'+translate['Skills search']+': '+skillsearch+'</h1></center>'
|
||||
|
||||
if len(results)==0:
|
||||
skillSearchForm+='<center><h5>No matches</h5></center>'
|
||||
skillSearchForm+='<center><h5>'+translate['No results']+'</h5></center>'
|
||||
else:
|
||||
skillSearchForm+='<center>'
|
||||
ctr=0
|
||||
|
|
Loading…
Reference in New Issue