From 0a96dfe03c3a9608a6cc7a3398f89cac02507dfd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 22 Aug 2020 20:40:21 +0100 Subject: [PATCH] Extra label --- 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 | 20 +++++++++++++++----- 16 files changed, 45 insertions(+), 20 deletions(-) diff --git a/translations/ar.json b/translations/ar.json index 07cdb36bb..e694f1950 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -273,5 +273,6 @@ "Tentative": "مؤقت", "Confirmed": "تم تأكيد", "Cancelled": "ألغيت", - "Event banner image description": "وصف صورة شعار الحدث" + "Event banner image description": "وصف صورة شعار الحدث", + "Banner image": "صورة بانر" } diff --git a/translations/ca.json b/translations/ca.json index e44b776f4..9012777de 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -273,5 +273,6 @@ "Tentative": "Temptatiu", "Confirmed": "Confirmat", "Cancelled": "Cancel·lat", - "Event banner image description": "Descripció de la imatge del banner de l’esdeveniment" + "Event banner image description": "Descripció de la imatge del banner de l’esdeveniment", + "Banner image": "Imatge de pancarta" } diff --git a/translations/cy.json b/translations/cy.json index 391b7c3d6..e80b5f898 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -273,5 +273,6 @@ "Tentative": "Cynhyrfus", "Confirmed": "Cadarnhawyd", "Cancelled": "Wedi'i ganslo", - "Event banner image description": "Disgrifiad delwedd baner y digwyddiad" + "Event banner image description": "Disgrifiad delwedd baner y digwyddiad", + "Banner image": "Delwedd baner" } diff --git a/translations/de.json b/translations/de.json index d92efb6de..f11b3d48b 100644 --- a/translations/de.json +++ b/translations/de.json @@ -273,5 +273,6 @@ "Tentative": "Vorsichtig", "Confirmed": "Bestätigt", "Cancelled": "Abgesagt", - "Event banner image description": "Beschreibung des Ereignisbannerbildes" + "Event banner image description": "Beschreibung des Ereignisbannerbildes", + "Banner image": "Bannerbild" } diff --git a/translations/en.json b/translations/en.json index 08e31dd23..4b4c6e70a 100644 --- a/translations/en.json +++ b/translations/en.json @@ -273,5 +273,6 @@ "Tentative": "Tentative", "Confirmed": "Confirmed", "Cancelled": "Cancelled", - "Event banner image description": "Event banner image description" + "Event banner image description": "Event banner image description", + "Banner image": "Banner image" } diff --git a/translations/es.json b/translations/es.json index 1f496bce5..23565aa64 100644 --- a/translations/es.json +++ b/translations/es.json @@ -273,5 +273,6 @@ "Tentative": "Tentativa", "Confirmed": "Confirmada", "Cancelled": "Cancelada", - "Event banner image description": "Descripción de la imagen del banner del evento" + "Event banner image description": "Descripción de la imagen del banner del evento", + "Banner image": "Imagen de banner" } diff --git a/translations/fr.json b/translations/fr.json index ac340063f..7627a4d7c 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -273,5 +273,6 @@ "Tentative": "Provisoire", "Confirmed": "Confirmé", "Cancelled": "Annulé", - "Event banner image description": "Description de l'image de la bannière de l'événement" + "Event banner image description": "Description de l'image de la bannière de l'événement", + "Banner image": "Image de bannière" } diff --git a/translations/ga.json b/translations/ga.json index d20a52611..b13b1a323 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -273,5 +273,6 @@ "Tentative": "Sealadach", "Confirmed": "Deimhnithe", "Cancelled": "Cealaithe", - "Event banner image description": "Tuairisc íomhá meirge na hócáide" + "Event banner image description": "Tuairisc íomhá meirge na hócáide", + "Banner image": "Íomhá meirge" } diff --git a/translations/hi.json b/translations/hi.json index 13278acf7..1a96b7d8d 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -273,5 +273,6 @@ "Tentative": "जांच का", "Confirmed": "की पुष्टि", "Cancelled": "रद्द", - "Event banner image description": "घटना बैनर छवि विवरण" + "Event banner image description": "घटना बैनर छवि विवरण", + "Banner image": "बैनर की छवि" } diff --git a/translations/it.json b/translations/it.json index f54599f1e..86193b7e8 100644 --- a/translations/it.json +++ b/translations/it.json @@ -273,5 +273,6 @@ "Tentative": "Tentativa", "Confirmed": "Confermata", "Cancelled": "Annullata", - "Event banner image description": "Descrizione dell'immagine del banner dell'evento" + "Event banner image description": "Descrizione dell'immagine del banner dell'evento", + "Banner image": "Immagine banner" } diff --git a/translations/ja.json b/translations/ja.json index f398be598..084d91a0d 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -273,5 +273,6 @@ "Tentative": "暫定の", "Confirmed": "確認済み", "Cancelled": "キャンセル", - "Event banner image description": "イベントバナー画像の説明" + "Event banner image description": "イベントバナー画像の説明", + "Banner image": "バナー画像" } diff --git a/translations/oc.json b/translations/oc.json index d12a7b0df..73237fed1 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -269,5 +269,6 @@ "Tentative": "Tentative", "Confirmed": "Confirmed", "Cancelled": "Cancelled", - "Event banner image description": "Event banner image description" + "Event banner image description": "Event banner image description", + "Banner image": "Banner image" } diff --git a/translations/pt.json b/translations/pt.json index 9fa829244..44018ee11 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -273,5 +273,6 @@ "Tentative": "Provisório", "Confirmed": "Confirmada", "Cancelled": "Cancelada", - "Event banner image description": "Descrição da imagem do banner do evento" + "Event banner image description": "Descrição da imagem do banner do evento", + "Banner image": "Imagem de banner" } diff --git a/translations/ru.json b/translations/ru.json index 6143f4540..bfbb8f6cf 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -273,5 +273,6 @@ "Tentative": "Предварительно", "Confirmed": "Подтверждено", "Cancelled": "Отменено", - "Event banner image description": "Описание изображения баннера мероприятия" + "Event banner image description": "Описание изображения баннера мероприятия", + "Banner image": "Изображение баннера" } diff --git a/translations/zh.json b/translations/zh.json index 83ed3bdc3..bfeeb057f 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -273,5 +273,6 @@ "Tentative": "暂定", "Confirmed": "已确认", "Cancelled": "取消", - "Event banner image description": "活动横幅图片说明" + "Event banner image description": "活动横幅图片说明", + "Banner image": "横幅图片" } diff --git a/webinterface.py b/webinterface.py index 3b795b6f3..a891ab36a 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1935,11 +1935,21 @@ def htmlNewPost(mediaInstance: bool, translate: {}, translate['Event banner image description'] + '\n' newPostImageSection += \ ' \n' - newPostImageSection += \ - ' \n' + + if path.endswith('/newevent'): + newPostImageSection += \ + ' \n' + newPostImageSection += \ + ' \n' + else: + newPostImageSection += \ + ' \n' newPostImageSection += ' \n' scopeIcon = 'scope_public.png'