From c68174540a50c8610f1d13a640318312b14dd8f8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 29 Feb 2020 23:59:48 +0000 Subject: [PATCH] Edit blog post button --- 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 | 13 +++++++++++-- 16 files changed, 41 insertions(+), 17 deletions(-) diff --git a/translations/ar.json b/translations/ar.json index 2fba7566..da17873d 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -216,5 +216,6 @@ "Blog": "مدونة", "Blogs": "المدونات", "Title": "عنوان", - "About the author": "عن المؤلف" + "About the author": "عن المؤلف", + "Edit blog post": "تحرير بلوق وظيفة" } diff --git a/translations/ca.json b/translations/ca.json index 53dff387..ad131c3d 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -216,5 +216,6 @@ "Blog": "Bloc", "Blogs": "Blocs", "Title": "Títol", - "About the author": "Sobre l’autor" + "About the author": "Sobre l’autor", + "Edit blog post": "Edita la publicació del bloc" } diff --git a/translations/cy.json b/translations/cy.json index e13b1c8f..c56b4b69 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -216,5 +216,6 @@ "Blog": "Blog", "Blogs": "Blogs", "Title": "Teitl", - "About the author": "Am yr awdur" + "About the author": "Am yr awdur", + "Edit blog post": "Golygu post blog" } diff --git a/translations/de.json b/translations/de.json index 1c2b4dd7..f3189562 100644 --- a/translations/de.json +++ b/translations/de.json @@ -216,5 +216,6 @@ "Blog": "Blog", "Blogs": "Blogs", "Title": "Titel", - "About the author": "Über den Autor" + "About the author": "Über den Autor", + "Edit blog post": "Blog-Beitrag bearbeiten" } diff --git a/translations/en.json b/translations/en.json index 9dde7207..8118cbc2 100644 --- a/translations/en.json +++ b/translations/en.json @@ -216,5 +216,6 @@ "Blog": "Blog", "Blogs": "Blogs", "Title": "Title", - "About the author": "About the author" + "About the author": "About the author", + "Edit blog post": "Edit blog post" } diff --git a/translations/es.json b/translations/es.json index 94e13293..8ebf5336 100644 --- a/translations/es.json +++ b/translations/es.json @@ -216,5 +216,6 @@ "Blog": "Blog", "Blogs": "Blogs", "Title": "Título", - "About the author": "Sobre la autora" + "About the author": "Sobre la autora", + "Edit blog post": "Editar publicación de blog" } diff --git a/translations/fr.json b/translations/fr.json index e7f0213e..5d8fd586 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -216,5 +216,6 @@ "Blog": "Blog", "Blogs": "Blogs", "Title": "Titre", - "About the author": "A propos de l'auteur" + "About the author": "A propos de l'auteur", + "Edit blog post": "Modifier le billet de blog" } diff --git a/translations/ga.json b/translations/ga.json index c950d3a7..1e433be3 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -216,5 +216,6 @@ "Blog": "Blag", "Blogs": "Blaganna", "Title": "Teideal", - "About the author": "Faoin tÚdar" + "About the author": "Faoin tÚdar", + "Edit blog post": "Cuir post an bhlag in eagar" } diff --git a/translations/hi.json b/translations/hi.json index 9a8d2c17..79f5ff53 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -216,5 +216,6 @@ "Blog": "ब्लॉग", "Blogs": "ब्लॉग", "Title": "शीर्षक", - "About the author": "लेखक के बारे में" + "About the author": "लेखक के बारे में", + "Edit blog post": "ब्लॉग पोस्ट संपादित करें" } diff --git a/translations/it.json b/translations/it.json index f93b36dd..2526aab0 100644 --- a/translations/it.json +++ b/translations/it.json @@ -216,5 +216,6 @@ "Blog": "Blog", "Blogs": "Blog", "Title": "Titolo", - "About the author": "Circa l'autore" + "About the author": "Circa l'autore", + "Edit blog post": "Modifica post del blog" } diff --git a/translations/ja.json b/translations/ja.json index 54ee6742..7cd3acb2 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -216,5 +216,6 @@ "Blog": "ブログ", "Blogs": "ブログ", "Title": "題名", - "About the author": "著者について" + "About the author": "著者について", + "Edit blog post": "ブログ投稿を編集" } diff --git a/translations/oc.json b/translations/oc.json index dec63e40..d19ef294 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -212,5 +212,6 @@ "Blog": "Blog", "Blogs": "Blogs", "Title": "Title", - "About the author": "About the author" + "About the author": "About the author", + "Edit blog post": "Edit blog post" } diff --git a/translations/pt.json b/translations/pt.json index 396a6e0f..b7fc1cb4 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -216,5 +216,6 @@ "Blog": "Blog", "Blogs": "Blogs", "Title": "Título", - "About the author": "Sobre o autor" + "About the author": "Sobre o autor", + "Edit blog post": "Editar postagem do blog" } diff --git a/translations/ru.json b/translations/ru.json index 32d63a34..ec254b2f 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -216,5 +216,6 @@ "Blog": "Блог", "Blogs": "Блоги", "Title": "заглавие", - "About the author": "Об авторе" + "About the author": "Об авторе", + "Edit blog post": "Редактировать сообщение в блоге" } diff --git a/translations/zh.json b/translations/zh.json index 3419cf1c..3f5e473b 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -216,5 +216,6 @@ "Blog": "博客", "Blogs": "网志", "Title": "标题", - "About the author": "关于作者" + "About the author": "关于作者", + "Edit blog post": "编辑博客文章" } diff --git a/webinterface.py b/webinterface.py index f4b61a8a..63d6ba06 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2982,13 +2982,22 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ '' - + replyStr+= \ ''+ \
             translate['Reply to this post']+ \
             ' |' + editStr='' + if fullDomain+'/users/'+nickname in postJsonObject['actor']: + if isBlogPost(postJsonObject): + editStr+= \ + '' + announceStr='' if not isModerationPost and showRepeatIcon: # don't allow announce/repeat of your own posts @@ -3271,7 +3280,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ if showIcons: footerStr='
' - footerStr+=replyStr+announceStr+likeStr+bookmarkStr+deleteStr+muteStr + footerStr+=replyStr+announceStr+likeStr+bookmarkStr+deleteStr+muteStr+editStr footerStr+=''+publishedStr+'\n' footerStr+='
'