From 29676ddbdd153d80eec47e4359c2a658de1e4742 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 15 Nov 2020 20:56:22 +0000 Subject: [PATCH] Postning new items from the shares timeline --- 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 ++- webapp_timeline.py | 14 ++++++++++++++ 16 files changed, 44 insertions(+), 15 deletions(-) diff --git a/translations/ar.json b/translations/ar.json index c6cbe91b..9bce427e 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -327,5 +327,6 @@ "Settings": "إعدادات", "Citations": "اقتباسات", "Choose newswire items referenced in your article": "اختر العناصر الإخبارية المشار إليها في مقالتك", - "RSS feed for your blog": "تغذية RSS لمدونتك" + "RSS feed for your blog": "تغذية RSS لمدونتك", + "Create a new shared item": "إنشاء عنصر مشترك جديد" } diff --git a/translations/ca.json b/translations/ca.json index a92bacdb..9743e7ad 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -327,5 +327,6 @@ "Settings": "Configuració", "Citations": "Cites", "Choose newswire items referenced in your article": "Trieu articles de newswire als quals faci referència el vostre article", - "RSS feed for your blog": "Feed RSS del vostre bloc" + "RSS feed for your blog": "Feed RSS del vostre bloc", + "Create a new shared item": "Creeu un element compartit nou" } diff --git a/translations/cy.json b/translations/cy.json index d1a91120..9ccb3667 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -327,5 +327,6 @@ "Settings": "Gosodiadau", "Citations": "Dyfyniadau", "Choose newswire items referenced in your article": "Dewiswch eitemau newyddion y cyfeirir atynt yn eich erthygl", - "RSS feed for your blog": "Porthiant RSS ar gyfer eich blog" + "RSS feed for your blog": "Porthiant RSS ar gyfer eich blog", + "Create a new shared item": "Creu eitem newydd a rennir" } diff --git a/translations/de.json b/translations/de.json index adec65a4..4ca5a931 100644 --- a/translations/de.json +++ b/translations/de.json @@ -327,5 +327,6 @@ "Settings": "Einstellungen", "Citations": "Zitate", "Choose newswire items referenced in your article": "Wählen Sie Newswire-Artikel aus, auf die in Ihrem Artikel verwiesen wird", - "RSS feed for your blog": "RSS-Feed für Ihr Blog" + "RSS feed for your blog": "RSS-Feed für Ihr Blog", + "Create a new shared item": "Erstellen Sie ein neues freigegebenes Element" } diff --git a/translations/en.json b/translations/en.json index 17c38723..e825949c 100644 --- a/translations/en.json +++ b/translations/en.json @@ -327,5 +327,6 @@ "Settings": "Settings", "Citations": "Citations", "Choose newswire items referenced in your article": "Choose newswire items referenced in your article", - "RSS feed for your blog": "RSS feed for your blog" + "RSS feed for your blog": "RSS feed for your blog", + "Create a new shared item": "Create a new shared item" } diff --git a/translations/es.json b/translations/es.json index e96a8491..1ce1f6d3 100644 --- a/translations/es.json +++ b/translations/es.json @@ -327,5 +327,6 @@ "Settings": "Configuraciones", "Citations": "Citas", "Choose newswire items referenced in your article": "Elija elementos de Newswire a los que se hace referencia en su artículo", - "RSS feed for your blog": "Fuente RSS para tu blog" + "RSS feed for your blog": "Fuente RSS para tu blog", + "Create a new shared item": "Crea un nuevo elemento compartido" } diff --git a/translations/fr.json b/translations/fr.json index e480f72c..177562cc 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -327,5 +327,6 @@ "Settings": "Réglages", "Citations": "Citations", "Choose newswire items referenced in your article": "Choisissez les éléments de fil d'actualité référencés dans votre article", - "RSS feed for your blog": "Flux RSS pour votre blog" + "RSS feed for your blog": "Flux RSS pour votre blog", + "Create a new shared item": "Créer un nouvel élément partagé" } diff --git a/translations/ga.json b/translations/ga.json index 45854391..96fee641 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -327,5 +327,6 @@ "Settings": "Socruithe", "Citations": "Citations", "Choose newswire items referenced in your article": "Roghnaigh míreanna sreanga nuachta dá dtagraítear i d’alt", - "RSS feed for your blog": "Fotha RSS do do bhlag" + "RSS feed for your blog": "Fotha RSS do do bhlag", + "Create a new shared item": "Cruthaigh mír nua roinnte" } diff --git a/translations/hi.json b/translations/hi.json index 93ab8953..8bbac141 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -327,5 +327,6 @@ "Settings": "समायोजन", "Citations": "उद्धरण", "Choose newswire items referenced in your article": "अपने लेख में संदर्भित newswire आइटम चुनें", - "RSS feed for your blog": "RSS आपके ब्लॉग के लिए फ़ीड करता है" + "RSS feed for your blog": "RSS आपके ब्लॉग के लिए फ़ीड करता है", + "Create a new shared item": "एक नया साझा आइटम बनाएं" } diff --git a/translations/it.json b/translations/it.json index eb44ee30..658c0ba3 100644 --- a/translations/it.json +++ b/translations/it.json @@ -327,5 +327,6 @@ "Settings": "impostazioni", "Citations": "Citazioni", "Choose newswire items referenced in your article": "Scegli gli articoli del newswire a cui fa riferimento il tuo articolo", - "RSS feed for your blog": "Feed RSS per il tuo blog" + "RSS feed for your blog": "Feed RSS per il tuo blog", + "Create a new shared item": "Crea un nuovo elemento condiviso" } diff --git a/translations/ja.json b/translations/ja.json index 5953b82c..facd2b1a 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -327,5 +327,6 @@ "Settings": "設定", "Citations": "引用", "Choose newswire items referenced in your article": "あなたの記事で参照されているニュースワイヤーアイテムを選択してください", - "RSS feed for your blog": "ブログのRSSフィード" + "RSS feed for your blog": "ブログのRSSフィード", + "Create a new shared item": "新しい共有アイテムを作成する" } diff --git a/translations/oc.json b/translations/oc.json index cf0b3460..abcc8368 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -323,5 +323,6 @@ "Settings": "Settings", "Citations": "Citations", "Choose newswire items referenced in your article": "Choose newswire items referenced in your article", - "RSS feed for your blog": "RSS feed for your blog" + "RSS feed for your blog": "RSS feed for your blog", + "Create a new shared item": "Create a new shared item" } diff --git a/translations/pt.json b/translations/pt.json index 3359b7e0..052d53d1 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -327,5 +327,6 @@ "Settings": "Definições", "Citations": "Citações", "Choose newswire items referenced in your article": "Escolha os itens de notícias mencionados em seu artigo", - "RSS feed for your blog": "Feed RSS para o seu blog" + "RSS feed for your blog": "Feed RSS para o seu blog", + "Create a new shared item": "Crie um novo item compartilhado" } diff --git a/translations/ru.json b/translations/ru.json index 960bd2ae..bcfc03e3 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -327,5 +327,6 @@ "Settings": "Настройки", "Citations": "Цитаты", "Choose newswire items referenced in your article": "Выберите элементы ленты новостей, на которые есть ссылки в вашей статье", - "RSS feed for your blog": "RSS-канал для вашего блога" + "RSS feed for your blog": "RSS-канал для вашего блога", + "Create a new shared item": "Создать новый общий элемент" } diff --git a/translations/zh.json b/translations/zh.json index acd29c8f..283ee5ee 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -327,5 +327,6 @@ "Settings": "设定值", "Citations": "引文", "Choose newswire items referenced in your article": "选择文章中引用的新闻专栏文章", - "RSS feed for your blog": "您博客的RSS供稿" + "RSS feed for your blog": "您博客的RSS供稿", + "Create a new shared item": "创建一个新的共享项目" } diff --git a/webapp_timeline.py b/webapp_timeline.py index 0f9b7d85..05a60a33 100644 --- a/webapp_timeline.py +++ b/webapp_timeline.py @@ -312,6 +312,20 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str, '' + \ '' + elif boxName == 'tlshares': + if not iconsAsButtons: + newPostButtonStr += \ + '| ' + \
+                translate['Create a new shared item'] + \
+                '\n' + else: + newPostButtonStr += \ + '' + \ + '' else: if not manuallyApproveFollowers: if not iconsAsButtons: