From c9e92d95d5dcfd28eb6a7c7420b0c90ee47ab6d5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 7 Sep 2019 12:32:07 +0100 Subject: [PATCH] Extra translations --- translations/de.json | 6 +++++- translations/en.json | 6 +++++- translations/fr.json | 6 +++++- webinterface.py | 20 ++++++++++---------- 4 files changed, 25 insertions(+), 13 deletions(-) diff --git a/translations/de.json b/translations/de.json index 6ca06de7d..b455e442c 100644 --- a/translations/de.json +++ b/translations/de.json @@ -132,5 +132,9 @@ "Skills search": "Fähigkeiten suchen", "Shared Items Search": "Suche nach freigegebenen Elementen", "Contact": "Kontakt", - "Shared Item": "Freigegebenes" + "Shared Item": "Freigegebenes", + "Mod": "Mod", + "Approve follow requests": "Follow-Anfragen genehmigen", + "Page down": "Bild runter", + "Page up": "Bild auf" } diff --git a/translations/en.json b/translations/en.json index e7260bff0..832bebe81 100644 --- a/translations/en.json +++ b/translations/en.json @@ -132,5 +132,9 @@ "Skills search": "Skills search", "Shared Items Search": "Shared Items Search", "Contact": "Contact", - "Shared Item": "Shared Item" + "Shared Item": "Shared Item", + "Mod": "Mod", + "Approve follow requests": "Approve follow requests", + "Page down": "Page down", + "Page up": "Page up" } diff --git a/translations/fr.json b/translations/fr.json index f5ab42f56..a6509e8fb 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -132,5 +132,9 @@ "Skills search": "Recherche de compétences", "Shared Items Search": "Recherche d'articles partagés", "Contact": "Contact", - "Shared Item": "Article" + "Shared Item": "Article", + "Mod": "Mod", + "Approve follow requests": "Approuver les demandes de suivi", + "Page down": "Bas de page", + "Page up": "Haut de page" } diff --git a/webinterface.py b/webinterface.py index 2f8d78fdf..726295861 100644 --- a/webinterface.py +++ b/webinterface.py @@ -162,7 +162,7 @@ def htmlSearchSharedItems(translate: {}, \ ' ' \ '
' \ '
' \ - ' Page up' \ + ' '+translate['Page up']+'' \ '
' \ '' resultsExist=True @@ -176,7 +176,7 @@ def htmlSearchSharedItems(translate: {}, \ ' ' \ '
' \ '
' \ - ' Page down' \ + ' '+translate['Page down']+'' \ '
' \ '' break @@ -253,7 +253,7 @@ def htmlHashtagSearch(translate: {}, \ hashtagSearchForm+='

#'+hashtag+'

' if startIndex!=len(lines)-1: # previous page link - hashtagSearchForm+='
Page up
' + hashtagSearchForm+='
'+translate['Page up']+'
' index=startIndex while index>=endIndex: postId=lines[index].strip('\n') @@ -285,7 +285,7 @@ def htmlHashtagSearch(translate: {}, \ if endIndex>0: # next page link - hashtagSearchForm+='
Page down
' + hashtagSearchForm+='
'+translate['Page down']+'
' hashtagSearchForm+=htmlFooter() return hashtagSearchForm @@ -944,7 +944,7 @@ def htmlProfileFollowing(translate: {},baseDir: str,httpPrefix: str, \ if authorized and pageNumber>1: # page up arrow profileStr+= \ - '
Page up
' + '
'+translate['Page up']+'
' for item in followingJson['orderedItems']: profileStr+= \ @@ -957,7 +957,7 @@ def htmlProfileFollowing(translate: {},baseDir: str,httpPrefix: str, \ if len(followingJson['orderedItems'])>=maxItemsPerPage: # page down arrow profileStr+= \ - '
Page down
' + '
'+translate['Page down']+'
' return profileStr def htmlProfileRoles(translate: {},nickname: str,domain: str,rolesJson: {}) -> str: @@ -1823,12 +1823,12 @@ def htmlTimeline(translate: {},pageNumber: int, \ for line in f: if len(line)>0: # show follow approvals icon - followApprovals='Approve follow requests' + followApprovals=''+translate['Approve follow requests']+'' break moderationButtonStr='' if moderator: - moderationButtonStr='' + moderationButtonStr='' tlStr=htmlHeader(profileStyle) #if (boxName=='inbox' or boxName=='dm') and pageNumber==1: @@ -1877,7 +1877,7 @@ def htmlTimeline(translate: {},pageNumber: int, \ # page up arrow if pageNumber>1: - tlStr+='
Page up
' + tlStr+='
'+translate['Page up']+'
' # show the posts itemCtr=0 @@ -1897,7 +1897,7 @@ def htmlTimeline(translate: {},pageNumber: int, \ # page down arrow if itemCtr>=itemsPerPage: - tlStr+='
Page down
' + tlStr+='
'+translate['Page down']+'
' tlStr+=htmlFooter() return tlStr