From 1eac0134fc307fbea19bab15f6ecdeeeaa2cf2b2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 22 Aug 2020 20:23:48 +0100 Subject: [PATCH] Different image description for events --- translations/ar.json | 3 ++- translations/ca.json | 3 ++- translations/cy.json | 3 ++- translations/de.json | 3 ++- translations/en.json | 3 ++- translations/es.json | 3 ++- translations/fr.json | 3 ++- translations/ga.json | 3 ++- translations/hi.json | 3 ++- translations/it.json | 3 ++- translations/ja.json | 3 ++- translations/oc.json | 3 ++- translations/pt.json | 3 ++- translations/ru.json | 3 ++- translations/zh.json | 3 ++- webinterface.py | 11 ++++++++--- 16 files changed, 38 insertions(+), 18 deletions(-) diff --git a/translations/ar.json b/translations/ar.json index 628014ba3..07cdb36bb 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -272,5 +272,6 @@ "Status of the event": "حالة الحدث", "Tentative": "مؤقت", "Confirmed": "تم تأكيد", - "Cancelled": "ألغيت" + "Cancelled": "ألغيت", + "Event banner image description": "وصف صورة شعار الحدث" } diff --git a/translations/ca.json b/translations/ca.json index 4b84f77b1..e44b776f4 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -272,5 +272,6 @@ "Status of the event": "Estat de l’esdeveniment", "Tentative": "Temptatiu", "Confirmed": "Confirmat", - "Cancelled": "Cancel·lat" + "Cancelled": "Cancel·lat", + "Event banner image description": "Descripció de la imatge del banner de l’esdeveniment" } diff --git a/translations/cy.json b/translations/cy.json index 6eb4897ec..391b7c3d6 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -272,5 +272,6 @@ "Status of the event": "Statws y digwyddiad", "Tentative": "Cynhyrfus", "Confirmed": "Cadarnhawyd", - "Cancelled": "Wedi'i ganslo" + "Cancelled": "Wedi'i ganslo", + "Event banner image description": "Disgrifiad delwedd baner y digwyddiad" } diff --git a/translations/de.json b/translations/de.json index d0e31c0cd..d92efb6de 100644 --- a/translations/de.json +++ b/translations/de.json @@ -272,5 +272,6 @@ "Status of the event": "Status des Ereignisses", "Tentative": "Vorsichtig", "Confirmed": "Bestätigt", - "Cancelled": "Abgesagt" + "Cancelled": "Abgesagt", + "Event banner image description": "Beschreibung des Ereignisbannerbildes" } diff --git a/translations/en.json b/translations/en.json index 3221e25df..08e31dd23 100644 --- a/translations/en.json +++ b/translations/en.json @@ -272,5 +272,6 @@ "Status of the event": "Status of the event", "Tentative": "Tentative", "Confirmed": "Confirmed", - "Cancelled": "Cancelled" + "Cancelled": "Cancelled", + "Event banner image description": "Event banner image description" } diff --git a/translations/es.json b/translations/es.json index c9b172c53..1f496bce5 100644 --- a/translations/es.json +++ b/translations/es.json @@ -272,5 +272,6 @@ "Status of the event": "Estado del evento", "Tentative": "Tentativa", "Confirmed": "Confirmada", - "Cancelled": "Cancelada" + "Cancelled": "Cancelada", + "Event banner image description": "Descripción de la imagen del banner del evento" } diff --git a/translations/fr.json b/translations/fr.json index 540575307..ac340063f 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -272,5 +272,6 @@ "Status of the event": "Statut de l'événement", "Tentative": "Provisoire", "Confirmed": "Confirmé", - "Cancelled": "Annulé" + "Cancelled": "Annulé", + "Event banner image description": "Description de l'image de la bannière de l'événement" } diff --git a/translations/ga.json b/translations/ga.json index f88afc217..d20a52611 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -272,5 +272,6 @@ "Status of the event": "Stádas na hócáide", "Tentative": "Sealadach", "Confirmed": "Deimhnithe", - "Cancelled": "Cealaithe" + "Cancelled": "Cealaithe", + "Event banner image description": "Tuairisc íomhá meirge na hócáide" } diff --git a/translations/hi.json b/translations/hi.json index 63b88ed44..13278acf7 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -272,5 +272,6 @@ "Status of the event": "घटना की स्थिति", "Tentative": "जांच का", "Confirmed": "की पुष्टि", - "Cancelled": "रद्द" + "Cancelled": "रद्द", + "Event banner image description": "घटना बैनर छवि विवरण" } diff --git a/translations/it.json b/translations/it.json index a1588f7bb..f54599f1e 100644 --- a/translations/it.json +++ b/translations/it.json @@ -272,5 +272,6 @@ "Status of the event": "Stato dell'evento", "Tentative": "Tentativa", "Confirmed": "Confermata", - "Cancelled": "Annullata" + "Cancelled": "Annullata", + "Event banner image description": "Descrizione dell'immagine del banner dell'evento" } diff --git a/translations/ja.json b/translations/ja.json index 617c3cd5f..f398be598 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -272,5 +272,6 @@ "Status of the event": "イベントのステータス", "Tentative": "暫定の", "Confirmed": "確認済み", - "Cancelled": "キャンセル" + "Cancelled": "キャンセル", + "Event banner image description": "イベントバナー画像の説明" } diff --git a/translations/oc.json b/translations/oc.json index a7ed435c2..d12a7b0df 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -268,5 +268,6 @@ "Status of the event": "Status of the event", "Tentative": "Tentative", "Confirmed": "Confirmed", - "Cancelled": "Cancelled" + "Cancelled": "Cancelled", + "Event banner image description": "Event banner image description" } diff --git a/translations/pt.json b/translations/pt.json index 66d29b8d2..9fa829244 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -272,5 +272,6 @@ "Status of the event": "Status do evento", "Tentative": "Provisório", "Confirmed": "Confirmada", - "Cancelled": "Cancelada" + "Cancelled": "Cancelada", + "Event banner image description": "Descrição da imagem do banner do evento" } diff --git a/translations/ru.json b/translations/ru.json index c5c776e7f..6143f4540 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -272,5 +272,6 @@ "Status of the event": "Статус мероприятия", "Tentative": "Предварительно", "Confirmed": "Подтверждено", - "Cancelled": "Отменено" + "Cancelled": "Отменено", + "Event banner image description": "Описание изображения баннера мероприятия" } diff --git a/translations/zh.json b/translations/zh.json index 459ae060c..83ed3bdc3 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -272,5 +272,6 @@ "Status of the event": "活动状态", "Tentative": "暂定", "Confirmed": "已确认", - "Cancelled": "取消" + "Cancelled": "取消", + "Event banner image description": "活动横幅图片说明" } diff --git a/webinterface.py b/webinterface.py index a96751ea2..a00de8a1e 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1925,9 +1925,14 @@ def htmlNewPost(mediaInstance: bool, translate: {}, pathBase = pathBase.replace('/newfollowers', '').replace('/newdm', '') newPostImageSection = '
' - newPostImageSection += \ - ' \n' + if endpoint != 'newevent': + newPostImageSection += \ + ' \n' + else: + newPostImageSection += \ + ' \n' newPostImageSection += \ ' \n' newPostImageSection += \