diff --git a/img/icons/hacker/scope_question.png b/img/icons/hacker/scope_question.png new file mode 100644 index 00000000..9750db48 Binary files /dev/null and b/img/icons/hacker/scope_question.png differ diff --git a/img/icons/light/scope_question.png b/img/icons/light/scope_question.png new file mode 100644 index 00000000..f4b5f78f Binary files /dev/null and b/img/icons/light/scope_question.png differ diff --git a/img/icons/purple/scope_question.png b/img/icons/purple/scope_question.png new file mode 100644 index 00000000..e2ea19e2 Binary files /dev/null and b/img/icons/purple/scope_question.png differ diff --git a/img/icons/scope_question.png b/img/icons/scope_question.png new file mode 100644 index 00000000..f4b5f78f Binary files /dev/null and b/img/icons/scope_question.png differ diff --git a/translations/ar.json b/translations/ar.json index 3bebcc77..c8643c31 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/ca.json b/translations/ca.json index 9dc9cc91..5a6307d8 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/cy.json b/translations/cy.json index 0b819247..e081cb6d 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/de.json b/translations/de.json index 15044e44..eae58694 100644 --- a/translations/de.json +++ b/translations/de.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/en.json b/translations/en.json index c8841ba7..8fe64a6a 100644 --- a/translations/en.json +++ b/translations/en.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/es.json b/translations/es.json index 070cdd8c..40dc02f9 100644 --- a/translations/es.json +++ b/translations/es.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/fr.json b/translations/fr.json index 04a2244e..130f00ea 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/ga.json b/translations/ga.json index f4a67491..8c7c8f04 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/hi.json b/translations/hi.json index a67d4f8a..da30a65a 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/it.json b/translations/it.json index a9f72f8f..d0f81b8e 100644 --- a/translations/it.json +++ b/translations/it.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/ja.json b/translations/ja.json index 715d988e..84b0b1df 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/oc.json b/translations/oc.json index 30b23038..2c2b2abe 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -182,5 +182,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/pt.json b/translations/pt.json index 17f308cb..bc3ddcdd 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/ru.json b/translations/ru.json index c2c9dfb9..c88257f4 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/translations/zh.json b/translations/zh.json index d73bafad..bfc08250 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -186,5 +186,9 @@ "Light": "Light", "Purple": "Purple", "Hacker": "Hacker", - "HighVis": "HighVis" + "HighVis": "HighVis", + "Question": "Question", + "Enter your question": "Enter your question", + "Enter the choices for your question below.": "Enter the choices for your question below.", + "Ask a question": "Ask a question" } diff --git a/webinterface.py b/webinterface.py index cffd18b8..acdbde91 100644 --- a/webinterface.py +++ b/webinterface.py @@ -934,7 +934,10 @@ def htmlNewPost(translate: {},baseDir: str, \ newPostText+='
'+translate['This message only goes to moderators, even if it mentions other fediverse addresses.']+'
'+translate['Also see']+' '+translate['Terms of Service']+'
' else: newPostText=''+translate['Enter the details for your shared item below.']+'
' - + + if not path.endswith('/newquestion'): + newPostText=''+translate['Enter the choices for your question below.']+'
' + if os.path.isfile(baseDir+'/accounts/newpost.txt'): with open(baseDir+'/accounts/newpost.txt', 'r') as file: newPostText = ''+file.read()+'
' @@ -971,6 +974,16 @@ def htmlNewPost(translate: {},baseDir: str, \ scopeIcon='scope_report.png' scopeDescription=translate['Report'] endpoint='newreport' + if path.endswith('/newquestion'): + scopeIcon='scope_question.png' + scopeDescription=translate['Question'] + placeholderMessage=translate['Enter your question']+'...' + endpoint='newquestion' + extraFields='