diff --git a/daemon.py b/daemon.py index 26c7358a..24f220e2 100644 --- a/daemon.py +++ b/daemon.py @@ -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: diff --git a/translations/en.json b/translations/en.json index 860c5b08..6c9cd952 100644 --- a/translations/en.json +++ b/translations/en.json @@ -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" } diff --git a/translations/fr.json b/translations/fr.json index 223d8334..ed4bfd7f 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -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" } diff --git a/webinterface.py b/webinterface.py index 7d14e32b..23374b6e 100644 --- a/webinterface.py +++ b/webinterface.py @@ -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+='