diff --git a/translations/ar.json b/translations/ar.json index 4b1f9f558..329b09dc0 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -620,5 +620,6 @@ "Media creator": "صانع الوسائط", "Import Blocks": "استيراد مثيلات محظورة", "Export Blocks": "تصدير المثيلات المحظورة", - "Transcript": "نص" + "Transcript": "نص", + "Show vote posts": "إظهار مشاركات التصويت" } diff --git a/translations/bn.json b/translations/bn.json index dba9a2d7c..9e38322bb 100644 --- a/translations/bn.json +++ b/translations/bn.json @@ -620,5 +620,6 @@ "Media creator": "মিডিয়া নির্মাতা", "Import Blocks": "অবরুদ্ধ দৃষ্টান্ত আমদানি করুন", "Export Blocks": "অবরুদ্ধ দৃষ্টান্ত রপ্তানি করুন", - "Transcript": "প্রতিলিপি" + "Transcript": "প্রতিলিপি", + "Show vote posts": "ভোট পোস্ট দেখান" } diff --git a/translations/ca.json b/translations/ca.json index adad670d0..3ffabe415 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -620,5 +620,6 @@ "Media creator": "Creador de mitjans", "Import Blocks": "Importa instàncies bloquejades", "Export Blocks": "Exporta instàncies bloquejades", - "Transcript": "Transcripció" + "Transcript": "Transcripció", + "Show vote posts": "Mostra les publicacions de vot" } diff --git a/translations/cy.json b/translations/cy.json index f0ebf1aba..8cbffe7b3 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -620,5 +620,6 @@ "Media creator": "Crëwr cyfryngau", "Import Blocks": "Mewnforio Achosion wedi'u Rhwystro", "Export Blocks": "Allforio Achosion wedi'u Rhwystro", - "Transcript": "Trawsgrifiad" + "Transcript": "Trawsgrifiad", + "Show vote posts": "Dangos postiadau pleidlais" } diff --git a/translations/de.json b/translations/de.json index a8d4b7095..ae5ccd6b0 100644 --- a/translations/de.json +++ b/translations/de.json @@ -620,5 +620,6 @@ "Media creator": "Mediengestalter", "Import Blocks": "Blockierte Instanzen importieren", "Export Blocks": "Blockierte Instanzen exportieren", - "Transcript": "Abschrift" + "Transcript": "Abschrift", + "Show vote posts": "Abstimmungsbeiträge anzeigen" } diff --git a/translations/el.json b/translations/el.json index 1e37b687d..a74a985a9 100644 --- a/translations/el.json +++ b/translations/el.json @@ -620,5 +620,6 @@ "Media creator": "Δημιουργός πολυμέσων", "Import Blocks": "Εισαγωγή αποκλεισμένων παρουσιών", "Export Blocks": "Εξαγωγή αποκλεισμένων παρουσιών", - "Transcript": "Αντίγραφο" + "Transcript": "Αντίγραφο", + "Show vote posts": "Εμφάνιση ψηφοφοριακών αναρτήσεων" } diff --git a/translations/en.json b/translations/en.json index acbc0493d..579ebd5c3 100644 --- a/translations/en.json +++ b/translations/en.json @@ -620,5 +620,6 @@ "Media creator": "Media creator", "Import Blocks": "Import Blocks", "Export Blocks": "Export Blocks", - "Transcript": "Transcript" + "Transcript": "Transcript", + "Show vote posts": "Show vote posts" } diff --git a/translations/es.json b/translations/es.json index eeb40a823..c82779fb4 100644 --- a/translations/es.json +++ b/translations/es.json @@ -620,5 +620,6 @@ "Media creator": "Creadora de medios", "Import Blocks": "Importar instancias bloqueadas", "Export Blocks": "Exportar instancias bloqueadas", - "Transcript": "Transcripción" + "Transcript": "Transcripción", + "Show vote posts": "Mostrar publicaciones de votos" } diff --git a/translations/fa.json b/translations/fa.json index cf5cd1589..b4061cbd7 100644 --- a/translations/fa.json +++ b/translations/fa.json @@ -620,5 +620,6 @@ "Media creator": "سازنده رسانه", "Import Blocks": "وارد کردن موارد مسدود شده", "Export Blocks": "نمونه های مسدود شده را صادر کنید", - "Transcript": "رونوشت" + "Transcript": "رونوشت", + "Show vote posts": "نمایش پست های رای" } diff --git a/translations/fr.json b/translations/fr.json index a5b959935..6f8b1ec0b 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -620,5 +620,6 @@ "Media creator": "Créateur de médias", "Import Blocks": "Importer des instances bloquées", "Export Blocks": "Exporter les instances bloquées", - "Transcript": "Transcription" + "Transcript": "Transcription", + "Show vote posts": "Afficher les messages de vote" } diff --git a/translations/ga.json b/translations/ga.json index 47f02a2e3..3c47db41c 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -620,5 +620,6 @@ "Media creator": "Cruthaitheoir meáin", "Import Blocks": "Iompórtáil Cásanna Blocáilte", "Export Blocks": "Easpórtáil Cásanna Blocáilte", - "Transcript": "Athscríbhinn" + "Transcript": "Athscríbhinn", + "Show vote posts": "Taispeáin postálacha vótaí" } diff --git a/translations/hi.json b/translations/hi.json index 9d26ca137..a0f1e2aa8 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -620,5 +620,6 @@ "Media creator": "मीडिया निर्माता", "Import Blocks": "अवरोधित उदाहरण आयात करें", "Export Blocks": "निर्यात अवरुद्ध उदाहरण", - "Transcript": "प्रतिलिपि" + "Transcript": "प्रतिलिपि", + "Show vote posts": "वोट पोस्ट दिखाएं" } diff --git a/translations/it.json b/translations/it.json index da782b8d9..369728726 100644 --- a/translations/it.json +++ b/translations/it.json @@ -620,5 +620,6 @@ "Media creator": "Creatore multimediale", "Import Blocks": "Importa istanze bloccate", "Export Blocks": "Esporta istanze bloccate", - "Transcript": "Trascrizione" + "Transcript": "Trascrizione", + "Show vote posts": "Mostra messaggi di voto" } diff --git a/translations/ja.json b/translations/ja.json index 7f9c85d30..eceee9296 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -620,5 +620,6 @@ "Media creator": "メディアクリエーター", "Import Blocks": "ブロックされたインスタンスのインポート", "Export Blocks": "ブロックされたインスタンスのエクスポート", - "Transcript": "成績証明書" + "Transcript": "成績証明書", + "Show vote posts": "投票投稿を表示" } diff --git a/translations/ko.json b/translations/ko.json index 7eb6aa8f8..4566e4b12 100644 --- a/translations/ko.json +++ b/translations/ko.json @@ -620,5 +620,6 @@ "Media creator": "미디어 크리에이터", "Import Blocks": "차단된 인스턴스 가져오기", "Export Blocks": "차단된 인스턴스 내보내기", - "Transcript": "성적 증명서" + "Transcript": "성적 증명서", + "Show vote posts": "투표 게시물 표시" } diff --git a/translations/ku.json b/translations/ku.json index 12d4d23c0..93641927a 100644 --- a/translations/ku.json +++ b/translations/ku.json @@ -620,5 +620,6 @@ "Media creator": "Afirînerê medyayê", "Import Blocks": "Mînakên Astengkirî Import", "Export Blocks": "Mînakên Astengkirî Export", - "Transcript": "Transcript" + "Transcript": "Transcript", + "Show vote posts": "Mesajên dengdanê nîşan bide" } diff --git a/translations/nl.json b/translations/nl.json index 72ee440c4..3c55d1750 100644 --- a/translations/nl.json +++ b/translations/nl.json @@ -620,5 +620,6 @@ "Media creator": "Media-maker", "Import Blocks": "Importeer geblokkeerde instanties", "Export Blocks": "Exporteer geblokkeerde instanties", - "Transcript": "Vertaling" + "Transcript": "Vertaling", + "Show vote posts": "Toon stemberichten" } diff --git a/translations/oc.json b/translations/oc.json index 5deb1f2d8..33e34ce08 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -616,5 +616,6 @@ "Media creator": "Media creator", "Import Blocks": "Import Blocks", "Export Blocks": "Export Blocks", - "Transcript": "Transcript" + "Transcript": "Transcript", + "Show vote posts": "Show vote posts" } diff --git a/translations/pl.json b/translations/pl.json index 6058f9769..5febf1fbd 100644 --- a/translations/pl.json +++ b/translations/pl.json @@ -620,5 +620,6 @@ "Media creator": "Kreator mediów", "Import Blocks": "Importuj zablokowane instancje", "Export Blocks": "Eksportuj zablokowane instancje", - "Transcript": "Transkrypcja" + "Transcript": "Transkrypcja", + "Show vote posts": "Pokaż posty z głosowaniem" } diff --git a/translations/pt.json b/translations/pt.json index 5cbcc42cf..6baf46567 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -620,5 +620,6 @@ "Media creator": "Criador de mídia", "Import Blocks": "Importar instâncias bloqueadas", "Export Blocks": "Exportar instâncias bloqueadas", - "Transcript": "Transcrição" + "Transcript": "Transcrição", + "Show vote posts": "Mostrar postagens de votação" } diff --git a/translations/ru.json b/translations/ru.json index 8d03c1307..240e1b7ed 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -620,5 +620,6 @@ "Media creator": "Создатель медиа", "Import Blocks": "Импорт заблокированных экземпляров", "Export Blocks": "Экспорт заблокированных экземпляров", - "Transcript": "Стенограмма" + "Transcript": "Стенограмма", + "Show vote posts": "Показать сообщения для голосования" } diff --git a/translations/sw.json b/translations/sw.json index 051b70c76..ae55e4ca8 100644 --- a/translations/sw.json +++ b/translations/sw.json @@ -620,5 +620,6 @@ "Media creator": "Muundaji wa media", "Import Blocks": "Ingiza Matukio Yaliyozuiwa", "Export Blocks": "Hamisha Matukio Yaliyozuiwa", - "Transcript": "Nakala" + "Transcript": "Nakala", + "Show vote posts": "Onyesha machapisho ya kura" } diff --git a/translations/tr.json b/translations/tr.json index 552537fdc..1a4cf0b84 100644 --- a/translations/tr.json +++ b/translations/tr.json @@ -620,5 +620,6 @@ "Media creator": "Medya yaratıcısı", "Import Blocks": "Engellenen Örnekleri İçe Aktar", "Export Blocks": "Engellenen Örnekleri Dışa Aktar", - "Transcript": "Deşifre metni" + "Transcript": "Deşifre metni", + "Show vote posts": "Oy gönderilerini göster" } diff --git a/translations/uk.json b/translations/uk.json index 334b5fd20..0bf7a99ce 100644 --- a/translations/uk.json +++ b/translations/uk.json @@ -620,5 +620,6 @@ "Media creator": "Творець медіа", "Import Blocks": "Імпортувати заблоковані екземпляри", "Export Blocks": "Експортувати заблоковані екземпляри", - "Transcript": "Стенограма" + "Transcript": "Стенограма", + "Show vote posts": "Показати повідомлення про голосування" } diff --git a/translations/yi.json b/translations/yi.json index aa8bb48d2..01a218570 100644 --- a/translations/yi.json +++ b/translations/yi.json @@ -620,5 +620,6 @@ "Media creator": "מעדיע באשעפער", "Import Blocks": "ימפּאָרט בלאַקט ינסטאַנסיז", "Export Blocks": "עקספּאָרט בלאַקט ינסטאַנסיז", - "Transcript": "טראַנסקריפּט" + "Transcript": "טראַנסקריפּט", + "Show vote posts": "ווייַזן שטימען אַרטיקלען" } diff --git a/translations/zh.json b/translations/zh.json index 23c1d782c..ca8325c6c 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -620,5 +620,6 @@ "Media creator": "媒体创作者", "Import Blocks": "导入被阻止的实例", "Export Blocks": "导出被阻止的实例", - "Transcript": "成绩单" + "Transcript": "成绩单", + "Show vote posts": "显示投票帖子" } diff --git a/webapp_profile.py b/webapp_profile.py index 2c519b8a0..b34ace5d0 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -2354,7 +2354,8 @@ def _html_edit_profile_options(is_admin: bool, translate: {}, bold_reading: bool, nickname: str, min_images_for_accounts: [], - reverse_sequence: []) -> str: + reverse_sequence: [], + show_vote_posts: bool) -> str: """option checkboxes section of edit profile screen """ edit_profile_form = '
\n' @@ -2407,6 +2408,10 @@ def _html_edit_profile_options(is_admin: bool, bold_reading_string(translate['Reverse timelines']) edit_profile_form += \ edit_check_box(reverse_str, 'reverseTimelines', reverse) + show_vote_posts_str = \ + bold_reading_string(translate['Show vote posts']) + edit_profile_form += \ + edit_check_box(show_vote_posts_str, 'showVotes', show_vote_posts) edit_profile_form += '
\n' return edit_profile_form @@ -2767,6 +2772,12 @@ def html_edit_profile(server, translate: {}, blog_address, actor_json, translate, nickname, domain, max_recent_posts) + # whether to show votes + show_vote_posts = True + show_vote_file = account_dir + '/.noVotes' + if os.path.isfile(show_vote_file): + show_vote_posts = False + # Option checkboxes edit_profile_form += \ _html_edit_profile_options(is_admin, manually_approves_followers, @@ -2777,7 +2788,7 @@ def html_edit_profile(server, translate: {}, hide_like_button, hide_reaction_button, translate, bold_reading, nickname, min_images_for_accounts, - reverse_sequence) + reverse_sequence, show_vote_posts) # Contact information edit_profile_form += \