Scope translations

master
Bob Mottram 2019-09-07 12:19:44 +01:00
parent 4e9f6b93b9
commit 0a48919ac6
4 changed files with 12 additions and 9 deletions

View File

@ -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"
}

View File

@ -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"
}

View File

@ -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"
}

View File

@ -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'