diff --git a/translations/ar.json b/translations/ar.json
index fe4bd1797..82eb0ee79 100644
--- a/translations/ar.json
+++ b/translations/ar.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "عدم إظهار الردود المعززة",
"Show quote posts": "إظهار المشاركات المقتبسة",
"Link Trackers": "تعقب الارتباط",
- "Hide Announces": "إخفاء الإعلانات"
+ "Hide Announces": "إخفاء الإعلانات",
+ "Show Announces": "عرض يعلن"
}
diff --git a/translations/bn.json b/translations/bn.json
index 698f4d853..9f1961138 100644
--- a/translations/bn.json
+++ b/translations/bn.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "বুস্ট করা উত্তর দেখাবেন না",
"Show quote posts": "উদ্ধৃত পোস্ট দেখান",
"Link Trackers": "লিঙ্ক ট্র্যাকার",
- "Hide Announces": "ঘোষণা লুকান"
+ "Hide Announces": "ঘোষণা লুকান",
+ "Show Announces": "ঘোষণা দেখান"
}
diff --git a/translations/ca.json b/translations/ca.json
index bc9c7948a..d5cbc6334 100644
--- a/translations/ca.json
+++ b/translations/ca.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "No mostris respostes reforçades",
"Show quote posts": "Mostra les publicacions citades",
"Link Trackers": "Seguidors d'enllaços",
- "Hide Announces": "Amaga els anuncis"
+ "Hide Announces": "Amaga els anuncis",
+ "Show Announces": "Mostra Anuncia"
}
diff --git a/translations/cy.json b/translations/cy.json
index a4993865e..dc1f1d7ed 100644
--- a/translations/cy.json
+++ b/translations/cy.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Peidiwch â dangos atebion cryfach",
"Show quote posts": "Dangos postiadau a ddyfynnwyd",
"Link Trackers": "Tracwyr Cyswllt",
- "Hide Announces": "Cuddio Cyhoeddiadau"
+ "Hide Announces": "Cuddio Cyhoeddiadau",
+ "Show Announces": "Sioe yn Cyhoeddi"
}
diff --git a/translations/de.json b/translations/de.json
index c409020ca..81e233588 100644
--- a/translations/de.json
+++ b/translations/de.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Keine geboosteten Antworten anzeigen",
"Show quote posts": "Zitierte Beiträge anzeigen",
"Link Trackers": "Link-Tracker",
- "Hide Announces": "Ankündigungen ausblenden"
+ "Hide Announces": "Ankündigungen ausblenden",
+ "Show Announces": "Ankündigungen anzeigen"
}
diff --git a/translations/el.json b/translations/el.json
index 94f07fd1d..b25607bd8 100644
--- a/translations/el.json
+++ b/translations/el.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Μην εμφανίζετε ενισχυμένες απαντήσεις",
"Show quote posts": "Εμφάνιση αναφερόμενων αναρτήσεων",
"Link Trackers": "Link Trackers",
- "Hide Announces": "Απόκρυψη Ανακοινώνει"
+ "Hide Announces": "Απόκρυψη Ανακοινώνει",
+ "Show Announces": "Εμφάνιση Ανακοινώνει"
}
diff --git a/translations/en.json b/translations/en.json
index 70773696b..a319a0361 100644
--- a/translations/en.json
+++ b/translations/en.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Don't show boosted replies",
"Show quote posts": "Show quote posts",
"Link Trackers": "Link Trackers",
- "Hide Announces": "Hide Announces"
+ "Hide Announces": "Hide Announces",
+ "Show Announces": "Show Announces"
}
diff --git a/translations/es.json b/translations/es.json
index d096a6016..25a057756 100644
--- a/translations/es.json
+++ b/translations/es.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "No mostrar respuestas mejoradas",
"Show quote posts": "Mostrar publicaciones citadas",
"Link Trackers": "Rastreadores de enlaces",
- "Hide Announces": "Ocultar anuncios"
+ "Hide Announces": "Ocultar anuncios",
+ "Show Announces": "Mostrar anuncios"
}
diff --git a/translations/fa.json b/translations/fa.json
index c9cec0e19..6bbac57e8 100644
--- a/translations/fa.json
+++ b/translations/fa.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "پاسخ های تقویت شده را نشان ندهید",
"Show quote posts": "نمایش پست های نقل شده",
"Link Trackers": "ردیاب های لینک",
- "Hide Announces": "پنهان کردن اعلام می کند"
+ "Hide Announces": "پنهان کردن اعلام می کند",
+ "Show Announces": "نمایش اعلام می کند"
}
diff --git a/translations/fr.json b/translations/fr.json
index 1860e1483..42438289d 100644
--- a/translations/fr.json
+++ b/translations/fr.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Ne pas afficher les réponses boostées",
"Show quote posts": "Afficher les articles cités",
"Link Trackers": "Traqueurs de liens",
- "Hide Announces": "Masquer les annonces"
+ "Hide Announces": "Masquer les annonces",
+ "Show Announces": "Afficher les annonces"
}
diff --git a/translations/ga.json b/translations/ga.json
index b7bdfc7cd..a39801f75 100644
--- a/translations/ga.json
+++ b/translations/ga.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Ná taispeáin freagraí treisithe",
"Show quote posts": "Taispeáin postálacha luaite",
"Link Trackers": "Lorgairí Nasc",
- "Hide Announces": "Folaigh Fógraí"
+ "Hide Announces": "Folaigh Fógraí",
+ "Show Announces": "Taispeáin Fógraí"
}
diff --git a/translations/he.json b/translations/he.json
index 27b9f5552..7ddaa79c9 100644
--- a/translations/he.json
+++ b/translations/he.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "אל תראה תשובות מוגברות",
"Show quote posts": "הצג פוסטים מצוטטים",
"Link Trackers": "מעקבי קישורים",
- "Hide Announces": "הסתר מכריז"
+ "Hide Announces": "הסתר מכריז",
+ "Show Announces": "הצג מכריז"
}
diff --git a/translations/hi.json b/translations/hi.json
index a7c9cc095..4c3ebfdfe 100644
--- a/translations/hi.json
+++ b/translations/hi.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "बढ़ाए गए उत्तर न दिखाएं",
"Show quote posts": "उद्धृत पोस्ट दिखाएँ",
"Link Trackers": "लिंक ट्रैकर्स",
- "Hide Announces": "घोषणाएँ छुपाएँ"
+ "Hide Announces": "घोषणाएँ छुपाएँ",
+ "Show Announces": "शो की घोषणा"
}
diff --git a/translations/it.json b/translations/it.json
index 121dfb55b..8caabceab 100644
--- a/translations/it.json
+++ b/translations/it.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Non mostrare le risposte in evidenza",
"Show quote posts": "Mostra post citati",
"Link Trackers": "Tracker dei collegamenti",
- "Hide Announces": "Nascondi annunci"
+ "Hide Announces": "Nascondi annunci",
+ "Show Announces": "Mostra annunci"
}
diff --git a/translations/ja.json b/translations/ja.json
index 8184c2b37..4cd4cf25d 100644
--- a/translations/ja.json
+++ b/translations/ja.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "ブーストされた返信を表示しない",
"Show quote posts": "引用された投稿を表示",
"Link Trackers": "リンクトラッカー",
- "Hide Announces": "発表を隠す"
+ "Hide Announces": "発表を隠す",
+ "Show Announces": "ショーアナウンス"
}
diff --git a/translations/ko.json b/translations/ko.json
index a9fa4898e..04cbe19f1 100644
--- a/translations/ko.json
+++ b/translations/ko.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "홍보된 답글 표시 안함",
"Show quote posts": "인용된 게시물 표시",
"Link Trackers": "링크 추적기",
- "Hide Announces": "발표 숨기기"
+ "Hide Announces": "발표 숨기기",
+ "Show Announces": "쇼 발표"
}
diff --git a/translations/ku.json b/translations/ku.json
index bfeb63db2..abbc688f8 100644
--- a/translations/ku.json
+++ b/translations/ku.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Bersivên zêdekirî nîşan nedin",
"Show quote posts": "Mesajên binavkirî nîşan bide",
"Link Trackers": "Link Trackers",
- "Hide Announces": "Veşêre Daxuyan dike"
+ "Hide Announces": "Veşêre Daxuyan dike",
+ "Show Announces": "Nîşan dide Ragihandin"
}
diff --git a/translations/nl.json b/translations/nl.json
index 27a1c6367..12d985f34 100644
--- a/translations/nl.json
+++ b/translations/nl.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Geen gepromote antwoorden weergeven",
"Show quote posts": "Toon geciteerde berichten",
"Link Trackers": "Link-trackers",
- "Hide Announces": "Aankondigingen verbergen"
+ "Hide Announces": "Aankondigingen verbergen",
+ "Show Announces": "Toon aankondigingen"
}
diff --git a/translations/oc.json b/translations/oc.json
index ecb6bd37d..293b815ef 100644
--- a/translations/oc.json
+++ b/translations/oc.json
@@ -666,5 +666,6 @@
"Don't show boosted replies": "Don't show boosted replies",
"Show quote posts": "Show quote posts",
"Link Trackers": "Link Trackers",
- "Hide Announces": "Hide Announces"
+ "Hide Announces": "Hide Announces",
+ "Show Announces": "Show Announces"
}
diff --git a/translations/pl.json b/translations/pl.json
index b016dbad1..5e95ae732 100644
--- a/translations/pl.json
+++ b/translations/pl.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Nie pokazuj wzmocnionych odpowiedzi",
"Show quote posts": "Pokaż cytowane posty",
"Link Trackers": "Śledzenie linków",
- "Hide Announces": "Ukryj ogłoszenia"
+ "Hide Announces": "Ukryj ogłoszenia",
+ "Show Announces": "Pokaż ogłoszenia"
}
diff --git a/translations/pt.json b/translations/pt.json
index 93e706c16..0d0638c33 100644
--- a/translations/pt.json
+++ b/translations/pt.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Não mostrar respostas otimizadas",
"Show quote posts": "Mostrar postagens citadas",
"Link Trackers": "Rastreadores de links",
- "Hide Announces": "Ocultar anúncios"
+ "Hide Announces": "Ocultar anúncios",
+ "Show Announces": "Mostrar anúncios"
}
diff --git a/translations/ru.json b/translations/ru.json
index 72a02b07b..9032c3106 100644
--- a/translations/ru.json
+++ b/translations/ru.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Не показывать усиленные ответы",
"Show quote posts": "Показать цитируемые сообщения",
"Link Trackers": "Трекеры ссылок",
- "Hide Announces": "Скрыть объявления"
+ "Hide Announces": "Скрыть объявления",
+ "Show Announces": "Показать анонсы"
}
diff --git a/translations/sw.json b/translations/sw.json
index cbec35f23..181710216 100644
--- a/translations/sw.json
+++ b/translations/sw.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Usionyeshe majibu yaliyoboreshwa",
"Show quote posts": "Onyesha machapisho yaliyonukuliwa",
"Link Trackers": "Viunga vya Kufuatilia",
- "Hide Announces": "Ficha Matangazo"
+ "Hide Announces": "Ficha Matangazo",
+ "Show Announces": "Onyesha Matangazo"
}
diff --git a/translations/tr.json b/translations/tr.json
index cc503c04b..3ba0268a2 100644
--- a/translations/tr.json
+++ b/translations/tr.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Öne çıkarılan yanıtları gösterme",
"Show quote posts": "Alıntılanan gönderileri göster",
"Link Trackers": "Bağlantı İzleyiciler",
- "Hide Announces": "Duyuruları Gizle"
+ "Hide Announces": "Duyuruları Gizle",
+ "Show Announces": "Duyuruları Göster"
}
diff --git a/translations/uk.json b/translations/uk.json
index 07f0e7613..50de3468f 100644
--- a/translations/uk.json
+++ b/translations/uk.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "Не показувати посилені відповіді",
"Show quote posts": "Показувати цитовані пости",
"Link Trackers": "Відстеження посилань",
- "Hide Announces": "Приховати оголошення"
+ "Hide Announces": "Приховати оголошення",
+ "Show Announces": "Показати оголошення"
}
diff --git a/translations/yi.json b/translations/yi.json
index 174bbed1d..6f018fb35 100644
--- a/translations/yi.json
+++ b/translations/yi.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "צי ניט ווייַזן בוסטיד ענטפֿערס",
"Show quote posts": "ווייַזן ציטירטע אַרטיקלען",
"Link Trackers": "לינק טראַקערז",
- "Hide Announces": "באַהאַלטן אַנאַונסיז"
+ "Hide Announces": "באַהאַלטן אַנאַונסיז",
+ "Show Announces": "ווייַזן אַנאַונסיז"
}
diff --git a/translations/zh.json b/translations/zh.json
index bf913b8a3..c9f281a40 100644
--- a/translations/zh.json
+++ b/translations/zh.json
@@ -670,5 +670,6 @@
"Don't show boosted replies": "不显示强化回复",
"Show quote posts": "显示引用的帖子",
"Link Trackers": "链接跟踪器",
- "Hide Announces": "隐藏公告"
+ "Hide Announces": "隐藏公告",
+ "Show Announces": "展会公告"
}
diff --git a/webapp_headerbuttons.py b/webapp_headerbuttons.py
index 7c84a73f5..8214b9a7f 100644
--- a/webapp_headerbuttons.py
+++ b/webapp_headerbuttons.py
@@ -47,7 +47,8 @@ def header_buttons_timeline(default_timeline: str,
follow_approvals: str,
icons_as_buttons: bool,
access_keys: {},
- is_text_browser: str) -> str:
+ is_text_browser: str,
+ show_announces: bool) -> str:
"""Returns the header at the top of the timeline, containing
buttons for inbox, outbox, search, calendar, etc
"""
@@ -324,20 +325,27 @@ def header_buttons_timeline(default_timeline: str,
if not features_header:
# the hide announces button
+ if show_announces:
+ hide_announces_icon = 'repeat_inactive.png'
+ hide_announces_text = translate['Hide Announces']
+ else:
+ hide_announces_icon = 'repeat_inactive.png'
+ hide_announces_text = translate['Show Announces']
+
if not icons_as_buttons:
tl_str += \
' ' + \
'\n'
else:
tl_str += \
''
# the show/hide button, for a simpler header appearance
diff --git a/webapp_timeline.py b/webapp_timeline.py
index 908002edc..35cfbeaa8 100644
--- a/webapp_timeline.py
+++ b/webapp_timeline.py
@@ -820,7 +820,7 @@ def html_timeline(default_timeline: str,
new_calendar_event, calendar_path,
calendar_image, follow_approvals,
icons_as_buttons, access_keys,
- is_text_browser)
+ is_text_browser, show_announces)
# start the timeline
tl_str += \
@@ -872,7 +872,7 @@ def html_timeline(default_timeline: str,
new_calendar_event, calendar_path,
calendar_image, follow_approvals,
icons_as_buttons, access_keys,
- is_text_browser)
+ is_text_browser, show_announces)
tl_str += \
'