From 0a48919ac6b4702b4147cce80b8c46a10de4ae74 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 7 Sep 2019 12:19:44 +0100 Subject: [PATCH] Scope translations --- translations/de.json | 3 ++- translations/en.json | 3 ++- translations/fr.json | 3 ++- webinterface.py | 12 ++++++------ 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/translations/de.json b/translations/de.json index 54c08497..6ca06de7 100644 --- a/translations/de.json +++ b/translations/de.json @@ -131,5 +131,6 @@ "No results": "Keine Ergebnisse", "Skills search": "Fähigkeiten suchen", "Shared Items Search": "Suche nach freigegebenen Elementen", - "Contact": "Kontakt" + "Contact": "Kontakt", + "Shared Item": "Freigegebenes" } diff --git a/translations/en.json b/translations/en.json index f86afce2..e7260bff 100644 --- a/translations/en.json +++ b/translations/en.json @@ -131,5 +131,6 @@ "No results": "No results", "Skills search": "Skills search", "Shared Items Search": "Shared Items Search", - "Contact": "Contact" + "Contact": "Contact", + "Shared Item": "Shared Item" } diff --git a/translations/fr.json b/translations/fr.json index e63ff814..f5ab42f5 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -131,5 +131,6 @@ "No results": "Aucun résultat", "Skills search": "Recherche de compétences", "Shared Items Search": "Recherche d'articles partagés", - "Contact": "Contact" + "Contact": "Contact", + "Shared Item": "Article" } diff --git a/webinterface.py b/webinterface.py index 3ff0933d..2f8d78fd 100644 --- a/webinterface.py +++ b/webinterface.py @@ -730,30 +730,30 @@ def htmlNewPost(translate: {},baseDir: str, \ pathBase=path.replace('/newreport','').replace('/newpost','').replace('/newshare','').replace('/newunlisted','').replace('/newfollowers','').replace('/newdm','') scopeIcon='scope_public.png' - scopeDescription='Public' + scopeDescription=translate['Public'] placeholderSubject=translate['Subject or Content Warning (optional)']+'...' placeholderMessage=translate['Write something']+'...' extraFields='' endpoint='newpost' if path.endswith('/newunlisted'): scopeIcon='scope_unlisted.png' - scopeDescription='Unlisted' + scopeDescription=translate['Unlisted'] endpoint='newunlisted' if path.endswith('/newfollowers'): scopeIcon='scope_followers.png' - scopeDescription='Followers' + scopeDescription=translate['Followers'] endpoint='newfollowers' if path.endswith('/newdm'): scopeIcon='scope_dm.png' - scopeDescription='DM' + scopeDescription=translate['DM'] endpoint='newdm' if path.endswith('/newreport'): scopeIcon='scope_report.png' - scopeDescription='Report' + scopeDescription=translate['Report'] endpoint='newreport' if path.endswith('/newshare'): scopeIcon='scope_share.png' - scopeDescription='Shared Item' + scopeDescription=translate['Shared Item'] placeholderSubject=translate['Name of the shared item']+'...' placeholderMessage=translate['Description of the item being shared']+'...' endpoint='newshare'